Skip to content

Instantly share code, notes, and snippets.

View mikestone14's full-sized avatar

Mike Stone mikestone14

View GitHub Profile
@mikestone14
mikestone14 / gist:017bf74cd2436dbaa8c5
Last active August 29, 2015 14:06
Markdown table

Title Log in user Log out user
Url /api/sessions /api/sessions
Method POST DELETE
Data Params
{ session:

  { email: "[email protected]", password: "p@ssw0rd" } }
none
Success Response
Error Response
Sample Call

using current_session and viewing the @headers hash

Rails 3: headers

@headers=
  {"HTTP_X_FORWARDED_FOR"=>"192.168.0.1",
   "HTTP_USER_AGENT"=>
@mikestone14
mikestone14 / gist:11198630
Created April 23, 2014 00:08
Getting a GoDaddy domain to point to a Heroku app.
@mikestone14
mikestone14 / gist:11193365
Last active July 11, 2018 22:52
Install Sublime Command Line Tool

Install Sublime 'subl' Command Line Tool

Add the following line to your .bash_profile

export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH

This sets the location where you want Terminal to look for binaries on your machine.

Blocks Lab 1: Hashtag Overload

In this lab, we'll write a short program that will auto-hashtag our tweets for us. Put this line in a new Ruby file:

tweet = "We ate fifty cheeseburgers for lunch"

Your objective is to transform this tweet into the array ["#fifty", "#cheeseburgers", "#lunch"]. You'll need to do three things:

Blocks Lab 1: Hashtag Overload

In this lab, we'll write a short program that will auto-hashtag our tweets for us. Put this line in a new Ruby file:

tweet = "We ate fifty cheeseburgers for lunch"

Your objective is to transform this tweet into the array ["#fifty", "#cheeseburgers", "#lunch"]. You'll need to do three things: