Coder Social home page Coder Social logo

hlaueriksson / gemojisharp Goto Github PK

View Code? Open in Web Editor NEW
108.0 3.0 8.0 86.06 MB

:octocat: GitHub Emoji for C#, ASP.NET Core and Blazor, dotnet tool for the terminal and PowerToys Run plugin

Home Page: https://hlaueriksson.github.io/GEmojiSharp/

License: MIT License

C# 98.54% Batchfile 0.14% HTML 0.19% JavaScript 0.03% CSS 0.02% PowerShell 1.07%
github gemoji emoji csharp dotnet blazor asp-net-core dotnet-tool powertoys-run

gemojisharp's Introduction

Hej! πŸ‘‹

Freelance software developer crafting software FTW πŸ‘¨β€πŸ’»

My name is Henrik Lau Eriksson πŸ‘¨β€πŸ¦° and I live in Stockholm, Sweden πŸ“Œ

I work with:

I write code for the Web 🌐

- Usually backend 🐴
- Sometimes frontend πŸ¦„

I like to work in a DevOps context ♾️

- In the "union of people, process and products" πŸ’¬

I prefer Continuous Deployment ♻️

- Release early and often ⏩
- Fail fast πŸ’₯

Things I find interesting:

- Cloud ☁
- Serverless ⚑
- JAMstack πŸ“š

Things I have experience with:

- Agile πŸ’
- Architecture πŸ“
- TDD / BDD / Specification by Example βœ”οΈ

Projects


I'm a daily PowerToys Run user πŸ—‚οΈπŸ”Ž

Here are some plugins that tickle my fancy:

And for a sprinkle of my own magic:

View example:

Need

  • Store things you need, but can't remember

I love emoji ❀️

Check out the full list of what’s supported on GitHub:

Are you a dotnet fan? Give my library a spin:

View example:
":tada: initial commit".Emojify(); // πŸŽ‰ initial commit
  • C#
<emoji>:tada: initial commit</emoji>
  • ASP.NET Core
<Emoji>:tada: initial commit</Emoji>
  • Blazor
emoji emojify :tada: initial commit
  • CLI

GEmojiSharp

  • PowerToys Run

Do you keep your commands and queries separated?

Get started with this RPC library of mine:

Support for:
  • AspNetCore 🌐
  • AWSLambda ⚑
  • AzureFunctions ⚑
  • GoogleCloudFunctions ⚑

Do you enjoy writing unit tests and are on the lookout for something new?

Check out this quirky little framework:

View example:
public class MoodTests : LoFuTest<MoodIdentifier>
{
    string _mood;

    [LoFu, Test]
    public void Identify_mood_on_mondays()
    {
        void given_the_current_day_is_monday()
        {
            var monday = new DateTime(2011, 2, 14);

            Use<ISystemClock>()
                .CurrentTime
                .Returns(monday);
        }

        void when_identifying_my_mood() =>
            _mood = Subject.IdentifyMood();

        void should_be_pretty_bad() =>
            _mood.Should().Be("Pretty bad");
    }
}

Do you need markup in the frontend?

Generate some HTML in the backend:

View example:
DOCTYPE() +
html(lang("en"),
    head(
        meta(charset("utf-8")),
        e.title("Markupolation"),
        meta(name("description"), content("Sample of how to use Markupolation")),
        meta(name("viewport"), content("width=device-width, initial-scale=1"))
    ),
    body(
        h1("Hello, World!"),
        p("This is ", mark(a.title("Markup with string interpolation"), "Markupolation"), " in action.")
    )
);

I have built my own URL shortener, and you can do it too βœ‚οΈπŸ”—

Get started with this template repository:


Contact

Find out more about me:

Let's get in touch:

gemojisharp's People

Contributors

hlaueriksson avatar msftgits avatar pilgrimlyieu avatar timheuer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gemojisharp's Issues

Fail to load plugin: GEmojiSharp

When starting PowerToys, I get the following message:

Power Toys Run - Plugin Loading Error

Fail to load plugin: GEmojiSharp
Please report the bug to https://aka.ms/powerToysReportBug. (For
third-party plugins, please contact the plugin author.)

image

Crash in PowerToys

Hello, I met an issue recently. When I use Alt + Space to open the Run window, type something like emoji laugh, select one of emojis and press Enter or Ctrl + C, an error will be thrown like below.

