sudo apt-get -y --force-yes install supercollider ruby1.9.3 libqscintilla2-l10n libqscintilla2-dev qt4-dev-tools cmake libffi-dev qt4-qmake libqt4-dev
git clone [email protected]:samaaron/sonic-pi.git
movie = FFMPEG::Movie.new(video_url) | |
duration = (movie.duration / 2).floor | |
movie.screenshot("#{thumb_url}.jpg", seek_time: duration) |
def alert_class(key) | |
case key | |
when 'notice' | |
'notice-class foo bar' | |
when 'error' | |
'error bar' | |
end | |
enb |
expect do | |
time_travel_to(start_date-7.days) { | |
EventReminder.new.perform | |
} | |
end.to change { Sidekiq::Extensions::DelayedMailer.jobs.size }.by(2) |
# config/initializers/geocoder.rb | |
Geocoder.configure( | |
:timeout => 5, | |
:ip_lookup => :telize | |
) |
/* wrong */ | |
= f.input :twitter_followers, as: :integer | |
/* correct */ | |
= f.input :twitter_followers |
click_link 'User' | |
within_window(page.driver.browser.window_handles.last) do | |
expect(page).to have_content 'USERNAME' | |
end |
sudo apt-get -y --force-yes install supercollider ruby1.9.3 libqscintilla2-l10n libqscintilla2-dev qt4-dev-tools cmake libffi-dev qt4-qmake libqt4-dev
git clone [email protected]:samaaron/sonic-pi.git
$scope.foo = { a: [1, 2, 3] } | |
console.log "foo", $scope.foo | |
# foo Object {a: Array[3]}a: Array[3]0: 22 1: 33 2: 44 length: 3__proto__: Array[0]__proto__: Object | |
console.log "foo.a", $scope.foo.a | |
# article_ctrl.js?body=1:23 foo.a [1, 2, 3] | |
angular.extend($scope.foo, { a: [22, 33, 44] }) | |
################################################ | |
foo = { a: [1, 2, 3] } | |
console.log "foo", foo |
en: | |
dashboard: | |
earnings: | |
name: Name | |
value: Current value |