Giter Site home page Giter Site logo

anicode's Introduction

Hi there 👋

My name is Mina Galić. I’m a DevOps person, part time FLOSS contributor, part-time a stay-at-home mom. See my Résumé for all references, since only a fraction of my work, even my Open Source work, happens here on github*.

  • 🙋🏻‍♀️ Pronouns: she or they
  • 📫 How to reach me: Why don't you see my website?
  • 👻 i might already be in your IRC or matrix channel as meena

Projects i most actively work on ⚙️

  • ⛅ Bringing better FreeBSD Support to cloud-init: the thing you use to provision cloud servers, written in Python 3
  • 👧🏼 taking care of my daughter

Projects i was very active on in the past

  • 📦 https://alpha.pkgbase.live/: an unofficial repository of FreeBSD base packages. We now Have official repositories, so it's become obsolete.
  • 🦊 Vox Pupuli: A community of puppet administrators, maintaining over a hundred Puppet modules
  • 🕸️ libioc: a FreeBSD container manager, written in Python 3
  • 🖋 Plume: an ActivityPub blogging system, written in Rust

* Fuck GitHub for supporting ICE. Fuck Microsoft's embrace, extend, extinguish.

anicode's People

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

Watchers

 avatar  avatar  avatar  avatar

anicode's Issues

curl output shows up when fetching the unicode database

18:02:56 ~ $ anicode yellow heart
Required unicode data was not found, want me to download it from http://www.unicode.org? [Y/n] Y
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1583k  100 1583k    0     0   224k      0  0:00:07  0:00:07 --:--:--  316k

It also exited with exit code 1 not doing anything else.

Cannot install due to missing dependency: getopts

I'm trying to install with fisher anicode but it fails with:

Installing 1 plugin/s
OK Copy anicode
Installing 3 dependencies
OK Copy spin
OK Copy get
OK Copy choices
OK Copy getopts
! Fetch getopts github.com/fisherman/getopts
OK Fetch getopts github.com/fisherman/getopts
cp: cannot stat '/home/martin/.cache/fisherman/getopts': No such file or directory
Done in 1s 807ms

installation is broken

switch: Expected exactly one argument, got 0

~/.config/fisherman/functions/anicode.fish (line 8):     switch $confirm
                                                                ^
in function '__anicode_prompt'
        called on line 36 of file ~/.config/fisherman/functions/anicode.fish
        with parameter list 'Required unicode data was not found, want me to download it from http://www.unicode.org ?'

in function '__anicode_install'
        called on line 78 of file ~/.config/fisherman/functions/anicode.fish

from sourcing file ~/.config/fisherman/functions/anicode.fish
        called on line 2 of file ~/.local/share/fisherman/functions/__fisher_plugin_source.fish

in function '__fisher_plugin_source'
        called on line 33 of file ~/.local/share/fisherman/functions/__fisher_plugin_enable.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/functions/anicode.fish'

in function '__fisher_plugin_enable'
        called on line 47 of file ~/.local/share/fisherman/functions/fisher_install.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/cache/anicode'

in function 'fisher_install'
        called on line 1 of file -
        with parameter list 'igalic/anicode'

from sourcing file -
        called on line 60 of file /usr/share/fish/functions/eval.fish

in function 'eval'
        called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
        called on standard input
        with parameter list 'i igalic/anicode'

switch: Expected exactly one argument, got 0

~/.config/fisherman/functions/anicode.fish (line 8):     switch $confirm
                                                                ^
in function '__anicode_prompt'
        called on line 36 of file ~/.config/fisherman/functions/anicode.fish
        with parameter list 'Required unicode data was not found, want me to download it from http://www.unicode.org ?'

in function '__anicode_install'
        called on line 78 of file ~/.config/fisherman/functions/anicode.fish

from sourcing file ~/.config/fisherman/functions/anicode.fish
        called on line 2 of file ~/.local/share/fisherman/functions/__fisher_plugin_source.fish

in function '__fisher_plugin_source'
        called on line 33 of file ~/.local/share/fisherman/functions/__fisher_plugin_enable.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/functions/anicode.fish'

in function '__fisher_plugin_enable'
        called on line 47 of file ~/.local/share/fisherman/functions/fisher_install.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/cache/anicode'

in function 'fisher_install'
        called on line 1 of file -
        with parameter list 'igalic/anicode'

from sourcing file -
        called on line 60 of file /usr/share/fish/functions/eval.fish

in function 'eval'
        called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
        called on standard input
        with parameter list 'i igalic/anicode'

switch: Expected exactly one argument, got 0

~/.config/fisherman/functions/anicode.fish (line 8):     switch $confirm
                                                                ^
in function '__anicode_prompt'
        called on line 36 of file ~/.config/fisherman/functions/anicode.fish
        with parameter list 'Required unicode data was not found, want me to download it from http://www.unicode.org ?'

in function '__anicode_install'
        called on line 78 of file ~/.config/fisherman/functions/anicode.fish

from sourcing file ~/.config/fisherman/functions/anicode.fish
        called on line 2 of file ~/.local/share/fisherman/functions/__fisher_plugin_source.fish

in function '__fisher_plugin_source'
        called on line 33 of file ~/.local/share/fisherman/functions/__fisher_plugin_enable.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/functions/anicode.fish'

in function '__fisher_plugin_enable'
        called on line 47 of file ~/.local/share/fisherman/functions/fisher_install.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/cache/anicode'

in function 'fisher_install'
        called on line 1 of file -
        with parameter list 'igalic/anicode'

from sourcing file -
        called on line 60 of file /usr/share/fish/functions/eval.fish

