Skip to content

Instantly share code, notes, and snippets.

View douganger's full-sized avatar

Douglas Anger douganger

  • Traverse City, Michigan
View GitHub Profile

Keybase proof

I hereby claim:

  • I am douganger on github.
  • I am douganger (https://keybase.io/douganger) on keybase.
  • I have a public key whose fingerprint is 5015 435F A191 B90A 5351 3335 24D8 405E 1CAA 5B35

To claim this, I am signing this object:

# Find the innermost directory with an env and activate it.
env_root=$(pwd -P 2>/dev/null || command pwd)
while [ ! -e "$env_root/env" ]; do
env_root=${env_root%/*}
if [ "$env_root" = "" ]; then break; fi
done
if [ -n "$env_root" ]; then
@douganger
douganger / pointers.c
Created December 23, 2014 03:25
A quick example using pointers and printf in C.
/*
Copyright (c) 2014 Doug Anger. This work is licensed under the Creative Commons
Attribution 4.0 International License. To view a copy of this license, visit
http://creativecommons.org/licenses/by/4.0/.
*/
#include <stdio.h>
int main(){