Skip to content

Instantly share code, notes, and snippets.

View lejeunerenard's full-sized avatar
👨‍🔬

Sean Zellmer lejeunerenard

👨‍🔬
View GitHub Profile
@lejeunerenard
lejeunerenard / app_init
Last active December 20, 2015 23:49
A very opinionated Dancer/Choreographer Initialization/Scaffolding Script.
#!/bin/bash
echo "Initializing App..."
# ===== Install git submodules =====
echo "Installing git submodules..."
git submodule add https://github.com/HighgateCross/Form-Functions.git public/javascripts/form_functions
git submodule add https://github.com/HighgateCross/Validate.git lib/Validate
git submodule add https://github.com/HighgateCross/Stagehand.git lib/Stagehand
@lejeunerenard
lejeunerenard / State Select
Created September 4, 2013 18:51
The options for a State Select
<option value="">Select...</option>
<option value="AA">AA</option>
<option value="AE">AE</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AB">Alberta</option>
<option value="AP">AP</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="BC">British Columbia</option>
@lejeunerenard
lejeunerenard / Prompt Environment String
Created October 2, 2013 19:18
Prompt Environment String for Bash
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\w$(git branch &>/dev/null;\
if [ $? -eq 0 ]; then \
echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \
if [ "$?" -eq "0" ]; then \
# @4 - Clean repository - nothing to commit
echo "⚡"; \
else \
# @5 - Changes to working tree
echo "\[\033[31m\]⚡\[\033[01;00m\]"; \
fi)"; \
@lejeunerenard
lejeunerenard / remove-all-deleted
Last active January 3, 2016 14:49
Stage removal of all tracked files already deleted
git status | grep deleted | awk '{ print substr($0, index($0,$3)) }' | xargs -d '\n' git rm
local cb = peripheral.wrap('left')
local me = peripheral.wrap('bottom')
local chestMapping = {}
function getUuid(id,meta)
return id + meta * 32768
end
chestMapping['_chendo_'] = 0 -- down
@lejeunerenard
lejeunerenard / restoreDeleted
Created June 23, 2014 15:46
Restoring deleted files that were tracked but havent been committed
git status | grep deleted | awk '{ print substr($0, index($0,$3)) }' | xargs -d '\n' git checkout --
@lejeunerenard
lejeunerenard / is_deeply-5.18.0.pl
Created September 25, 2014 03:30
is_deeply test in perl 5.18.0 and greater
use Test::More;
# Intermediately Failing test perl 5.18.0 >
is_deeply {
'errors' => [
{
'last_name' => 'must be unique when combined with first_name, middle_name'
},
{
'middle_name' => 'must be unique when combined with first_name, last_name'
@lejeunerenard
lejeunerenard / cmp_bag
Created September 25, 2014 03:57
cmp_bag
use Test::Deep;
cmp_bag [
{ 'middle_name' => 'must be unique when combined with first_name, last_name' },
{ 'first_name' => 'must be unique when combined with middle_name, last_name' },
{ 'last_name' => 'must be unique when combined with first_name, middle_name and must be unique when combined with suffix' },
{ 'suffix' => 'must be unique when combined with last_name' }
], [
{ 'suffix' => 'must be unique when combined with last_name', },
{ 'middle_name' => 'must be unique when combined with first_name, last_name', },
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
table {
width: 100%;
max-width: 700px;
margin: 0 auto;