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.
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
config = | |
key: "github_key" | |
secret: "github_secret" | |
clientID: "github_client_id" | |
# Network shim. | |
net = | |
post: (host, path, query, headers, data, fn) -> | |
headers ?= {} |
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
# Iterate through all sockets excluding origin | |
broadcast = (origin, fn) -> | |
fn(socket) for socket in io.sockets.clients() when socket != origin |
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')); |
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> |
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
python -m SimpleHTTPServer |
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
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
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 */ | |
} |