Skip to content

Instantly share code, notes, and snippets.

Elias Ponvert eponvert

Block or report user

Report or block eponvert

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
@eponvert
eponvert / csvcut
Created Feb 28, 2014
Like cut for CSVs and TSVs and what not
View csvcut
#!/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:
View csvpaste
#!/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 / WaffleAwesome.md
Created Jul 22, 2012
The Greatest Waffle Recipe on Earth or Anywhere Else
View WaffleAwesome.md

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 Jan 20, 2013
.Rprofile to load quartz graphics, and deal with distorted quartz device (window) on Mac OS X Lion
View .Rprofile
Sys.setenv("R_INTERACTIVE_DEVICE" = "quartz")
setHook(packageEvent("grDevices", "onLoad"), function(...) grDevices::quartz.options(dpi = 70))
@eponvert
eponvert / make-dist
Last active Dec 15, 2015
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…
View make-dist
#!/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 / git-clean-branches
Last active Jun 30, 2016
Git command to clean up merged branches.
View git-clean-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
View git-tree
git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
View keybase.md

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:

You can’t perform that action at this time.