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
require 'spec_helper' | |
describe Video do | |
describe :validations do | |
before { Factory(:video) } | |
it { should validate_presence_of :artist, :title, :link, :user_id } | |
it { should validate_uniqueness_of :link } | |
it { should validate_uniqueness_of :title, :scope => :artist, :message => "and Artist are not unique. This song has already been added." } | |
end |
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
for i in 1 2 3 4 5 6 7 8; do echo "search$i"; ssh root@search$i 'ls -alhrt /ip/sphinx_index/production'; done |
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
# using ruby 1.8.7 | |
if ARGV.empty? | |
puts "USAGE: ruby boy_name.rb <letter>" | |
exit | |
end | |
file = File.open("boy_names.txt") | |
names = file.lines.to_a.group_by{|name| name[0,1]} | |
selected_names = names[ARGV[0].capitalize] |
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
paperclip_defaults: &paperclip_defaults | |
styles: | |
original: "800x600>" | |
medium: "300x300#" | |
thumb: "100x100#" | |
path: ":rails_root/public/user_images/:id/:style/:filename" | |
convert_options: | |
all: "-strip" | |
defaults: &defaults |
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
ul.as-selections li.as-selection-item { | |
color: #fff; | |
font-weight: bold; | |
font-size: 13px; | |
font-family: "Lucida Grande", arial, sans-serif; | |
text-shadow: 0 0 0 #fff; | |
background-color: #9d001b; | |
background-image: none; | |
border: 0; | |
padding: 4px 7px 4px 10px; |
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
www: | |
type: ruby | |
exclude_bundler_groups: | |
- development | |
- test | |
config: | |
ruby-version: 1.9.2 | |
data: | |
type: mysql | |
redis: |
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
--colour | |
--backtrace | |
--require ./spec/support/documentation_instafail_formatter.rb | |
--format DocumentationInstafail |
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
1. Anita O'Day: Sing Sing Sing | |
2. Sinéad O'Connor: I Want To Be Loved By You | |
3. The Manhattan Transfer: Four Brothers | |
4. Eric Triton: Mari Nica Swing | |
5. Tom Gaebel: It's A Good Life | |
6. The Ray Gelato Giants: Tuo Vuo Fa Americano | |
7. Gordon Goodwin's Big Phat Band: Sing Sang Sung | |
8. Dinah Washington: What A Difference A Day Makes | |
9. Wet Wet Wet: Beyond The Sea | |
10. David Lee Roth: Just A Gigolo |
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
it 'shows items if there are pins matching current filter', -> | |
stubDefaultScheduledPins() | |
visit '/schedule' | |
Ember.Test.registerWaiter -> | |
find("#schedule .pins .pin-wrapper").length > 0 | |
wait().then -> | |
findAllScheduledPinElements().length.should.be.above 0 |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
prop: 12 | |
}); |
OlderNewer