This file contains 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
git_info() { | |
# colors | |
local RESET="\033[0m" | |
local GRAY="\033[1;30m" | |
local RED="\033[1;31m" | |
local GREEN="\033[1;32m" | |
local BLUE="\033[1;34m" | |
local PINK="\033[1;35m" | |
local CYAN="\033[1;36m" |
This file contains 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
javascript:(function(){var s = document.createElement('style');s.appendChild(document.createTextNode('*{font-family:"본고딕","Source Han Sans K","본고딕 KR","Source Han Sans KR","思源黑體","Source Han Sans TC","思源黑體 香港","Source Han Sans HC","思源黑体","Source Han Sans SC","源ノ角ゴシック","Source Han Sans","본명조","Source Han Serif K","본명조 KR","Source Han Serif KR","思源宋體","Source Han Serif TC","思源宋體 香港","Source Han Serif HC","思源宋体","Source Han Serif SC","源ノ明朝","Source Han Serif","Noto Sans CJK KR","Noto Sans KR","Noto Sans CJK TC","Noto Sans CJK HC","Noto Sans CJK SC","Noto Sans CJK JP","Noto Serif CJK KR","Noto Serif KR","Noto Serif CJK TC","Noto Serif CJK SC","Noto Serif CJK JP","나눔바른고딕 옛한글","NanumBarunGothic YetHangul","나눔명조 옛한글","NanumMyeongjo YetHangul","함초롬돋움 LVT","HCR Dotum LVT","함초롬바탕 LVT","HCR Batang LVT","은 바탕","Un Batang","돋움 옛한글","Dotum Old Hangul","바탕 옛한글","Batang Old Hangul","굴림 옛한글","NewGulim Old Hangul","궁서 옛한글","Gungsuh Old Hangul","맑은 고딕","Malgun Gothic","함초롬돋움","HCR Dotum","함초롬바탕","HCR Batang" !important;}'));doc |
This file contains 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
11/14 | BOSTON UNIVERSITY | * | 39 | 7-14 | 0-3 | 5-7 | 0-0 | 0 | 2 | 2 | 1 | 0 | 1 | 19 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11/16 | SETON HALL | * | 27 | 6-11 | 4-7 | 2-2 | 0-4 | 4 | 1 | 1 | 3 | 0 | 0 | 18 | |
11/19 | DAVIDSON | * | 36 | 10-18 | 4-6 | 5-5 | 0-0 | 0 | 0 | 1 | 2 | 0 | 1 | 29 | |
11/23 | vs. Drexel | * | 37 | 8-19 | 2-8 | 13-15 | 0-2 | 2 | 2 | 1 | 1 | 0 | 2 | 31 | |
11/25 | vs. Memphis | * | 36 | 4-9 | 3-3 | 4-5 | 0-2 | 2 | 2 | 3 | 3 | 0 | 1 | 15 | |
11/30 | at Indiana | * | 40 | 10-17 | 4-8 | 5-6 | 1-3 | 4 | 1 | 5 | 4 | 0 | 2 | 29 | |
12/4 | VIRGINIA TECH | * | 34 | 6-19 | 2-8 | 4-4 | 0-0 | 0 | 3 | 2 | 4 | 0 | 1 | 18 | |
12/7 | PENNSYLVANIA | * | 37 | 8-16 | 4-9 | 4-4 | 0-2 | 2 | 1 | 4 | 1 | 0 | 0 | 24 | |
12/10 | vs. Texas | * | 37 | 13-24 | 9-16 | 6-6 | 1-3 | 4 | 1 | 0 | 1 | 0 | 3 | 41 | |
12/18 | VALPARAISO | * | 33 | 9-15 | 5-9 | 7-9 | 0-1 | 1 | 1 | 1 | 1 | 0 | 2 | 30 |
This file contains 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
test: | |
pre: | |
- npm install -g karma | |
- nohup bash -c "karma start spec/javascripts/testacular.conf.js &" | |
override: | |
- bundle exec rspec spec | |
- karma run |
This file contains 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
> a = {} | |
# => {} | |
> a.default = [] | |
# => [] | |
> a[:b] | |
# => [] | |
> a[:b] << 3 | |
# => [3] | |
> a | |
# => {} |
This file contains 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
#!/usr/bin/env ruby | |
# copy or symlink this file to .git/hooks/ | |
# automatically strip spaces from the end of lines and add newlines to the end of files as necessary | |
filetypes = %w( | |
builder | |
conf | |
css | |
erb | |
haml |
This file contains 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 SubCity < ActiveRecord::Base | |
belongs_to :city | |
delegate :map, to: :sub_cities, prefix: true | |
end | |
# later | |
city.sub_cities_map(&:name) |
This file contains 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
delegate :names, to: :sub_cities, prefix: true | |
# undefined method `names' for #<ActiveRecord::Relation> | |
delegate :name, to: :sub_cities, prefix: true | |
# => "SubCity" | |
delegate :name, to: :sub_city, prefix: true | |
delegate :names, to: :sub_city, prefix: true | |
# undefined local variable or method `sub_city' for #<City> |
This file contains 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
# sub_city.rb | |
class SubCity < ActiveRecord::Base | |
belongs_to :city | |
def sub_cities_names | |
sub_cities.map(&:name) | |
end | |
end | |
# city.rb | |
class City < ActiveRecord::Base |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Expires" content="Mon, 01 Jan 1900 00:00:00 GMT"> | |
<meta http-equiv="Pragma" content="no-cache"> | |
<script type='text/javascript'> | |
<!-- | |
if (window.parent != window) { | |
document.location = "http://mail.tapjoy.com/"; | |
} | |
//--> |
NewerOlder