Skip to content

Instantly share code, notes, and snippets.

View itspriddle's full-sized avatar
🤘
clickity clack

Joshua Priddle itspriddle

🤘
clickity clack
View GitHub Profile
" 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>
@itspriddle
itspriddle / gitx.vim
Created February 10, 2012 20:33
Launch GitX from Vim
" 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!
> 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
#!/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 \
#!/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() {
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'))
@itspriddle
itspriddle / test.rb
Created January 6, 2012 20:10 — forked from jmazzi/test.rb
module Blah
def configuration
@configuration ||={}
end
def configure(&block)
yield configuration
end
@itspriddle
itspriddle / test.rb
Created January 6, 2012 20:06 — forked from jmazzi/test.rb
module Blah
def configuration
@configuration || {}
end
def configure(&block)
@configuration ||= {}
yield @configuration
@configuration.freeze
end
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 {}
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