- Select your region in the upper right corner of the management console. I always use N. California, since that's where I live, but Oregon is a little cheaper.
- Launch a Ubuntu instance. I chose a "Ubuntu Server 12.04.1 LTS 64-bit" server using the Quick Launch wizard. If you don't already have a keypair, you'll have to create one.
- Optional: Immediately shut down the instance and change the instance type to "m1.medium" (or larger). This will make the setup steps much faster. You can always scale it back later. Note: When you change instance sizes, elastic IP mappings can get hosed. You may need to unassociate and reassociate them.
- Add an elastic IP that is mapped to the new instance.
- Log in to your new instance with something like:
ssh -i yourkey.private ubuntu@your.elastic.ip
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
// Requirements: | |
// * jshint.js in the same dir as this file | |
// * file you want to parse is called 'testfile.js' | |
var j = require('./jshint').JSHINT, | |
u = require('util'), | |
f = require('fs'); | |
var s = f.readFileSync('testfile.js', 'utf-8'); |
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 vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */ | |
/*global require */ | |
// Requirements: | |
// * 'jshint.js' file in the same dir as this file | |
// * 'files' file in the same dir as this file. Should contain a list of files to parse | |
// with either absolute paths or paths that are relative to this dir | |
var j = require('./jshint').JSHINT, | |
u = require('util'), |
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
node_modules |
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 foo() { | |
alert('asdf'); | |
} | |
//joel was here |
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
body { | |
background-color: #999; | |
background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc), | |
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc); | |
background-size:60px 60px; | |
background-position:0 0, 30px 30px | |
} |
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 vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, node: true */ | |
/*global $, define */ | |
(function () { | |
"use strict"; | |
var connect = require("connect"); | |
function capitalize(req, res, next) { | |
var oldWrite = res.write, |
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
node_modules |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
function sayHi() { | |
console.log("hi"); | |
} | |
$(function () { | |
$("h1").on("mousedown", sayHi); |
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 () { | |
"use strict"; | |
var stream = require("stream"); | |
var b, i, j, t, count; | |
var OUTER_LOOP_ITERATIONS = 1000, | |
INNER_LOOP_ITERATIONS = 100, | |
BLOCK_SIZE = 10000; |
OlderNewer