Skip to content

Instantly share code, notes, and snippets.

View timkellogg's full-sized avatar

Tim timkellogg

  • Los Angeles
View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'fileutils'
require 'colorize'
puts `brew install tree`
puts `gem install colorize`
puts 'What are the names of the contributers?'
@timkellogg
timkellogg / database_helpers.txt
Last active August 29, 2015 14:28
Rake Tasks,
http://jacopretorius.net/2014/02/all-rails-db-rake-tasks-and-what-they-do.html
http://guides.rubyonrails.org/active_record_basics.html
# many to many
class CreateEmployeesProjects < ActiveRecord::Migration
def change
create_table(:employees_projects) , id: false do |t|
t.column(:employee_id, :integer)
t.column(:project_id, :integer)
@timkellogg
timkellogg / tictactoe
Last active September 16, 2015 07:30
function Player (mark) {
this.mark = mark
};
function Space (x,y) {
this.coordinates = [x,y]
this.markedBy = undefined
};
Space.prototype.marked = function(player) {
http://www.fse.guru/how-do-i-learn-functional-programming-in-javascript-linkpost
https://news.ycombinator.com/item?id=13889155
7 git rules:
1. Separate subject from body with a blank line
2. Limit the subject line to 50 characters
3. Capitalize the subject line
4. Do not end the subject line with a period
5. Use the imperative mood in the subject line
6. Wrap the body at 72 characters