The test will only run when run interactively (i.e. ruby ).
class Word
def length
10
end
end
# Example from http://mikepackdev.com/blog_posts/31-exhibit-vs-presenter | |
class Decorator < SimpleDelegator | |
end | |
class Car | |
def price | |
1_000_000 | |
end | |
end |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Add a 'dummy' sign to the Sign Column to make it show up all the time | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
function! ShowSignColumn() | |
sign define dummy | |
execute 'sign place 9999 line=1 name=dummy buffer=' . bufnr('') | |
endfunc | |
"" Make the Sign Column always show up | |
au BufRead,BufNewFile * call ShowSignColumn() |
class Foo | |
def bar(arg) | |
arg.call | |
end | |
end | |
class X | |
def call | |
"Normal class" | |
end |
#!/bin/bash | |
set -exo pipefail | |
BUILD_ENV=$1 | |
if [ `uname` == 'Darwin' ]; then | |
OSX=1 | |
JSCOMPRESSOR="yuicompressor --type js" | |
else | |
OSX= |
{ | |
"app/assets/javascripts/models/*.coffee": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.coffee", | |
"template": "class @AppName.Models.%S extends Backbone.Model" | |
}, | |
"app/assets/javascripts/collections/*.coffee": { | |
"command": "jcollection", |
Preparation:
Fix the iso to be usable for UEFI:
if !isdirectory(expand("~/.vim/bundle/Vundle.vim/.git")) | |
silent !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
silent !vim +PluginInstall +qall | |
endif |
# if you want to monkey patch every controller, put this in initializers/active_admin.rb | |
ActiveAdmin::ResourceController.class_eval do | |
include ActiveAdmin::CSVStream | |
end |
$sprites: sprite-map("sprites/*.png"); | |
$sprites-retina: sprite-map("sprites-retina/*.png"); | |
@mixin sprite-background($name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $name)); |