bin/rails g migration AuthlogicToDevise- (see the file below for the actual migration,
authlogic_to_devise.rb) bin/rake db:migrate
gem "devise", "~> 2.2.0"bundle install
| FROM ubuntu | |
| MAINTAINER '' | |
| # Needed? | |
| # turn on universe packages | |
| #RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
| # Prepare Ubuntu and Rachel dependencies | |
| RUN apt-get update | |
| RUN apt-get install -y build_essential |
| # http://www.mono-project.com/Compiling_Mono_on_OSX | |
| require 'formula' | |
| class Mono < Formula | |
| url 'http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2' | |
| sha1 'e356280ae45beaac6476824d551b094cd12e03b9' | |
| homepage 'http://www.mono-project.com/' | |
| { | |
| "cmd": ["bash", "-c", "clang -lobjc -framework Cocoa -framework Carbon -o /tmp/sublime-objc-output $file"], | |
| "file_regex": "^(.*?):([0-9]+):([0-9]+): (.*)", | |
| "selector": "source.objc", | |
| "variants": [ | |
| { | |
| "name": "Run", | |
| "cmd": ["bash", "-c", "clang -lobjc -framework Cocoa -framework Carbon -o /tmp/sublime-objc-output $file && /tmp/sublime-objc-output"] | |
| } | |
| ] |
| moduleKeywords = ['included', 'extended', 'prototype'] | |
| class Class | |
| # Rename an instance method | |
| # | |
| # ``` coffeescript | |
| # class User | |
| # @alias "methods", "instance_methods" | |
| # | |
| # ``` |
| # define module behavior | |
| class Module | |
| keywords = ['extended', 'included', 'initialize'] | |
| @extend = (obj) -> | |
| for key, value of obj when key not in keywords | |
| @[key] = value | |
| obj.extended?.apply(@) | |
| this | |
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
| // {{#each_with_index records}} | |
| // <li class="legend_item{{index}}"><span></span>{{Name}}</li> | |
| // {{/each_with_index}} | |
| Handlebars.registerHelper("each_with_index", function(array, fn) { | |
| var buffer = ""; | |
| for (var i = 0, j = array.length; i < j; i++) { | |
| var item = array[i]; | |
| // stick an index property onto the item, starting with 1, may make configurable later |
| framework 'Cocoa' | |
| class NSColor | |
| def toCGColor | |
| color_RGB = colorUsingColorSpaceName(NSCalibratedRGBColorSpace) | |
| ## approach #1 | |
| # components = Array.new(4){Pointer.new(:double)} | |
| # color_RGB.getRed(components[0], | |
| # green: components[1], | |
| # blue: components[2], |
| # /config.ru | |
| # This file is used by Rack-based servers to start the application. | |
| # File generated by "rails create MyApp" | |
| # For Rails | |
| require ::File.expand_path('../config/environment', __FILE__) | |
| # For Sinatra | |
| require './slim/slim.rb' | |
| # - Make sinatra play nice |