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
| import { expect } from 'chai'; | |
| import 'mocha'; | |
| import { | |
| FlyWithWings, | |
| FlyNoWay, | |
| Quack, | |
| MuteQuack, | |
| Duck, | |
| DuckWithAlternativeConstructor |
| <?php | |
| // example code | |
| function dynamicCall($someMsg) { | |
| try { | |
| $method = new ReflectionMethod('Foo', $someMsg); | |
| $method->invoke(new Foo()); | |
| }catch(Exception $error){ | |
| exitTheHell($error); | |
| } |
| class SingletonCvar | |
| def self.instance | |
| @@instance ||= new | |
| end | |
| private_class_method :new | |
| end | |
| singleton = SingletonCvar.instance |
| # Use instance methods of classes as Rake tasks: | |
| # | |
| # In a folder tasks, create your classes. | |
| # | |
| # class FooTask | |
| # extend RakeDecorator | |
| # | |
| # task :numbers, desc: 'A funny task that prints out the first 10 numbers' | |
| # def print_numbers_task | |
| # puts (1..10).to_a.join(',') |
| class Bar | |
| def self.foobar | |
| end | |
| private_class_method :foobar | |
| end |
| 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 |
A Pen by Daniel Schmidt on CodePen.
| # 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/' | |
| <canvas id="404" width="600" height="600"></canvas> |