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
/* | |
* ---------------------------------------------------------------------------- | |
* "THE {$substance}WARE LICENSE" (Revision 69): | |
* {$author}<{$email}> wrote this file. As long as you retain this notice you | |
* can do whatever you want with this stuff. If we meet some day, and you think | |
* this stuff is worth it, you can buy {$author} ${substance} in return. | |
* ---------------------------------------------------------------------------- | |
*/ |
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 LocalStorageCache = (function () { | |
function _now() { | |
return (new Date()).getTime(); | |
} | |
function _isExpired(json) { | |
var expired = false; | |
if (json.hasOwnProperty('ttl')) { | |
expired = ((json.timestamp + json.ttl) < _now()); |
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
<html> | |
<h1>wordpress dot com</h1> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var location = window.location.href; | |
var node_app_url = "http://localhost:8000"; | |
var node_path = node_app_url + "?wp_url=" + encodeURIComponent(location); | |
var iframe = $("<iframe>").attr('src', node_path); |
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
#!/bin/env node | |
// OpenShift sample Node application | |
// Get the environment variables we need. | |
var ipaddr = process.env.OPENSHIFT_INTERNAL_IP; | |
var port = process.env.OPENSHIFT_INTERNAL_PORT || 8080; | |
if (typeof ipaddr === "undefined") { | |
console.warn('No OPENSHIFT_INTERNAL_IP environment variable'); | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>UIWebViewBounce</key> | |
<true/> | |
<key>TopActivityIndicator</key> | |
<string>gray</string> | |
<key>EnableLocation</key> | |
<false/> |
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
// Modified from from Backbone.Router v 0.9.2 | |
DelegatingRouter = (function() { | |
var DelegatingRouter = function(args) { | |
if (!args.delegate) { throw("delegate is required arg to DelegateRouter"); } | |
if (!args.routes) { throw("routes is required arg to DelegateRouter"); } | |
Backbone.history || (Backbone.history = new Backbone.History); | |
_delegate_routes(this, args.delegate, args.routes); | |
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
class CYOAGame | |
INVALID_CHOICE = "INVALID_CHOICE_aw_fuuuuuck_naw" | |
ENTER_PROMPT = " ... " | |
def initialize(events) | |
@events = events | |
@input = nil | |
self.run(:setup_merch) | |
end |
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
__.traverse = (obj, iterator, context)-> | |
result = {} | |
return result unless obj | |
for k,v of obj | |
result[k] = iterator.call(context, k, v) | |
result | |
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
{ | |
"this": { | |
"is": { | |
"one more": "way", | |
"that": "json", | |
"coulda": "woulda", | |
"be": "indented" | |
}, | |
"okay": "awesome" | |
}, |
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
{ | |
"this": { | |
"is": { | |
"one more": "way", | |
"that": "json", | |
"coulda": "woulda", | |
"be": "indented" | |
}, | |
"okay": "awesome" | |
}, |