Skip to content

Instantly share code, notes, and snippets.

View jschoolcraft's full-sized avatar

Jeff Schoolcraft jschoolcraft

View GitHub Profile
gems:
autotest (4.2.9)
autotest-growl (0.2.4)
autotest-rails (4.1.0)
cucumber (0.7.0.beta.8)
cucumber-rails (0.3.0)
database_cleaner (0.5.2)
gherkin (1.0.22)
mongoid (2.0.0.beta4)
rspec (2.0.0.beta.8)
# These commands will help you setup the Rails test environment without problems
#
# MAKE SURE YOU HAVE VIRTUAL BOX INSTALLED http://www.virtualbox.org/wiki/Downloads
#
# Copy paste all of following commands in your normal terminal and the following things will happen:
# - rails_test_box dir is created
# - rails master branch is checkout in the dir rails
# - A Gemfile is created and all the gems to run the virtualbox are installed using bundler
# - The rails vagrant box is downloaded and added to your vagrant boxes
# - A Vagrantfile is created for vagrant
0471783935
1419505017
0471714844
1591841178
0471785334
1400046831
1400080495
159184021X
0743227905
1591840414
# Everything you need to do to get started with Rails 2.3.8
#
# As of June 14th, 2010 @ 2:30 p.m. MST
#
# This gist now features instructions to get Rails 3 up and running with:
# - Ruby 1.8.7-p174
# - Bundler 0.9.26
# - Cucumber 0.8.0
# - Rspec 1.3.0 + Rspec-Rails 1.3.2
# - RVM
select
u.id
,u.name
,s.visits
,v.name
from
stats s
inner join users u
on s.user_id = u.id
inner join videos v
@show-page
Scenario: Creating a ticket with an attachment
When I fill in "Title" with "Add documentation for blink tag"
And I fill in "Description" with "The blink tag has an undocumented speed attribute"
# And I attach the file "spec/fixtures/speed.txt" to "File #1"
# And I attach the file "spec/fixtures/spin.txt" to "File #2"
# And I attach the file "spec/fixtures/gradient.txt" to "File #3"
And I press "Create Ticket"
Then I should see "Ticket has been created."
And I should see "speed.txt" within "#ticket .files"
sqlite> select users.name, stats.visits, videos.name from stats inner join users on stats.user_id = users.id inner join videos on users.id = videos.user_id group by users.name order by stats.visits desc, videos.created_at desc limit 5;
seivan10|90000|productize one-to-one niches155
seivan9|80000|synthesize compelling e-services150
seivan8|70000|extend turn-key functionalities145
seivan7|60000|monetize real-time e-markets142
seivan6|50000|scale real-time niches139
module YourApplication
class Application < Rails::Application
config.generators do |g|
g.template_engine :haml
g.test_framework :rspec, :fixture => true, :views => false
g.fixture_replacement :factory_girl, :dir => "spec/support/factories"
end
SELECT
favorites.id,
drink_id,
count(*) as times
FROM
favorizations,
favorites
where
favorites.id = favorite_id
group by
* keep people working on internal projects, assign and schedule the work
* dont look desperate, dont have immediate availability
* can tell a client you can 'shuffle internal projects' to accomodate them
* online ads dont work well
* referrals instead
* do a great job every single time
* voice calls important
* when people call you call them back