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
def 😮 🍽 | |
if ["🍕", "🌮"].include? 🍽 | |
puts "yummmmmm" | |
else | |
puts "get out" | |
end | |
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
## Post Object | |
Http.with_headers("X-Parse-Application-Id" => $parse_application_id).post("http://$yourserver.herokuapp.com/parse/classes/GameScore", json: {score:1337,playerName:"Sean Plott",cheatMode: false} | |
=> {"results"=>[{"objectId"=>"We2so7njJV", "score"=>1337, "playerName"=>"Sean Plott", "cheatMode"=>false, "updatedAt"=>"2016-02-18T11:55:37.367Z", "createdAt"=>"2016-02-18T11:55:37.367Z"}]} | |
## Get object | |
Http.with_headers("X-Parse-Application-Id" => $parse_application_id).get("http://$yourserver.herokuapp.com/parse/classes/GameScore") |
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
source /usr/local/opt/chruby/share/chruby/auto.sh | |
source /usr/local/opt/chruby/share/chruby/chruby.sh | |
RUBIES=(~/.rubies/*) | |
chruby ruby-2.3.0 |
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
# And, to activate, you need to tell Rails to load it up: | |
# config/application.rb | |
config.middleware.insert_before 0, Rack::Attack |
Oh hai all…. I had people ask about Hank’s Heroes walk tomorrow morning… here are the deets
Houston Zoo | Map
6200 Hermann Park Drive
Houston, TX 77030
7am Registration
8am Walk
1.5 miles
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
//= require d3 | |
var Chartie = React.createClass({ | |
getInitialState(){ | |
return { | |
datum: [ | |
{ | |
"values": [], | |
"key": "Average", | |
"color": '#ff7f0e' | |
} |
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 Taylor = React.createClass({ | |
getInitialState() { | |
return { | |
urls: [] | |
}; | |
}, | |
componentDidMount() { | |
var component = this; | |
fetch("http://api.giphy.com/v1/gifs/search?q=taylor+swift&api_key=dc6zaTOxFJmzC").then(function(response) { | |
response.json().then(function(data) { |
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 Numbers = React.createClass({ | |
numbers() { | |
return [3,4,5]; | |
}, | |
render() { | |
return <div > | |
<h1>There are {this.numbers().length} numbers</h1> | |
{this.numbers().map(function(i){ | |
return <p>There is {i}</p> |
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 OhHai = React.createClass({ | |
render() { | |
return <div > | |
<h1>Oh Hai There!</h1> | |
</div> | |
} | |
}); |