This file contains hidden or 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 Page = React.createClass({ | |
getInitialState: function() { | |
return { | |
tweets: {}, | |
} | |
}, | |
componentDidMount: function() { | |
$.get("http://localhost:3000/tweets", function(data) { | |
var d = data[0]; |
This file contains hidden or 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
//all of this code is from todd | |
//i just messed with the key bindings | |
//go to hotwriting.net/gifRapBot | |
//shift+space to show/hide editor and run code | |
//paste this ish in | |
Mousetrap.bind('q', function() { | |
speakNspell('your rhymes are', "blue"); | |
showGif('crushSelf.gif') | |
}) |
This file contains hidden or 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
{ | |
"Blocks":[ | |
{ | |
"Id":"1", | |
"Type":"webRequest", | |
"Rule":{ | |
"BodyPath":".", | |
"Headers":{ | |
"Content-Type":"'application/json'" | |
}, |
This file contains hidden or 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
{ | |
"Blocks":[ | |
{ | |
"Id":"23", | |
"Type":"webRequest", | |
"Rule":{ | |
"BodyPath":".", | |
"Headers":{ | |
"Content-Type":"application/json;odata=verbose" | |
}, |
This file contains hidden or 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
for i in 1..100 do | |
case | |
when i%3==0 && i%5==0 | |
puts "CracklePop" | |
when i%3==0 | |
puts "Crackle" | |
when i%5==0 | |
puts "Pop" | |
else | |
puts i |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <stdlib.h> | |
using namespace std; | |
int main () | |
{ | |
int playerHealth = 100; | |
int playerStrength = 10; | |