Skip to content

Instantly share code, notes, and snippets.

View sadbox's full-sized avatar

a box of sadness sadbox

View GitHub Profile
@sadbox
sadbox / newns.sh
Last active December 19, 2015 09:48 — forked from apage43/newns.sh
function newns {
if [ $# -ne 1 ]; then
echo "Incorrect number of arguments: $# Expected: 1"
return 1
elif [ ! -e project.clj ]; then
echo "Not in a project directory."
return 1
fi
local filename=src/$(echo $1 | tr .- /_).clj
local testname=test/$(echo $1 | tr .- /_)_test.clj