The version of GEmojiSharp is 3.1.0, latest in release. The version of PowerToys is 0.74.0, also the latest.

Version: 0.74.0.0
OS Version: Microsoft Windows NT 10.0.22631.0
IntPtr Length: 8
x64: True
Date: 2023/10/03 11:01:59
Exception:
System.Runtime.InteropServices.COMException (0x800401D0): OpenClipboard ε€±θ΄₯ (0x800401D0 (CLIPBRD_E_CANT_OPEN))
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
   at System.Windows.Clipboard.Flush()
   at GEmojiSharp.PowerToysRun.Main.CopyToClipboard(String value)
   at GEmojiSharp.PowerToysRun.Main.<>c__DisplayClass16_3.<Query>b__6(ActionContext _)
   at PowerLauncher.ViewModel.MainViewModel.<>c__DisplayClass30_0.<OpenResultsEvent>b__0()
   at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
   at System.Windows.Threading.Dispatcher.Invoke(Action callback)
   at PowerLauncher.ViewModel.MainViewModel.OpenResultsEvent(Object index, Boolean isMouseClick)
   at PowerLauncher.ViewModel.MainViewModel.<InitializeKeyCommands>b__31_10(Object index)
   at PowerLauncher.ViewModel.RelayCommand.Execute(Object parameter)
   at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Since other Run plugin works normal, I'm wondering that if I've done something wrong on this plugin or I've missed something. I couldn't find similar cases and solution in internet so I open an issue for help.

If I've done something wrong, please inform me! Thanks for your wonderful plugin!

Skin Tones not supported

It looks like the Emoji.Emojify method doesn't support skin tones.

Passing "smiley" wrapped in colons to this method returns the unicode character for a smiley as expected.

However, passing the string "smiley" wrapped in quotes with ":skin-tone-6:" appended to it returns πŸ˜ƒ:skin-tone-6: (i.e. Smiley unicode character + ":skin-tone-6")

Am I doing something wrong or are skin tones not supported in the current version?

N.B. Please forgive the weird syntax in this issue. When I try to write the strings as they are used, github is converting the colon syntax to emojis which makes it difficult to describe the issue. Hopefully, the above is clear.

Option to Auto-Send

I'd like the ability to Auto-Send the emoji when selecting the one you want. It would save me having to do a paste action. Maybe not everyone will want to have this on, so a toggle would be best. Flow Launcher's 'Emoji+' plugin has a similar feature (although it doesn't work any more, atm).

unEmoji

Hi,

I like the ability to go from text to an emoji, but can you also do the reverse? (I have a few 3rd party integrations that blow up when they encounter an emoji, but I'd like to keep the meaning around.

GemojsSharp Version 2.0.0 missing some symbols

Hello:
I am using the repo to replace all the Emoji I don't want. The current version I am using is: Version 2.0.0
There are something missing.
I have the following:

  1. Unicode Character β€œπŸ—£β€ (U+1F5E3)
  2. Unicode Character β€œβ—β€ (U+2757)
    Please check!
    Thanks

blazor webassembly = erro

I didn't see anything in the documentation about something to register the dll in program.cs so that these files can be recognized

GET https://localhost:5001/_content/GEmojiSharp.Blazor/style.css net::ERR_ABORTED 404
GET https://localhost:5001/_content/GEmojiSharp.Blazor/script.js net::ERR_ABORTED 404

image

some are missing in 1.4.0

I'm maybe mistaking or this list (https://github.com/hlaueriksson/github-emoji) is outdated but I was not able to find the following emojis that are in the list in version 1.4.0

  • :magic_wand:
  • :rock:
  • :roller_skate:

here is s small repro

var wand = Emoji.Raw(":magic_wand:"); // πŸͺ„
WriteLine($"wand: {wand}");
var roller = Emoji.Find(":roller_skate:").FirstOrDefault(); // πŸ›Ό
WriteLine($"roller: {roller?.Raw}");
var rock = Emoji.Find("rock").FirstOrDefault(); // πŸͺ¨
WriteLine($"rock: {rock?.Raw}");

var thisIsDefined = Emoji.Find("horse").FirstOrDefault();
WriteLine($"horse: {thisIsDefined?.Raw}");

Cheers

Size?

Is there a way to make emoji bigger ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.