The test will only run when run interactively (i.e. ruby ).
class Word
def length
10
end
end| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://as-hls-ww-live.akamaized.net/pool_01505109/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Xtra | |
| http://as-hls-ww-live.akamaized.net/pool_92079267/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8 | |
| #EXTINF:-1,BBC - Radio 1Dance | |
| http://as-hls-ww-live.akamaized.net/pool_62063831/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8 | |
| #EXTINF:-1,BBC - Radio 1 Anthems (UK Only) | |
| http://as-hls-uk-live.akamaized.net/pool_11351741/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8 | |
| #EXTINF:-1,BBC - Radio 2 |
| 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 |
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
| # if you want to monkey patch every controller, put this in initializers/active_admin.rb | |
| ActiveAdmin::ResourceController.class_eval do | |
| include ActiveAdmin::CSVStream | |
| end |
| #!/bin/bash | |
| set -exo pipefail | |
| BUILD_ENV=$1 | |
| if [ `uname` == 'Darwin' ]; then | |
| OSX=1 | |
| JSCOMPRESSOR="yuicompressor --type js" | |
| else | |
| OSX= |
| class Foo | |
| def bar(arg) | |
| arg.call | |
| end | |
| end | |
| class X | |
| def call | |
| "Normal class" | |
| end |
| { | |
| "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", |
| * Installing ARCH linux | |
| Preparation: | |
| - Get an empty USB disk | |
| - Create 2 partitions: | |
| - ARCH - filesystem FAT | |
| - FAT - filesystem FAT | |
| - Downlaod Arch linux from: www.archlinux.org/download and put on your USB ARCH partition | |
| - Make sure you have an Ubuntu install somewhere (VMware would work) | |
| Fix the iso to be usable for UEFI: |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " 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() |