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> | |
<body> | |
<h1>Group 1</h1> | |
<div> | |
<input type="radio" id="group1-aaa" name="group1" value="aaa" /> | |
<label for="aaa">AAA</label> | |
</div> | |
<div> | |
<input type="radio" id="group1-bbb" name="group1" value="bbb" /> | |
<label for="bbb">BBB</label> |
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 unzip = require("unzip"); | |
var fs = require("fs"); | |
var through = require("through2"); | |
var htmlFiles = []; | |
var manifestContents = null; | |
fs.createReadStream("demo.zip") | |
.pipe(unzip.Parse()) | |
.on("entry", function (entry) { |
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
var chai = require('chai'); | |
var expect = chai.expect; | |
var _ = require('underscore'); | |
chai.use(function (chai, utils) { | |
var Assertion = chai.Assertion; | |
Assertion.addMethod('created', function (expected, idKey) { | |
var obj = this._obj; |
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 fs = require('fs'), | |
_ = require('underscore'), | |
directory = 'mp3s/', | |
files = fs.readdirSync(directory), | |
genres = [ | |
'Blues','Classic Rock','Country','Dance','Disco','Funk','Grunge','Hip-Hop','Jazz','Metal', | |
'New Age','Oldies','Other','Pop','R&B','Rap','Reggae','Rock','Techno','Industrial', | |
'Alternative','Ska','Death Metal','Pranks','Soundtrack','Euro-Techno','Ambient','Trip-Hop', | |
'Vocal','Jazz+Funk','Fusion','Trance','Classical','Instrumental','Acid','House','Game', | |
'Sound Clip','Gospel','Noise','AlternRock','Bass','Soul','Punk','Space','Meditative', |
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 fib (n) { | |
var i, fibs = []; | |
fibs.push(0); | |
fibs.push(1); | |
for (i = 0; i < n; i++) { | |
fibs.push(fibs[0] + fibs[1]); | |
fibs.shift(); | |
} |
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> | |
<title>jQuery Plugin BoilerPlate</title> | |
</head> | |
<body> | |
<div id="element"></div> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> | |
<script src="jquery-plugin-boilerplate.js"></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 requirejs = require("requirejs"); | |
require("./init"); | |
var foo = requirejs("foo"); | |
describe("test", function () { | |
it("test", function () { | |
expect(foo.message).toEqual("working"); | |
}); | |
}); |