Includes a description of Git including blobs, objects, trees, and explains everything through DAC graphs.
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
util = require('util') | |
### | |
Syrup, a syntactically-light LISP | |
Syrup is whitespace-significant. Function calls are made as so: | |
defn: test [] | |
print: "Cool language" |
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
# tiny date formatter | |
# curly brackets used as a format specifier; can also zero-pad values | |
# aka (new Date).format("{FullYear}-{Month:2}-{Date:2}") | |
Date::format = (fmt) -> | |
fmt.replace /\{([^}:]+)(?::(\d+))?\}/g, (raw, comp, len) => | |
unless (n = @["get"+comp]?())? then raw | |
else (Array(+len|0).join('0')+(n+(if comp == 'Month' then 1 else '')))[-len..] | |
Date::getFullMonth = -> |
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
element { | |
white-space: pre; word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
white-space: pre-wrap; /* CSS3*/ | |
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ | |
white-space: -pre-wrap; /* Opera 4-6 */ | |
white-space: -o-pre-wrap; /* Opera 7 */ | |
} |
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
var TwilioClient, Twiml, app, config, express, phone, port, twilio; | |
express = require('express'); | |
TwilioClient = require('./twilio').Client; | |
Twiml = require('./twilio').Twiml; | |
app = express.createServer(express.logger()); | |
app.use(express.bodyParser()); | |
config = {}; |
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
python -m SimpleHTTPServer |
Follow this guide. It'll set up three VMs for you, one with each version respectively.
I then follow the additional steps, to save time:
- Load up each clean profile and pass through the boring Windows setup/driver finding.
- Open up Internet Explorer to a non-intensive page (Hacker News works)
- Create a snapshot "Running" and then close out of the window.
Then each time you want to run a version of IE, load "Running". When you're done, click "Power off the Machine" and click the checkbox to reload the snapshot "Running".
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
<!-- most modern browsers --> | |
<p><br></p> | |
<!-- ie9 --> | |
<p></p> | |
<!-- ie7-8 --> | |
<script> | |
document.body.appendChild(document.createElement('p')) | |
</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
var express = require('express'); | |
var app = module.exports = express.createServer(); | |
// Configuration | |
app.configure(function(){ | |
app.set('view engine', 'mustache'); | |
app.set('views', __dirname + '/views'); | |
app.register(".mustache", require('stache')); |
LightningJS is a sandbox that integrates seamlessly with third party libraries by loading code into iframes and deferring execution so it doesn't slow down page load. It adds a level of indirection to third-party APIs, so code rewriting is required. Benchmarks are in its favor however.