Skip to content

Instantly share code, notes, and snippets.

View friej715's full-sized avatar

jane friej715

View GitHub Profile
@friej715
friej715 / main.jsx
Created November 25, 2015 03:10
a part of a tweet deleter
var Page = React.createClass({
getInitialState: function() {
return {
tweets: {},
}
},
componentDidMount: function() {
$.get("http://localhost:3000/tweets", function(data) {
var d = data[0];
@friej715
friej715 / gifrapbot.js
Last active August 29, 2015 14:26
sfpc day 1 - gifRapBot
//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')
})
@friej715
friej715 / streamtoolscrisis.json
Last active August 29, 2015 14:04
Crisis.net + Streamtools
{
"Blocks":[
{
"Id":"1",
"Type":"webRequest",
"Rule":{
"BodyPath":".",
"Headers":{
"Content-Type":"'application/json'"
},
@friej715
friej715 / streamtoolsyo.json
Created July 30, 2014 14:06
Super-simple streamtools pattern to send a Yo to all subscribers
{
"Blocks":[
{
"Id":"23",
"Type":"webRequest",
"Rule":{
"BodyPath":".",
"Headers":{
"Content-Type":"application/json;odata=verbose"
},
@friej715
friej715 / CP
Created December 2, 2013 01:47
Beginner "CracklePop" in Ruby.
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
@friej715
friej715 / UberSimpleRPG
Created December 2, 2013 01:45
My example of an uber-simple RPG-style game for beginner Code Liberation students.
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main ()
{
int playerHealth = 100;
int playerStrength = 10;