Skip to content

Instantly share code, notes, and snippets.

View lodestone's full-sized avatar
:octocat:
🤘Grokking Out 🤘

Matthew Petty lodestone

:octocat:
🤘Grokking Out 🤘
  • Kizmeta
  • Kansas City Area, Missouri
  • 12:38 (UTC -12:00)
View GitHub Profile
@lodestone
lodestone / timers-and-tomatoes.md
Created April 30, 2014 02:01
An App Addict's Advice on: Pomodoro Technique

Timers and Tomatoes

An App Addict's Advice on: Pomodoro Technique

There are about 1001 different pomodoro/timer apps out there and they as a whole just plain suck. Bad UI is rife.

Here are a few that don't suck as much:


application:open-your-keymap
application:open-your-stylesheet
autocomplete:attach
autoflow:reflow-paragraph
bookmarks:clear-bookmarks
bookmarks:jump-to-next-bookmark
bookmarks:jump-to-previous-bookmark
bookmarks:toggle-bookmark
bookmarks:view-all
check:correct-misspelling
@lodestone
lodestone / 5-reasons-to-avoid-atom.markdown
Created February 27, 2014 20:00
Five Reasons You Should Avoid Github's Atom Editor

5 Reasons You Should Avoid Github's Atom Editor

1. There's a Big Hoopla

It must be a passing thing. Just trendy teenagers hopping on the bandwagon. Another fad from an industry that is addicted to it. It must be these things, despite Github's six years of work on it before release. It must be worth avoiding despite the fact that obvious thought, time, and love has been put into the project.

2. It doesn't do X!!!

Yeah, it doesn't do X. It does Y and Z really well, but because it doesn't do X yet it must be eschewed. End of story.

@lodestone
lodestone / compact.js
Created February 22, 2014 00:25
Somewhat comparable compact function to match ruby's compact method.
Array.prototype.compact = function() { return this.filter(function(e) { return e; }); };
@lodestone
lodestone / irb_output.rb
Created January 26, 2014 21:50
SquishyI: Squeezes out numbers from a string.
irb(main):013:0> "$1,234,567".to_i
=> 0
irb(main):014:0> "$1,234,567".to_squishy_i
=> 1234567
@lodestone
lodestone / install-macvim-with-lua.sh
Created January 25, 2014 09:17
brew install macvim with lua
brew install macvim --with-cscope --with-lua --override-system-vim
@lodestone
lodestone / toggle_quickfix.vim
Created January 22, 2014 18:32
Quickly toggle the quickfix window off and on
" toggle Quickfix window with <leader>q
function! GetBufferList()
redir =>buflist
silent! ls
redir END
return buflist
endfunction
function! ToggleList(bufname, pfx)
let buflist = GetBufferList()
arr = []
File.open(file, 'r').each_line do |line|
line = line.split(';')
line.reverse!
arr << {word: line.pop, public: line.pop, vulgar: line.pop, pos: line.pop, definition: line.pop}
end
arr.in_groups_of(1000) {|g| r.table("entries").insert(g).run }
@lodestone
lodestone / rbenv-install-ruby-2.0.0-p247.sh
Created October 21, 2013 06:22
Install Ruby 2.0.0-p247 on Mac using rbenv and ruby-build.
RUBY_CONFIGURE_OPTS="--with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p247
@lodestone
lodestone / pretty-print-json.sh
Created October 10, 2013 02:47
Pretty Print JSON
echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool