Skip to content

Instantly share code, notes, and snippets.

John Bender johnbender

Block or report user

Report or block johnbender

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View wod
800m Run/Row
3 Rounds:
12 KB Swings
10 No Push-up Burpee
800m Run/Row
3 Rounds:
5 Pull-ups
@johnbender
johnbender / resolution.md
Last active Dec 10, 2015
New Year's resolutions
View resolution.md

New Year's Resolutions

A list of nest years resolutions and an accounting of this years success/failures

2014

  1. Publish
  2. Pass 281a
  3. Be more patient
View cutycapt-showoff.sh
# Requires that you download and build cutycapt http://cutycapt.sourceforge.net/
# Once that's done all you have to do is reference each of your slides in some fashion or
# another. With Showoff it actually crops right to the slide dimensions (added bonus)
# NOTE replace slide count used to sequence the images, in this case 100
for i in $(seq 1 100); do
$(./path/to/Cuty/Capt/Binary --url=http://example.com/#$i --out=$i.png)
done
View haskell-blah.irc
09:11 < xplat> > map (\x -> if x > 0 then 'o' else 'n') [0..]
09:11 < lambdabot> "nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...
09:11 -!- cscorley [~cscorley@0x1f0.net] has joined #haskell-blah
09:11 < tac-tics> > 'n' : fix ('o':)
09:11 < lambdabot> "nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...
09:12 < xplat> > 'n':['o','o'..]
09:12 < lambdabot> "nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...
09:12 < tac-tics> > 'n' : ['o' ..]
09:12 < lambdabot> "nopqrstuvwxyz{|}~\DEL\128\129\130\131\132\133\134\135\136\137\138\139\140\...
09:12 < tac-tics> :P
@johnbender
johnbender / xmonad.hs
Created Oct 15, 2011
my super simple xmonad config, works with unity2d (eg 11.10)
View xmonad.hs
import XMonad
import XMonad.Config.Gnome
import XMonad.Layout.NoBorders
import XMonad.Layout.Gaps
import XMonad.Util.EZConfig
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import qualified XMonad.StackSet as W
main = xmonad $ gnomeConfig { terminal = "gnome-terminal"
@johnbender
johnbender / deleteNotifications.js
Created Jul 8, 2011
delete notification in github bookmarklet
View deleteNotifications.js
javascript:void((function(){ $(".del a").click(); })())
@johnbender
johnbender / window.el
Created Jun 25, 2011
hook for switch to or creating windows in emacs
View window.el
;; advise the other-window function as a hook into switching windows
;; with C-x o
(defadvice other-window (after my-test-advice activate)
(my-super-awesome-function))
;; when creating or adding a window fire the hook
(add-hook 'window-configuration-change-hook 'my-super-awesome-function)
View interview.java
// THE BAD
public class Lamp
{
private int bulbAge;
private String bulbType;
private int shadeAge;
public Lamp(int bulbAge, String bulbType, int shadeAge)
{
this.bulbAge = bulbAge;
View la_ruby_conf_slide.md
View *.rb
def solve
is_solution = @board.partial_solution?(Board.from_hash(params[:solution]))
if is_solution
current_user.current_user_game_board.score!
else
current_user.current_user_game_board.missed_guess!
end
current_user.next_board!
You can’t perform that action at this time.