The test will only run when run interactively (i.e. ruby ).
class Word
def length
10
end
end
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS | |
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing). | |
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here: | |
* Heroku Hostname SSL | |
* GoDaddy Standard SSL Certificate | |
* Zerigo DNS |
$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)); |
# Example from http://mikepackdev.com/blog_posts/31-exhibit-vs-presenter | |
class Decorator < SimpleDelegator | |
end | |
class Car | |
def price | |
1_000_000 | |
end | |
end |
require "timeout" | |
module WaitSteps | |
extend RSpec::Matchers::DSL | |
matcher :become_true do | |
match do |block| | |
begin | |
Timeout.timeout(Capybara.default_wait_time) do | |
sleep(0.1) until value = block.call |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" 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() |
Preparation:
Fix the iso to be usable for UEFI:
{ | |
"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", |
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= |