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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="yes" name="apple-mobile-web-app-capable"> | |
<title></title> | |
<!-- iPhone --> | |
<link href="http://taylor.fausak.me/static/images/apple-touch-icon-57x57.png" |
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
R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0); |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">Comix Sample</tspan> | |
</label> | |
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59"> |
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
(function(){ | |
var s = document.createElement('link'); | |
s.setAttribute('href','style.css'); | |
s.setAttribute('rel','stylesheet'); | |
s.setAttribute('type','text/css'); | |
document.getElementsByTagName('head')[0].appendChild(s); | |
}()); | |
(function() { | |
var tk = document.createElement('script'); |
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
/*jslint boss:true, browser: true, devel:true, nomen: true */ | |
/*global $,jQuery, window, ActiveXObject, google, self, top, _*/ | |
(function (exports, $) { | |
"use strict"; | |
var NS = exports.NS || {}; | |
/** | |
* ClassName Model Class | |
* @class |
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
{ | |
"name": "application-name", | |
"description": "A package using versioning best-practices", | |
"author": "Gaurav Jassal <gaurav@jassal.me>", | |
"dependencies": { | |
"colors": "0.x.x", | |
"express": "2.3.x", | |
"optimist": "0.2.x" | |
}, | |
"devDependencies": { |
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
# Start an HTTP server from a directory, optionally specifying the port | |
function server() { | |
# Default to port 8000 | |
local port="${1:-8000}" | |
# Since the one-liner blocks, we open the browser beforehand. However, we want to | |
# wait just a couple of seconds since the server will not be ready just yet. | |
# Also, I think Linux users should be able to use 'xdg-open' ('open' is for OS X). | |
( sleep 2; open "http://localhost:${port}/" ) & | |
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
import os | |
import posixpath | |
import urllib | |
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
# modify this to add additional routes | |
ROUTES = ( | |
# [url_prefix , directory_path] | |
['/media', '/var/www/media'], |
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
{ | |
"name" : "ServeStaticContent", | |
"version" : "0.0.1", | |
"dependencies" : { | |
"express" : "3.x" | |
} | |
} |
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
/** | |
* PluginName v0.0.1 | |
* https://github.com/creativeaura/PluginName | |
* MIT licensed | |
* | |
* Copyright (C) 2013 http://gaurav.jassal.me - By Gaurav Jassal (@gauravjassal) | |
*/ | |
(function (root, factory) { | |
if (typeof exports === 'object') { |