Skip to content

Instantly share code, notes, and snippets.

View stephaniewilkinson's full-sized avatar
🐧

Stephanie stephaniewilkinson

🐧
View GitHub Profile
@stephaniewilkinson
stephaniewilkinson / gist:0a62efb9bda07f6e3be4
Last active August 29, 2015 14:03
What's the HTTP Get method?

What's the HTTP Get method?

  • Gets information from a path (“index.html”) or URI (“http://www.google.com”)
  • Octothorpe (#) indicates that this is an instance method
  • initheader defaults to an empty hash
  • supports three levels of compression (gzip, deflate, identity)
  • This routine also does decompression

What's HTTP?

HTTP stands for hypertext transfer protocol, and is the language of servers communicating.

@stephaniewilkinson
stephaniewilkinson / gist:3a317103e9d3e10d98f5
Last active August 29, 2015 14:03
The Mobbing Manual

The mobbing manual provides guidelines for working in a group oriented context

Values

  • Kindness
  • Consideration
  • Respect

Roles

  • Driver Learning Goal: practice keyboarding, listening, and translation skills.

Starting Timer

Timer has been stopped.

Would you like to restart the timer?

Times Up!

require 'minitest/autorun'
require 'minitest/pride'
require 'since_potter'
describe SincePotter do
before do
@since_potter = SincePotter.new
end
describe "the truth" do
DEBUG=app:* nodemon
http://localhost:3000/reset?=
token=3DeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImVtYWlsIjoiYWRtaW=
4iLCJwYXNzd29yZCI6ImFkbWluIn0sImlhdCI6MTQ2ODQ0MDUwMCwiZXhwIjoxNDY4NDUwNTAwf=
Q.LRIdC4oMHGcxr9NupLFGQGY4a5jhLtnh8t9hTEd1yhw

Keybase proof

I hereby claim:

  • I am stephaniewilkinson on github.
  • I am whathappens (https://keybase.io/whathappens) on keybase.
  • I have a public key whose fingerprint is CDC1 7330 25E1 7F7F 5A36 E85F 64FA 2658 818F 3A81

To claim this, I am signing this object:

Switch What it does Example
-e executes the subsequent code ruby -e 'puts "te quiero"'
-w gives you any warning messages that your program might generate ruby -we 'if 9; puts "te quiero" end'
-c checks your syntax Syntax OK
-rprofile requires the feature, prefaced with r ruby -rpry filename.rb
``
$ brew services start postgresql
Service `postgresql` already started, use `brew services restart postgresql` to restart.
$ rake
/Users/steph/.gem/ruby/2.2.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize': could not connect to server: No such file or directory (PG::ConnectionBad)
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
$ brew services restart postgresql
Stopping `postgresql`... (might take a while)

Popular Options for Shells:

  1. Bash
  2. Fish
  3. Zsh

Bash (Bourne Again SHell) is the default shell on your mac. You use it when you open Terminal and execute commands. It has two associated files for customization, .bash_profile and .bashrc