Skip to content

Instantly share code, notes, and snippets.

@hieuns
hieuns / rspec-noti.sh
Created March 8, 2017 07:31
Run rspec command and show notification when it finished
#!/bin/sh
# get name of current directory
current_dir=${PWD##*/}
if rspec $@; then
notify-send -i face-laugh "Rspec in $current_dir end: Success"
else
notify-send -i face-sad "Rspec in $current_dir end: Failure"
fi
@hieuns
hieuns / atom-snippets.cson
Last active March 23, 2021 08:53
Personal Atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
[
{"t": ":-SS", "str": ":-SS", "src": "https://s.yimg.com/lq/i/mesg/emoticons7/42.gif"},
{"t": "#:-S", "str": "#:-S", "src": "https://s.yimg.com/lq/i/mesg/emoticons7/18.gif"},
{"t": ">:D<", "str": ">:D<", "src": "https://s.yimg.com/lq/i/mesg/emoticons7/6.gif"},
{"t": ";;)", "str": ";;\\)", "src": "https://s.yimg.com/lq/i/mesg/emoticons7/5.gif"},
{"t": ":(tv)", "str": ":\\(tv\\)", "src": "https://s.yimg.com/lq/lib/msg/img/aurora/emot/201105/tv.gif"},
{"t": ":(game)", "str": ":\\(game\\)", "src": "https://s.yimg.com/lq/lib/msg/img/aurora/emot/201105/play_game.gif"},
{"t": ":((", "str": ":\\(\\(", "src": "https://s.yimg.com/lq/i/mesg/emoticons7/20.gif"},
{"t": ":(fight)", "str": ":\\(fight\\)", "src": "https://s.yimg.com/lq/lib/msg/img/aurora/emot/201105/fight.gif"},
{"t": "<):)", "str": "<\\):\\)", "src": "https://s.yimg.com/lq/i/mesg/emoticons7/48.gif"},
[
{"t": "(ok)", "str": "\\(ok\\)", "src": "http://i.imgur.com/owO97yH.gif"},
{"t": "OK.", "str": "^OK\\.$", "src": "http://i.imgur.com/owO97yH.gif"},
{"t": "(thankyou)", "str": "\\(thankyou\\)", "src": "http://i.imgur.com/CHmSNJw.gif"},
{"t": "(chucmung)", "str": "\\(chucmung\\)", "src": "http://i.imgur.com/HG55iou.png"},
{"t": "(sad)", "str": "\\(sad\\)", "src": "http://i.imgur.com/U7ba4Vf.png"},
{"t": "(lol)", "str": "\\(lol\\)", "src": "http://i.imgur.com/7Lec0ew.png"},
{"t": "(yaoming)", "str": "\\(yaoming\\)", "src": "http://i.imgur.com/9cEEjFI.png"},
{"t": "(facepalm)", "str": "\\(facepalm\\)", "src": "http://i.imgur.com/9FEpQFR.gif"},
{"t": "(nod2)", "str": "\\(nod2\\)", "src": "http://i.imgur.com/y4kYYlE.gif"},