This file contains 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
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
This file contains 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 node | |
'use strict'; | |
/* | |
This is a simple Spotify cli-based client with optional Icecast2/shout support! | |
It should work for non-premium users, but you must connect your Spotify account to Facebook. | |
Usage: | |
$ node spotify <spotify uris> <playlist uri> <album uri> <track uri> <etc...> |
This file contains 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
// enhance the original "$.ajax" with a retry mechanism | |
$.ajax = (($oldAjax) => { | |
// on fail, retry by creating a new Ajax deferred | |
function check(a,b,c){ | |
var shouldRetry = b != 'success' && b != 'parsererror'; | |
if( shouldRetry && --this.retries > 0 ) | |
setTimeout(() => { $.ajax(this) }, this.retryInterval || 100); | |
} | |
return settings => $oldAjax(settings).always(check) |
This file contains 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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
NewerOlder