in function 'eval'
        called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
        called on standard input
        with parameter list 'i igalic/anicode'

switch: Expected exactly one argument, got 0

~/.config/fisherman/functions/anicode.fish (line 8):     switch $confirm
                                                                ^
in function '__anicode_prompt'
        called on line 36 of file ~/.config/fisherman/functions/anicode.fish
        with parameter list 'Required unicode data was not found, want me to download it from http://www.unicode.org ?'

in function '__anicode_install'
        called on line 78 of file ~/.config/fisherman/functions/anicode.fish

from sourcing file ~/.config/fisherman/functions/anicode.fish
        called on line 2 of file ~/.local/share/fisherman/functions/__fisher_plugin_source.fish

in function '__fisher_plugin_source'
        called on line 33 of file ~/.local/share/fisherman/functions/__fisher_plugin_enable.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/functions/anicode.fish'

in function '__fisher_plugin_enable'
        called on line 47 of file ~/.local/share/fisherman/functions/fisher_install.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/cache/anicode'

in function 'fisher_install'
        called on line 1 of file -
        with parameter list 'igalic/anicode'

from sourcing file -
        called on line 60 of file /usr/share/fish/functions/eval.fish

in function 'eval'
        called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
        called on standard input
        with parameter list 'i igalic/anicode'

switch: Expected exactly one argument, got 0

~/.config/fisherman/functions/anicode.fish (line 8):     switch $confirm
                                                                ^
in function '__anicode_prompt'
        called on line 36 of file ~/.config/fisherman/functions/anicode.fish
        with parameter list 'Required unicode data was not found, want me to download it from http://www.unicode.org ?'

in function '__anicode_install'
        called on line 78 of file ~/.config/fisherman/functions/anicode.fish

from sourcing file ~/.config/fisherman/functions/anicode.fish
        called on line 2 of file ~/.local/share/fisherman/functions/__fisher_plugin_source.fish

in function '__fisher_plugin_source'
        called on line 33 of file ~/.local/share/fisherman/functions/__fisher_plugin_enable.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/functions/anicode.fish'

in function '__fisher_plugin_enable'
        called on line 47 of file ~/.local/share/fisherman/functions/fisher_install.fish
        with parameter list 'anicode /home/igalic/.config/fisherman/cache/anicode'

in function 'fisher_install'
        called on line 1 of file -
        with parameter list 'igalic/anicode'

from sourcing file -
        called on line 60 of file /usr/share/fish/functions/eval.fish

in function 'eval'
        called on line 51 of file ~/.local/share/fisherman/functions/fisher.fish

in function 'fisher'
        called on standard input
        with parameter list 'i igalic/anicode'

anicode('s use of choices) fails on fish 2.5.0

i recently updated to fish 2.5.0, and since then this plugin doesn't work properly anymore:

 ~/s/m/core-plans    rebar3  cd                                                                                                    (1s 578ms)  
 ~  anicode frowning
function: Illegal function name '-S'
~/.config/fish/functions/choices.fish (line 47):   function -S __error_msg
    echo $error | sed "s:%(choices):$choices:"
                                                   ^
in function “choices”
        called on line 58 of file ~/.config/fish/functions/anicode.fish
        with parameter list “☹  WHITE FROWNING FACE 😦  FROWNING FACE WITH OPEN MOUTH 🙁        SLIGHTLY FROWNING FACE 🙍       PERSON FROWNING”

in command substitution
        called on line 56 of file ~/.config/fish/functions/anicode.fish

in function “anicode”
        called on standard input
        with parameter list “frowning”

function: Illegal function name '-S'
~/.config/fish/functions/choices.fish (line 51):   function -S __prompt
    set -l counter 1
                                                   ^
in function “choices”
        called on line 58 of file ~/.config/fish/functions/anicode.fish
        with parameter list “☹  WHITE FROWNING FACE 😦  FROWNING FACE WITH OPEN MOUTH 🙁        SLIGHTLY FROWNING FACE 🙍       PERSON FROWNING”

in command substitution
        called on line 56 of file ~/.config/fish/functions/anicode.fish

in function “anicode”
        called on standard input
        with parameter list “frowning”

__prompt: command not found
~/.config/fish/functions/choices.fish (line 1): __prompt
                                                ^
in command substitution
        called on line 0 of file ~/.config/fish/functions/choices.fish

in function “choices”
        called on line 58 of file ~/.config/fish/functions/anicode.fish
        with parameter list “☹  WHITE FROWNING FACE 😦  FROWNING FACE WITH OPEN MOUTH 🙁        SLIGHTLY FROWNING FACE 🙍       PERSON FROWNING”

in command substitution
        called on line 56 of file ~/.config/fish/functions/anicode.fish

in function “anicode”
        called on standard input
        with parameter list “frowning”

1
Selected ☹, pasted to your clipboard.
 ~ 

quote search string before passing it to grep

currently, our README example doesn't work:

igalic@sinix ~> anicode yellow heart
grep: heart: No such file or directory
yellow heart was not found 😢
anicode 'search param'
igalic@sinix ~ [1]> 

we should quote $what before passing it to (a)grep.

add option for word-boundary based match

i realized the feature that i most use in anicode[1] is grep's word-boundaries feature to limit the amount of characters it matches…

$ anicode dog

matches all DOGRA characters[2]

whereas '\bdog\b' matches…

$ anicode '\bdog\b'
1) ⺨   CJK RADICAL DOG
2) ⽝   KANGXI RADICAL DOG
3) 🌭   HOT DOG
4) 🐕   DOG
5) 🐶   DOG FACE

which, most of the time, is what i want.

That's the equivalent of passing -w to grep, so perhaps we should expose this option

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.