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
/* | |
* Do it. | |
* | |
*/ | |
var th = this.thrusters, pod = this; | |
var _course; | |
function course(dir) { | |
// shutdown current engine | |
_course && th[ _reverse(_course) ](!!0); | |
// don't thrust in the direction of movement |
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
var Transport = function(methods) { | |
var fn = function(options) { | |
this.options = options || {}; | |
}; | |
_.extend(fn.prototype, Transport.prototype, methods); | |
return fn; | |
}; | |
_.extend(Transport.prototype, Backbone.Events, { | |
// stub | |
validate: function(parsed) { return true; }, |
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
/* Monospace font for GMail plaintext view and compose */ | |
div[class="ii gt adP adO"], | |
.Ap textarea, .At textarea, | |
div[class*="LW-avf"] { | |
font-family: monospace !important; | |
font-size: 1em !important; | |
} |
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
Spy Game, 2001 | |
The Good Shepherd, 2006 | |
The Ghost Writer, 2010 | |
Ronin, 1998 | |
The Spy Who Came in from the Cold, 1965 | |
Tinker Tailor Soldier Spy, 2011 | |
The American, 2010 | |
A Most Wanted Man, 2014 |
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
node_modules |
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
# do whatever the fuck you want with it license | |
# set 'assume unchanged' for files in list, replicates tortoise svn 'ignore on commit' feature | |
# source ~/.git-ignoreoncommit.sh in your profile | |
# https://github.com/falsefalse | |
function git-ioc { | |
VER="0.2" | |
ignorefile=".gitignore-oncommit" |
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
// swap name and last name in JIRA | |
// that way is convenient to find people as you type | |
Array.prototype.forEach.call($('#assignee option[value!=-1]'), function(o) { | |
var t = o.innerText; | |
o.innerText = t.split(' ').reverse().join(' '); | |
}); |
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
require 'hpricot' | |
require 'open-uri' | |
require 'active_support/core_ext/numeric/conversions' | |
@base = "http://simpledesktops.com" | |
def scrape_page(url, page_number = 0) | |
Dir.mkdir "#{page_number}" unless File.exists? "#{page_number}" | |
doc = Hpricot( open( url ) ) |
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
console.clear && console.clear(); | |
var images = []; | |
var elements = document.querySelectorAll('#global div'); | |
for (var i = 0, l = elements.length; i < l; i++) { | |
var element = elements[i]; | |
var bgImg = document.defaultView.getComputedStyle(element, null).getPropertyValue('background-image'); | |
if (bgImg == 'none') { | |
continue; | |
} | |
var match = bgImg.match(/url\((.+)\)/); |
NewerOlder