/quit
– Quit IRSSI
option+#
– Navigate to specified windowctrl-n
– Navigate to next windowctrl-p
– Navigate to previous window
// Define a method that rounds pi to a specified decimal place | |
// Return Pi and how many iterations of the following formula that it took to accomplish | |
// pi = 4 * (1 – 1/3 + 1/5 – 1/7 + ...) | |
function* pi() { | |
let n = 1; | |
let series = 0; | |
while(true) { | |
next = 1/(n*2-1) |
// Inmperative version | |
// | |
def selectionSort(list: Array[Int]): Unit { | |
def swap(list: Array[Int], i: Int, j: Int) { | |
var tmp = list(i) | |
list(i) = list(j) | |
list(j) = tmp | |
} | |
var i = 0 |
# Rails application template for Rails 3 + Postgres + Git + haml + JQuery + Rspec + Cucumber + Capybara + FactoryGirl | |
# by Brian Smith <bsmith@swig505.com> | |
# Create a default README | |
file "README.md", <<-EOF | |
#{app_name} | |
#{"=" * app_name.length} | |
TODO: description |
# Rails template for a basic project assuming the following: | |
# | |
# - MySQL for the DB | |
# - Git for version control | |
# | |
# Example: rails myapp -d mysql -m RailsTemplate.rb | |
# | |
# Author: Brian Smith (bsmith@swig505.com) | |
# | |
# Actions: |
Name = Layer1; | |
Version = 0.1.0; | |
Author = "Brian Smith <brian.e.smith@gmail.com"; | |
KLL = 0.3; | |
# Modified Date | |
Date = 2015-03-05; | |
# Number row |
Download the appropriate version for your OS at http://www.vim.org/download.php
vimtutor
require 'yaml' | |
module MyRailsApp | |
module Config | |
extend self | |
def [](key) | |
hash[key.to_sym] | |
end |