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 arduino = require("johnny-five") | |
// , board = new arduino.Board(); | |
// /*, photo = require('./photo') | |
// , sendgrid = require)'' | |
// */ | |
// board.on("ready", function(){ | |
// var button = new arduino.Button(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 addMultipleGameKeysModule = (function () { | |
var iGameKey; | |
function getGameKeys() { | |
var gameKeyList = []; | |
$j("input'[name*='GAMEKEY']").each(function(i){ | |
gameKeyList.push($j(this).val()); | |
}); | |
return gameKeyList; |
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 FizzBuzz = function(x) | |
{ | |
function isInt(n) { | |
return n % 1 === 0; | |
} | |
function divThree(n) { | |
var nThree = n / 3; | |
return nThree; | |
} | |
function divFive(n) { |
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
storage = Fog::Storage.new({:provider => 'AWS', :aws_access_key_id => ACCESS_KEY_ID, :aws_secret_access_key => SECRET_ACCESS_KEY}) | |
files = storage.get_bucket("lessonOverFlow",{'max-keys' =>'100000'}) | |
truncated = files.body['IsTruncated'] | |
the_response = files.body['Contents'] | |
while truncated | |
files = storage.get_bucket("lessonOverFlow",{'max-keys' =>'100000', 'marker' => files.body['Contents'].last["Key"]}) | |
truncated = files.body['IsTruncated'] | |
the_response = the_response + files.body['Contents'] | |
end |
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
<div class="bigcircle"> | |
<div class="circle circle1"> 1 </div> | |
<div class="circle circle2"> 2 </div> | |
<div class="circle circle3"> 3 </div> | |
<div class="circle circle4">4 </div> |
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 amountSpent = 0; | |
$('.colAmmount').each(function($this,foo) { amountSpent += parseInt(foo.innerHTML.replace(/ /g,'').replace(/\n/g,'')) }) | |
console.log(amountSpent); | |
$('.colAmmount').each(function($this,foo){ console.log($this,parseInt(foo.innerHTML.replace(/ /g,'').replace(/\n/g,''))) }) |
OlderNewer