Glide is the easiest way to create useful slide for all of your Gists.
Keyboard shortcuts:
←
: go backward.→
: go forward.
$ -> | |
## | |
## Social Plugins ## | |
# Facebook Like Button | |
((d, s, id) -> | |
js = undefined | |
fjs = d.getElementsByTagName(s)[0] | |
return if d.getElementById(id) | |
js = d.createElement(s) |
{ | |
"auto_indent": true, | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"detect_indentation": true, | |
"disable_formatted_linebreak": true, | |
"disable_tab_abbreviations": true, | |
"font_size": 12.0, | |
"font_face": "Ricty", | |
"highlight_trailing_spaces_color_name": "invalid", | |
"ignored_packages": |
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
# See http://stackoverflow.com/questions/4214731/coffeescript-global-variables | |
root = exports ? this | |
root._gaq = [['_setAccount', 'UA-xxxxxxxx-y'], ['_trackPageview']] | |
insertGAScript = -> | |
ga = document.createElement 'script' | |
ga.type = 'text/javascript' | |
ga.async = true | |
proto = document.location.protocol |
var script = document.createElement("script"); | |
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |
Objective: Print the lyrics for the current playing song.
How: We'll create a small bash
script to do the fetching for us (using curl
) and then we'll
display it either in the terminal or in our $EDITOR
First we'll need to get the name of the current song and its artist: