Skip to content

Instantly share code, notes, and snippets.

View iansheridan's full-sized avatar

Ian Sheridan iansheridan

View GitHub Profile
$('#image-select-all').click(function() {
$('#image-grid .image').each(function(){
$(this).trigger('selected');
});
console.log("clicked > image-select-all to trigger > click.selected")
console.log($('#image-grid .image'))
});
$('#image-select-none').click(function() {
$('#image-grid .image').each(function(){
$(this).trigger('unselected');
# Optional more complicated strat for the database.yml
require 'ftools'
namespace :config do
task :build do
File.mkdir_p temp_config_dir
# this is the place to hook after when creating a config file
end
task :update do
# upload contents of temp_config_dir to #{release_path}/config
NameVirtualHost xxx.example.com
<VirtualHost xxx.example.com>
ServerAdmin name@example.com
ServerName xxx.example.com
DocumentRoot /u/apps/example/current/public
RailsBaseURI /app1
RailsBaseURI /app2
RackBaseURI /sinatra1
# ===========================================================
# as you can see this is the exact copy of What is is the
# Passnger user guide
require 'rubygems'
require 'merb-core'
Merb::Config.setup(
:merb_root => ::File.expand_path(::File.dirname(__FILE__)),
:environment => ENV['RACK_ENV']