This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [color] | |
| ui = auto | |
| ui = true | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green | |
| [color "diff"] | |
| meta = yellow bold | |
| frag = magenta bold |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'csv' | |
| require 'json' | |
| file = CSV.new(File.new('stuff_i_need_to_extract.csv', 'rb'), :headers => true).read | |
| result = [] | |
| result = file.map do |row| | |
| extract_data_from_row(row) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Next time you feel like mocking another developer for his or her lack of | |
| skills in a certain area, stop yourself. Talk to the person and explain | |
| to them why you think something they are doing is incorrect or how it | |
| could be done better. This way, you don’t come off as a jerk, and the | |
| other developer learns something new and improves. And I’d be surprised | |
| if you didn’t learn something from the experience, too. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Recipe: users::default | |
| * users_manage[deploy] action create | |
| ================================================================================ | |
| Error executing action `create` on resource 'users_manage[deploy]' | |
| ================================================================================ | |
| Net::HTTPServerException | |
| ------------------------ | |
| 404 "Object Not Found" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module AddsFunctionality | |
| extend ActiveSupport::Concern | |
| alias_method :foo, :baz | |
| end | |
| def baz | |
| puts "Hello Baz" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream brewwatcher_server { | |
| server 127.0.0.1:4567 fail_timeout=0; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |
| #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyFancy | |
| end | |
| describe "MyFancy" do | |
| it "should be able to be very fancy" | |
| it "should be possible to set my level of fancy" | |
| it "should add a number of exclamation points equal to the fancy level" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Blember.Post = DS.Model.extend | |
| title: DS.attr('string'), | |
| isCompleted: DS.attr('boolean') | |
| Blember.Post.FIXTURES = [ | |
| { | |
| id: 1, | |
| title: 'Hello World', | |
| body: 'This is my first post', | |
| isCompleted: true |