Skip to content

Instantly share code, notes, and snippets.

View mitch000001's full-sized avatar
🔌
Working from home

Michael Wagner mitch000001

🔌
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mitch000001 on github.
  • I am mitch000001 (https://keybase.io/mitch000001) on keybase.
  • I have a public key whose fingerprint is 8309 FBE1 F701 CB58 3F0D D213 DD07 6E43 DB6C 51C3

To claim this, I am signing this object:

@mitch000001
mitch000001 / rake.sh
Created November 17, 2013 18:19 — forked from turadg/rake.sh
# bash completion for rake
#
# some code from on Jonathan Palardy's http://technotales.wordpress.com/2009/09/18/rake-completion-cache/
# and http://pastie.org/217324 found http://ragonrails.com/post/38905212/rake-bash-completion-ftw
#
# For details and discussion
# http://turadg.aleahmad.net/2011/02/bash-completion-for-rake-tasks/
#
# INSTALL
#
@mitch000001
mitch000001 / ExpandableListView with SectionIndexer
Last active December 18, 2015 22:18
A workaround for ExpandableListViews to use the SectionIndexer to provide fast scroll ability. This assumes that you use the groups as sections.
Caveats
This implementation uses the OnScrollListener to watch the scrolling state. If you need to set your custom OnScrollListener to perform other logic you have either to replace the implementing interface with a concrete constructor argument or you have to put the logic into the adapter also, if possible.
As far as I know it is not possible to set another OnScrollListener without replacing the first one.
@mitch000001
mitch000001 / uninstall_homebrew.sh
Created January 7, 2012 16:38 — forked from mxcl/uninstall_homebrew.sh
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
set -e
cd `brew --prefix`
git ls-files -z | pbcopy
rm -rf Cellar
bin/brew prune