Skip to content

Instantly share code, notes, and snippets.

View paulca's full-sized avatar

Paul Campbell paulca

View GitHub Profile
en:
# general
save: Save
or: or
cancel: Cancel
# site
welcome_to_the_site: Welcome to the Site
not_namespaced: Not Namespaced
-- Settings --
set projects_root to "~/Sites" -- where you keep your projects
set presets to {"project/projectname"} -- sub directories to “project_root'”
set visor_enabled to false -- if you use Visor “http://docs.blacktree.com/visor/visor”, set this to true
set rails_server_command to "tail -f log/development.log" -- My `ss` bash function will use the next available port (http://pastie.textmate.org/221395) so I can run multiple rails projects at once. if you don't have a `ss` alias/script, just use `./script/server` for mongrel/thin etc. If you're on mod_rails, just `tail -f log/development.log`
-- Run it
global rails_dir, min_window_count, presets, projects_root, visor_enabled, rails_server_command
main()
# 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'
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)
en:
activerecord:
models:
room: Room
attributes:
room:
name: Room name
description: Room description
max_size: Room size limit
link_color: Choose link color
"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:
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:
en:
activerecord:
models:
room: Room
attributes:
room:
name: Room name
description: Room description
max_size: Room size limit
color_scheme_id: Choose color scheme
// 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");