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 zip = function(array1, array2) { | |
return array1.map(function(v, i) { | |
return {x: v, | |
y: array2[i]}; | |
}); | |
}; | |
var xs = [8,7,6,5]; | |
var ys = [4,3,2,1]; |
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 ENCODED_USERNAME = '098f6bcd4621d373cade4e832627b4f6', | |
ENCODED_PASSWORD = '5f4dcc3b5aa765d61d8327deb882cf99'; | |
var usernameField = document.getElementById('username'), | |
passwordField = document.getElementById('password'), | |
submitButton = document.getElementById('submit'); | |
submitButton.onclick = function() { | |
var username = usernameField.value, | |
password = passwordField.value; |
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
console.log('This is A.'); | |
var b = require('b'); |
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
#!/usr/bin/env node | |
/** | |
* Create sample interaction data, using valid kpiggybank | |
* data as a seed. | |
* | |
* Can use from the command line, like so: | |
* | |
* node sample.js 42 # gets 42 data blobs | |
* |
NewerOlder