It's a neat little gem that you're gunna love
Have trouble being happy while you're coding Ruby? You've come to the right place. This gem makes it dirt easy.
It's a neat little gem that you're gunna love
Have trouble being happy while you're coding Ruby? You've come to the right place. This gem makes it dirt easy.
| highlight TechWordsToAvoid ctermbg=red ctermfg=white | |
| autocmd FileType markdown match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/ | |
| autocmd BufWinEnter *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/ | |
| autocmd InsertEnter *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/ | |
| autocmd InsertLeave *.md match TechWordsToAvoid /\c\<\(obviously\|basically\|simply\|of\scourse\|clearly\|just\|everyone\sknows\|however\|so,\|easy\)\>/ | |
| autocmd BufWinLeave *.md call clearmatches() |
| require './hash_inverse' | |
| describe Hash do | |
| describe "when empty and asked for the inverse" do | |
| it "returns an empty hash" do | |
| {}.inverse.must_equal Hash.new | |
| end | |
| end | |
| describe "when mapping are unique and asked for the inverse" do |
| # spec/support/macros/authentication_macros.rb | |
| module AuthenticationMacros | |
| def sign_in_user | |
| let(:current_user) { Factory.stub(:user) } | |
| before do | |
| sign_in current_user | |
| warden.stub(:authenticate => current_user) | |
| warden.stub(:authenticate! => current_user) | |
| end |
| # an attempt to identify the commit when hpricot 0.8.3 segfaults | |
| # were introduced. | |
| # | |
| # To be able to use git bisect run, I used fork to run the test-case, | |
| # as otherwise the running process is left in a zombie I don't wanna leave state. | |
| # | |
| # Put this in hpricot source folder (with the Rakefile), then run: | |
| # | |
| # $ git checkout master | |
| # $ git bisect start HEAD 0.8.2 |
You can break these rules if you can talk your pair into agreeing with you.
| // Steve Phillips / elimisteve | |
| // 2013.01.03 | |
| package main | |
| import "fmt" | |
| // intDoubler doubles the given int, then sends it through the given channel | |
| func intDoubler(ch chan int, n int) { | |
| ch <- n*2 |
| // ==UserScript== | |
| // @name GitHub delete all notifications button | |
| // @namespace http://www.github.com/micolous/delete-all-notifications | |
| // @description Adds a button to allow you to delete all notifications on a page. | |
| // @include http://github.com/inbox/notifications* | |
| // @include https://github.com/inbox/notifications* | |
| // ==/UserScript== | |
| /* |
##Intro
Janus is a "basic distribution of vim plugins and tools intended to be run on top of the latest MacVIM snapshot." It is maintained by Yehuda Katz and Carl Lerche.
I recently whinged on Twitter that all I really want is vim with TextMate's Command-T go-to-file functionality and some efficient visual tab/buffer navigation. Turns out MacVim + Janus, with just a few tweaks, is all that and more.
Follow the installation instructions on the git page