This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "rails-cache", :require => "rails/cache", :path => "../rails-cache" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
desc "Migrate the database through scripts in db/migrate and update db/schema.rb by invoking db:schema:dump. Target specific version with VERSION=x. Turn off output with VERBOSE=false." | |
task :migrate => :environment do | |
ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true | |
ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) | |
Rails.application.railties.engines.each do |engine| | |
ActiveRecord::Migrator.migrate(engine.root + "db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) | |
end | |
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Requirements */ | |
require.paths.unshift("./vendor/ejsgi/lib"); | |
require.paths.unshift("./vendor/node-scylla/lib"); | |
var scylla = require("scylla"), | |
ejsgi = require("ejsgi"); | |
/* Controller */ | |
var HomeController = { | |
index: function(req) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.gem "mongoid" | |
config.gem "mongo_session_store" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.mongodb.Mongo | |
import com.mongodb.DBCollection | |
import com.mongodb.BasicDBObject | |
import com.mongodb.DBObject | |
import com.mongodb.DBCursor | |
import com.mongodb.DB | |
import java.util.Set | |
import java.util.List |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SplitView; | |
SplitView = {}; | |
SplitView.masterButton = Ti.UI.createButton({ | |
title: 'Open Window', | |
height: 50, | |
width: 200 | |
}); | |
SplitView.detailButton = Ti.UI.createButton({ | |
title: 'Open Window', | |
height: 50, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "mongoid", ">= 2.0.0.beta9" | |
gem "bson_ext", ">= 1.0.3" | |
gem "haml", ">= 3.0.12" | |
gem "rspec-rails", ">= 2.0.0.beta.15", :group => :test | |
generators = <<-GENERATORS | |
config.generators do |g| | |
g.orm :mongoid | |
g.template_engine :haml | |
g.test_framework :rspec, :fixture => true, :views => false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DESCRIPTION: | |
# A simple zsh configuration that gives you 90% of the useful features that I use everyday. | |
# | |
# AUTHOR: | |
# Geoffrey Grosenbach http://peepcode.com | |
############ | |
# FUNCTIONS | |
############ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"log" | |
"net/http" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"log" | |
"net/http" | |
"reflect" | |
"time" | |
"github.com/gorilla/context" |