Last active
October 24, 2015 18:53
-
-
Save trekdemo/d101abcef0dc4c55beff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# This script creates LaunchBar snippets for kaomojis | |
# | |
# About kaomojis: http://www.gomotes.com/text-emoticons/ | |
# About LaunchBar snippets: https://blog.obdev.at/introducing-launchbar-snippets/ | |
# | |
# Run without `git checkout` | |
# | |
# ruby -e "$(curl -fsSL <RAW URL OF THIS GIST>)" | |
# | |
SNIPPETS_PATH = File.join(ENV['HOME'], 'Library', 'Application Support', 'LaunchBar', 'Snippets') | |
def create_snippet(args) | |
kaomoji, description = args | |
file_name = ['kao', kaomoji, description].join(' - ').concat('.txt') | |
safe_file_name = ['kao', description].join(' - ').concat('.txt') | |
file_path = File.join(SNIPPETS_PATH, file_name) | |
safe_file_path = File.join(SNIPPETS_PATH, safe_file_name) | |
puts file_name | |
begin | |
File.open(file_path, 'w') { |file| file.write(kaomoji) } | |
rescue Errno::ENOENT | |
File.open(safe_file_path, 'w') { |file| file.write(kaomoji) } | |
end | |
end | |
DATA.read | |
.split("\n") | |
.map(&:strip) | |
.each_slice(2, &method(:create_snippet)) | |
system 'open', SNIPPETS_PATH | |
__END__ | |
(っ⌒‿⌒)っ | |
I wanna hug you | |
(¬_¬) | |
Paranoid | |
(¬,¬”) | |
Oops | |
(`∇´)ψ | |
Devil | |
(¬_¬”) | |
Smart aleck | |
(ˇ▼ˇ) | |
Yawn | |
(>,<) | |
Doh | |
(‾.‾ ) | |
Tired | |
(♥ε♥) | |
Love kiss | |
(-̩-̩__-̩-̩) | |
Cry | |
(*¬*) | |
Drool | |
ƪ(˘▽˘ƪ) | |
Worship | |
/(´▽`)/ | |
Dance | |
(´╹〽╹`) | |
Undecided | |
(╯‵Д′)╯ | |
Angry | |
(>.<) | |
Ouh | |
(o_o) | |
Eek | |
(e_e) | |
Tears | |
(=_—) | |
Fight | |
(p_P) | |
Cry | |
(:_.) | |
Alien | |
(`・ω・´) | |
Bear | |
(≧◡≦) | |
Blushes | |
\(0.O)/ | |
w00t | |
¯\_(ツ)_/¯ | |
Unsure | |
(ˇ_ˇ’!l) | |
Ashamed | |
(ˇ_ˇ) | |
Blank | |
(‾.‾”) | |
Shy | |
(*•*) | |
Whut | |
(•ˋ _ ˊ•) | |
Mad | |
(⌣_⌣) | |
Desperate | |
\(˘̩̩̩▽˘̩̩̩)/ | |
Dance | |
(◦’ںˉ◦) | |
Wink | |
(* ̄∇ ̄*) | |
Embarrassed | |
(╯°□°)╯︵ ┻━┻ | |
Flipping table | |
(V)(;,,,;)(V) | |
Dr. Zoidberg | |
(T.T) | |
Tears roll down | |
(Q_Q) | |
Why | |
(U_u) | |
Not ok | |
(O_.) | |
Have you seen this | |
(—_-) | |
Quite please | |
t(-__-t) | |
Fuck you | |
(ˆ௰ˆ) | |
Meow | |
(☼Д☼) | |
Shocked | |
(♥͡_♥͡) | |
Love | |
(•͡.•͡) | |
You sure | |
(˘⌣˘)ε˘`) | |
Kiss for you | |
┬─┬◡ノ(° – °ノ) | |
Table set up | |
(-__-) | |
Tired | |
(Ç_ç) | |
Why you’ve do this | |
(-□-)︵* | |
Blow Kiss | |
(☉__☉”) | |
Eek | |
\(‾▿‾\) | |
Dance | |
(っ'з')っ | |
I wanna kiss you | |
~(‾▿‾~)(~‾▿‾)~ | |
Dance together | |
(`˘з˘) | |
Smooch | |
(¯―¯٥) | |
Oops | |
(╯_╰”) | |
Shame | |
(˘⌣˘) | |
Smile | |
(‾‾^‾‾) | |
Conceited | |
(–˛ — º) | |
Sleep | |
ƪ(ˆ▽ˆ)ʃ | |
Yes | |
(ʃƪˆ▿ˆ) | |
Thank you | |
(•_¤) | |
Borg | |
(ღˇ◡ˇ)~♥ | |
Blow kisses | |
(//_^) | |
Emo | |
(*-*) | |
What | |
(O_O) | |
Surpirse | |
(^____^) | |
Aww | |
(X_x) | |
Dead | |
(@_º) | |
Crazy | |
ヽ(´ー`)ノ | |
Help here | |
ヽ(`Д´)ノ | |
Frustrated | |
(`ハ´) | |
Angry | |
┐(‘~`;)┌ | |
It wasn’t me | |
(・ー・) | |
Stare | |
(ó.ò) | |
No | |
(^3^) | |
Kiss | |
(¬‿¬) | |
Sneaky | |
(∩_∩) | |
Happy | |
щ(ºДºщ) | |
Whaaa | |
( ︠ु௰︡ू) | |
Want smooch | |
( ꒪⌓꒪) | |
Want it | |
('-') | |
Expressionless | |
(^_-) | |
Wink | |
(´∀`) | |
Happy | |
(\_/) | |
Mad | |
(õ_ó) | |
What the fuck | |
(⌒▽⌒)☆ | |
Drunk | |
\m/ (>_<) \m/ | |
Rock on | |
(>-‘.’-)> | |
Pikachu | |
\(ˆ⌣ˆ)/ | |
Yay | |
t(‘.’t) | |
Hands up | |
(゚Д゚) | |
Scared | |
(ˆ⌣ˆ) | |
Smile | |
✌(◕‿-)✌ | |
Peace | |
┒(⌣˛⌣)┎ | |
Meditate | |
(@_@) | |
Puppy eyes | |
(°J°) | |
John Lennon | |
(V_v) | |
Served | |
m(_ _)m | |
Worship | |
(¬º-°)¬ | |
Zombie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment