This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" OpenURL: Open stuff in your browser (http://git.io/qaDWKg) | |
command! -nargs=1 OpenURL :exe '!open <q-args>' | |
nnoremap gb :OpenURL <cfile><cr> | |
nnoremap gG :OpenURL http://www.google.com/search?q=<cword><cr> | |
nnoremap gW :OpenURL http://en.wikipedia.org/wiki/Special:Search?search=<cword><cr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" drop in ~/.vim/plugins or add to ~/.vimrc | |
" Requires https://github.com/tpope/vim-fugitive | |
function! s:GitX(...) | |
silent exe '!gitx --git-dir='.b:git_dir.' '.join(a:000) | |
redraw! | |
endfunction | |
augroup gitx | |
autocmd! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> mvim --startuptime ~/mvimstartuptime.txt | |
times in msec | |
clock self+sourced self: sourced script | |
clock elapsed: other lines | |
000.008 000.008: --- VIM STARTING --- | |
000.091 000.083: Allocated generic buffers | |
000.235 000.144: locale set | |
000.250 000.015: GUI prepared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | |
tar -vjxf vim-7.3.tar.bz2 | |
cd vim73 | |
./configure --prefix="$HOME/local" \ | |
--with-features=huge \ | |
--enable-multibyte \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#/ Usage: git travis | |
#/ | |
#/ Open a browser on travis-ci.org/GITHUB_NAME/REPO_NAME | |
#/ | |
#/ Ex: | |
#/ git://github.com/rails/rails.git => http://travis-ci.org/rails/rails | |
usage() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/autoload/rails.vim b/autoload/rails.vim | |
index efff7c1..ed7e0bd 100644 | |
--- a/autoload/rails.vim | |
+++ b/autoload/rails.vim | |
@@ -393,7 +393,7 @@ function! s:readable_model_name(...) dict abort | |
elseif f =~ '\<\%(test\|spec\)/exemplars/.*_exemplar\.rb$' | |
return s:sub(f,'.*<%(test|spec)/exemplars/(.*)_exemplar\.rb$','\1') | |
elseif f =~ '\<\%(test/\|spec/\)\=factories/.*\.rb$' | |
- return s:sub(f,'.*<%(test/|spec/)=factories/(.{-})%(_factory)=\.rb$','\1') | |
+ return rails#singularize(s:sub(f,'.*<%(test/|spec/)=factories/(.{-})%(_factory)=\.rb$','\1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Blah | |
def configuration | |
@configuration ||={} | |
end | |
def configure(&block) | |
yield configuration | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Blah | |
def configuration | |
@configuration || {} | |
end | |
def configure(&block) | |
@configuration ||= {} | |
yield @configuration | |
@configuration.freeze | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Contents/Resources/default.css b/Contents/Resources/default.css | |
index e2c317b..cdcc2f7 100644 | |
--- a/Contents/Resources/default.css | |
+++ b/Contents/Resources/default.css | |
@@ -1,16 +1,14 @@ | |
/* Mono by Christopher Lobay is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. */ | |
body { margin: 0; padding: 0; position: relative; width: 300px; word-wrap: break-word; } | |
+#verylow, #moderate, #normal, #high, #emergency {} | |
+#text-verylow, #text-moderate, #text-normal, #text-high, #text-emergency {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stevey's Google Platforms Rant | |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it. | |
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't really have SREs and they make engi |