Skip to content

Instantly share code, notes, and snippets.

View jwo's full-sized avatar

Jesse Wolgamott jwo

View GitHub Profile
def 😮 🍽
if ["🍕", "🌮"].include? 🍽
puts "yummmmmm"
else
puts "get out"
end
end
😮 "🌮"
@jwo
jwo / parse2 guide.rb
Created February 18, 2016 13:36
parse2 guide.rb
## 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")
@jwo
jwo / .bashrc
Created February 9, 2016 15:27
chruby-config
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
# 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

//= require d3
var Chartie = React.createClass({
getInitialState(){
return {
datum: [
{
"values": [],
"key": "Average",
"color": '#ff7f0e'
}
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) {
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>
@jwo
jwo / ohhai.jsx
Last active October 21, 2015 17:07
var OhHai = React.createClass({
render() {
return <div >
<h1>Oh Hai There!</h1>
</div>
}
});