Skip to content

Instantly share code, notes, and snippets.

View paulca's full-sized avatar

Paul Campbell paulca

View GitHub Profile
We couldn’t find that file to show.
describe Task, "notifications" do
before(:each) do
@company = mock_model(Company)
@first_user = mock_model(User, :login => 'first', :sms_for? => true, :company => @company )
@second_user = mock_model(User, :login => 'second', :sms_for? => true, :company => @company)
@third_user = mock_model(User, :login => 'third', :sms_for? => true, :company => @company)
@company.stub!(:users).and_return([@first_user, @second_user, @third_user])
@company.stub!(:users_who_are_not).and_return([@second_user, @third_user])
@first_user.stub!(:tasks_for).and_return([])
// application.js
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function leave_note(){
if($("div#note").css('display')=='none'){
$("div#note").dialog();
$('div#note').show();
} else {
$('div#note').hide();
$("div#note").dialog("destroy");
en:
activerecord:
models:
room: Room
attributes:
room:
name: Room name
description: Room description
max_size: Room size limit
color_scheme_id: Choose color scheme
en:
emails:
signup_notification:
subject: "Your account on WEBSITE has been set up"
body: "Hi {{username}},
A new account has been set up for you on WEBSITE.
Here is your link to get started:
"International Date Line West":(GMT-11:00) International Date Line West
"Midway Island":(GMT-11:00) Midway Island, Samoa
"Hawaii":(GMT-10:00) Hawaii
"Alaska":(GMT-09:00) Alaska
"Pacific Time (US & Canada)":(GMT-08:00) Pacific Time (US & Canada)
"Tijuana":(GMT-08:00) Tijuana
en:
activerecord:
models:
room: Room
attributes:
room:
name: Room name
description: Room description
max_size: Room size limit
link_color: Choose link color
require 'twitter'
# your Twitter credentials
twitter_username = ''
twitter_password = ''
# the user you'd like to check friends / followers for. Set to nil, or omit for your own list
search_user = ''
client = Twitter::Base.new(twitter_username,twitter_password)
require 'twitter'
# your Twitter credentials
twitter_username = ''
twitter_password = ''
# the user you'd like to check friends / followers for. Set to nil, or omit for your own list
search_user = ''
client = Twitter::Base.new(twitter_username,twitter_password)
# template.rb
# USAGE: rails -m http://gist.github.com/gists/115163.txt PROJECT_NAME
run "rm public/index.html"
plugin 'thinking_sphinx', :git => 'git://github.com/freelancing-god/thinking-sphinx.git'
plugin 'will_paginate', :git => 'git://github.com/mislav/will_paginate.git'
plugin 'factory_girl', :git => 'git://github.com/thoughtbot/factory_girl.git'
plugin 'paperclip', :git => 'git://github.com/thoughtbot/paperclip.git'
plugin 'project_search', :git => 'git://github.com/37signals/project_search.git'
plugin 'hubahuba', :git => 'git://github.com/paulca/hubahuba.git'