See comments in the files for explanation. This works flawlessly for me on MediaTemple + Git(Hub).
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
| file 'Gemfile', <<-GEMS | |
| source 'http://gemcutter.org' | |
| gem "rails", "3.0.0.beta3" | |
| gem "bson_ext" | |
| gem "mongoid", "2.0.0.beta4" | |
| gem "haml", "3.0.0.rc.2" | |
| gem "compass", "0.10.0.rc4" | |
| gem "inherited_resources" | |
| group :test do |
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
| --colour | |
| -I app |
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
| require 'rr' | |
| class CrazyMath | |
| def self.fib(n) | |
| if n < 3 | |
| 1 | |
| else | |
| CrazyMath.fib(n - 1) + CrazyMath.fib(n - 2) | |
| end | |
| 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
| module MotionModel | |
| module Model | |
| def save(*) | |
| puts "called MM#save" | |
| end | |
| end | |
| end | |
| module MotionModel | |
| module Paranoid |
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
| =begin | |
| Halle la suma de todos los multiplos de 3 y 5, por debajo de 1000 | |
| escriba un metodos para hallar el factorial del un numero | |
| metodos para la suma de enteros hasta un numero n, luego la suma de cuadrados, los cubos y las potencias | |
| =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
| include Math;R1=1.0; R2=2.0;K2=5.0 | |
| SS=40;K1=SS*K2*3/(8*(R1+R2));def rf(a, b) | |
| cosA=cos(a);sinA=sin(a);cosB=cos(b);sinB=sin(b) | |
| o=Array.new(SS).fill{Array.new(SS).fill(' ')};b=Array. | |
| new(SS).fill{ Array.new(SS).fill(0)}; t=0.0;while t<2*PI | |
| cost=cos(t);sint=sin(t);p=0.0;while p<2*PI;cosp=cos(p);sinp= | |
| sin(p);cx=R2+R1*cost;cy=R1* sint;x=cx*(cosB*cosp+sinA* | |
| sinB*sinp)-cy*cosA*sinB; y=cx*(sinB*cosp-sinA*## | |
| cosB*sinp)+cy*cosA*cosB ;z=K2+cosA*cx*sinp+cy* | |
| sinA;ooz=1/z;xp=(SS/2+K1* ooz*x).to_i ;yp= (SS/2- |
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
| // Model | |
| // OAStack.m | |
| @protocol OAStack | |
| - (void) pushData:(id)data; | |
| - (id) popData; | |
| @optional | |
| - (void) purgeStack; |
OlderNewer