Skip to content

Instantly share code, notes, and snippets.

@eponvert
eponvert / WaffleAwesome.md
Created July 22, 2012 12:42
The Greatest Waffle Recipe on Earth or Anywhere Else

The Greatest Waffle Recipe on Earth or Anywhere Else

This recipe produces the most crispy and delicious waffles I've ever had. It has been adapted from a recipe in J. Bennett's (2001) excellent [Very Vegetarian][1], optimized for awesomeness and deliciousness. Candace and I were vegan when we originally developed this recipe, and so these waffles have no eggs or dairy.

@eponvert
eponvert / .Rprofile
Created January 20, 2013 14:36
.Rprofile to load quartz graphics, and deal with distorted quartz device (window) on Mac OS X Lion
Sys.setenv("R_INTERACTIVE_DEVICE" = "quartz")
setHook(packageEvent("grDevices", "onLoad"), function(...) grDevices::quartz.options(dpi = 70))
@eponvert
eponvert / make-dist
Last active December 15, 2015 00:09
A handy shell script for generating a distribution of your Java Maven project as a CLI tool. The uses `mvn package` to create a jar file, writes out a little script to call the jar. For this to work, use shade or something to bundle the dependencies into the jar. With assembly, update the script to work with the assembly jar. Also, be sure to se…
#!/usr/bin/env bash
REBUILD_CMD=rebuild
if [ "$1" == "help" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] || [ "$1" == "-?" ] ; then
cat<<EOF
Usage: $0 [$REBUILD_CMD]
With '$REBUILD_CMD', the script rebuilds the package Jar.
EOF
exit 0
@eponvert
eponvert / csvcut
Created February 28, 2014 19:46
Like cut for CSVs and TSVs and what not
#!/usr/bin/env python2.7
# Copyright (c) 2014 Elias Ponvert
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#!/usr/bin/env python2.7
# Copyright (c) 2014 Elias Ponvert
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@eponvert
eponvert / git-clean-branches
Last active June 30, 2016 14:01
Git command to clean up merged branches.
#!/bin/sh
if [[ $1 == -r ]] || [[ $1 == --remote ]] || [[ $1 == remote ]] ; then
REMOTE=origin
if [[ $2 != '' ]] ; then
REMOTE=$2
fi
git remote prune $REMOTE
git branch -r --merged | grep "^\s*$REMOTE" | grep -v "\*\|master\|develop" | sed -e "s#^\s*$REMOTE/##" | xargs -n 1 git push $REMOTE --delete
else
git branch --merged | grep -v "\*\|master\|develop" | xargs -n 1 git branch -d
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"

Keybase proof

I hereby claim:

  • I am eponvert on github.
  • I am eponvert (https://keybase.io/eponvert) on keybase.
  • I have a public key ASCd2cX8ZmBSTURptV1vbgkn7SySoQWbGB3DwWJaUoVUFQo

To claim this, I am signing this object: