Skip to content

Instantly share code, notes, and snippets.

@zxiest
zxiest / .vimrc
Created November 15, 2014 17:14
set nocompatible
filetype off
" set runtime path to include vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage Vundle
let mapleader="\<Space>"
set number
" easymotion works with <leader><leader>s
" lines below allow yanking to be shared with system clipboard
set clipboard^=unnamed
set clipboard^=unnamedplus
set wrapscan
set nocompatible
filetype off
" set runtime path to include vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage Vundle
@zxiest
zxiest / steps.md
Last active August 29, 2015 14:11

A Little more Bootstrap Plan

Le Wagon Beirut; Dec 17, 2014; Abdo Achkar


We'll follow a "What, How, DIY, Fix" (WHDF) methodology throughout the workshop:

  • We'll show the feature we'll be building
  • How to build it
  • You then do it yourself
class Foo
def initialize
@foo = 1
end
def bar
end
# gets warning for method redefinition
def bar
set nocompatible
filetype off
" set runtime path to include vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Let Vundle manage Vundle
let mapleader="\<Space>"
set number
set nopaste
" easymotion works with <leader><leader>s
" lines below allow yanking to be shared with system clipboard
" set clipboard^=unnamed
set clipboard=unnamed,unnamedplus
set wrapscan
@zxiest
zxiest / sync.rb
Last active August 29, 2015 14:21
require 'celluloid'
require 'active_job'
class MasterQueue
include Celluloid
attr_accessor :jobs, :current_job
def initialize
@jobs = Queue.new
module LocationsHelper
def self.detailed_information(location)
detailed_information =[ ["Accepts credit cards?", location.accepts_credit_cards] ]
unless location.smoking_policy.nil?
detailed_information << [ "Smoking Policy", location.smoking_policy]
end
unless location.center.nil?
detailed_information << ["Center" , location.center.name, center_path(location.center.id)]
end