Skip to content

Instantly share code, notes, and snippets.

View dwyn's full-sized avatar
🖖
greetings

dwayne. dwyn

🖖
greetings
  • ATX
View GitHub Profile
@jwo
jwo / mysql.database.yml
Last active March 28, 2024 15:32
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
@itsmattsoria
itsmattsoria / gistfil1.textile
Last active March 19, 2024 04:30
Mac Terminal Cheat Sheet

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@bvaughn
bvaughn / react-lifecycle-cheatsheet.md
Last active March 2, 2023 13:29
React lifecycle cheatsheet

React lifecycle cheatsheet

Method Side effects1 State updates2 Example uses
Mounting
componentWillMount Constructor equivalent for createClass
render Create and return element(s)
componentDidMount DOM manipulations, network requests, etc.
Updating
componentWillReceiveProps Update state based on changed props
@kimchaily
kimchaily / alfred2-openNewChromeWindow
Created April 16, 2015 15:46
Alfred workflow. Open a new window in Chrome and if URL given, then go to that URL
on alfred_script(q)
if not (q starts with "http://")
set q to "http://" & q
end if
tell application "/Applications/Google Chrome.app"
make new window
set URL of active tab of window 1 to q
end tell
end alfred_script
@ryandeussing
ryandeussing / gist:5667094
Created May 29, 2013 00:14
Find and kill a zombie shotgun server
$ ps ax | grep shotgun
11152 s000 R+ 0:00.00 grep shotgun
10766 s001 S+ 0:00.60 /Users/ryandeussing/.rvm/gems/ruby-1.9.3-p429@sinatra/bin/shotgun
$ kill -9 10766
#done

Pair Programming

What is pair programming? (Christina)

Pair programming is an agile software development technique in which two programmers work together at one workstation.

One member, the driver, writes code while the other, the observer or navigator, reviews each line of code as it is typed in. The two people work together to design, code and test user stories.

  • perhaps talk about what pair programming looks like at Artsy today (ad-hoc).