This file contains 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 'sass/importers' | |
# This monkey patches the SASS filesystem importer to work with files | |
# that are named *.css.scss. This allows us to be compatible with both | |
# Rails 3.0.* and Rails 3.1 | |
# | |
# This should only be loaded in Rails 3.0 apps. | |
class Sass::Importers::Filesystem | |
# We want to ensure that all *.css.scss files are loaded as scss files |
This file contains 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
class Animal | |
@@food = nil | |
def food | |
@@food | |
end | |
end | |
class Monkey < Animal | |
@@food = 'banana' |
This file contains 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
class Animal | |
class << self | |
attr_accessor :food | |
end | |
end | |
class Monkey < Animal | |
@food = 'apple' | |
end |
This file contains 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
class Animal | |
class_attribute :food | |
end | |
class Monkey < Animal | |
self.food = 'apple' | |
end | |
class Puma < Animal | |
self.food = 'monkey' |
This file contains 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
class Animal | |
class_attribute :food | |
end | |
class Monkey < Animal | |
self.food = 'apple' | |
end | |
class Puma < Animal | |
self.food = 'monkey' |
This file contains 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
hello |
This file contains 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
dddddddddddddd |
This file contains 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
class SomeJob < BaseJob | |
def self.perform(user_id) | |
# do stuff | |
rescue SomeError | |
retry_later(user_id) | |
end | |
end |
This file contains 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
matrix: | |
exclude: | |
- rvm: 1.9.2 | |
env: RGV=v1.3.6 | |
ignore_failures: | |
- rvm: 1.9.2 | |
env: RGV=v.1.3.7 |
This file contains 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
;; Load viper mode | |
(defun init-viper () | |
(setq viper-mode t) | |
(require 'viper)) | |
(add-hook 'emacs-startup-hook 'init-viper) |
OlderNewer