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
$(function() { | |
var minDist = 100; | |
var target = document.getElementById('volatile'); | |
if (target == null) | |
return; | |
target.style.position = "relative"; | |
target.style.left = target.style.left || "0px"; | |
target.style.top = target.style.top || "0px"; |
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
(function(c){var a={};var b=function(d,e,f){if(a[d]){fn=a[d]}else{if(typeof e=="undefined"){return false}fn=a[d]=new Function("obj",'var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push("'+e.replace(/[\r\t\n]/g," ").replace(/\"/g,'\\"').split("<%").join("\t").replace(/((^|%>)[^\t]*)/g,"$1\r").replace(/\t=(.*?)%>/g,'",$1,"').split("\t").join('");').split("%>").join('p.push("').split("\r").join("")+"\");}return p.join('');")}if(typeof f!="undefined"){return fn(f)}else{return fn}};Sammy=Sammy||{};Sammy.Template=function(f,d){var e=function(h,i,g){if(typeof g=="undefined"){g=h}return b(g,h,c.extend({},this,i))};if(!d){d="template"}f.helper(d,e)}})(jQuery); |
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 whichBrowser = function() { | |
var ua = navigator.userAgent, p = {}, b = {}, e = {}; | |
// detect platform | |
if (/Windows/.test(ua)) { | |
p.name = 'win'; | |
p.win = true; | |
} else if (/Mac/.test(ua)) { | |
p.name = 'mac'; | |
p.mac = 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
var queue = function(f) { | |
var queue = []; | |
var running = false; | |
var initiate = function() { | |
if (running || queue.length == 0) { | |
return; | |
} | |
running = 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
var propagate = function(callback, f) { | |
return function(err) { | |
if (err) { | |
callback(err); | |
return; | |
} | |
return f.apply(this, Array.prototype.slice.call(arguments, 1)); | |
}; | |
}; |
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 'underscore' | |
semver = require 'semver' | |
readInstalled = require 'read-installed' | |
expectedPackages = (pkgJson) -> | |
pack = require(pkgJson) | |
devDeps = pack.devDependencies || {} | |
deps = pack.dependencies || {} | |
_.extend({}, devDeps, deps) |
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
fs = require 'fs' | |
urlLib = require 'url' | |
path = require 'path' | |
mkdirp = require 'mkdirp' | |
downloader = require 'downloader' | |
exports.get = ({ url, dir, onDownload }, callback) -> | |
onDownload ?= (callback) -> callback() | |
{pathname} = urlLib.parse(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
getfile = require '../lib/getfile' | |
getfile.get | |
url: 'http://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar' | |
dir: '../.selenium' | |
onDownload: (callback) -> | |
console.log "Installing selenium...." | |
callback() | |
, (err, filepath) -> | |
return console.log(err) if err? |
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
fs = require 'fs' | |
_ = require 'underscore' | |
{exec} = require 'child_process' | |
exec 'npm ls', (err, output) -> | |
return console.log(err) if err? | |
lines = output.split('\n').slice(1, -2) | |
packages = lines.map (x) -> |
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
convert tweaked.png -crop 729x870 -shave 0x80 -resize 80x70 -gravity East -extent 80x70 tiles_%d.png |
OlderNewer