Give your Github issues a second life by reopening them when a resolving commit is merged into the staging branch of your project.
- sha
| require 'open-uri' | |
| require 'nokogiri' | |
| require 'sqlite3' | |
| doc = Nokogiri::HTML(open("http://students.flatironschool.com/davidbaker.html")) | |
| name = doc.css('h1').text | |
| name = name.split(" ") | |
| first_name = name[0] |
| class Song | |
| attr_accessor :name | |
| @@song_library = [] | |
| def add_to_library | |
| @@song_library << self | |
| end | |
| def self.all |
| class Song | |
| attr_accessor :name | |
| @@song_library = [] | |
| def self.all | |
| @@song_library | |
| end | |
| def initialize(name) |
| songs = [ | |
| "The Phoenix - 1901", | |
| "Tokyo Police Club - Wait Up", | |
| "Sufjan Stevens - Too Much", | |
| "The Naked and the Famous - Young Blood", | |
| "(Far From) Home - Tiga", | |
| "The Cults - Abducted", | |
| "The Phoenix - Consolation Prizes" | |
| ] |
| class Song | |
| attr_accessor :name | |
| @@song_library = [] | |
| def self.all | |
| @@song_library | |
| end | |
| def initialize(name) |
| require "bundler/capistrano" | |
| set :application, "studentbody" | |
| set :repository, "https://github.com/xfernandox/studentbody.git" | |
| set :user, 'josh' | |
| set :deploy_to, "/home/#{ user }/#{ application }" | |
| set :use_sudo, false | |
| set :scm, :git | |
| # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` |
| # Git status bash prompt | |
| # | |
| # In addition to printing the current working directory, this prompt will | |
| # show a number of things if you are in a git repository: | |
| # - The current branch you are in | |
| # - Whether there are untracked files in the repository (there will be an | |
| # asterisk after the branch nome if there are) | |
| # - Whether there are any unmerged/unstaged/staged changes or if the directory | |
| # is clean. See below for the colors that will be used, and change them if | |
| # you'd like. |
| require 'csv' | |
| results = Hash.new 0 | |
| CSV.foreach('data.csv') { |row| results[row[1]] += 1 } | |
| puts results |
Every once in a while I get a new computer and need to set it up the way I like it. I've tried automating this before, but I've found that the amount of time and effort I invest to automate is never worth the time it saves considering I hardly ever get a new computer. So instead, I keep a checklist of things to install and configure every time I get a new Mac:
https://cloudup.com/dashboardo p shortcuts. Make a startup item.