I hereby claim:
- I am inamik on github.
- I am davidpfarrell (https://keybase.io/davidpfarrell) on keybase.
- I have a public key ASB0pIIX3U9P14VPVSCK-uulvtJoHH1RVygAN6GPnUAD-Ao
To claim this, I am signing this object:
| // | |
| // calc.go implements a simple calculator using the iNamik lexer and parser api. | |
| // | |
| // Input is read from STDIN | |
| // | |
| // The input expression is matched against the following pattern: | |
| // | |
| // input_exp: | |
| // ( id '=' )? general_exp | |
| // general_exp: |
| <?php | |
| /** | |
| * Simple view class | |
| * | |
| * This is the simplest class I could devise that contains the minimum logic | |
| * that I require in a view: | |
| * | |
| * Includes - Ability to include other views | |
| * | |
| * Captures - Ability to easily capture content within your view |
| <?php | |
| /** | |
| * Generic Exception Support for PHPUnit < v3.7 | |
| * | |
| * These classes help you test generic exceptions in PHPUnit versions less than | |
| * v3.7, avoiding the 'You must not expect the generic exception class' error. | |
| * | |
| * We create a new exception to represent the generic exception, and provide | |
| * multiple ways to incorporate the functionality into your tests: | |
| * |
| <?php | |
| /** | |
| * Since PHP stores all arrays as associative internally, there is no proper | |
| * definition of a scalar array. | |
| * | |
| * As such, developers are likely to have varying definitions of scalar array, | |
| * based on their application needs. | |
| * | |
| * In this file, I present 3 increasingly strict methods of determining if an | |
| * array is scalar. I feel these methods cover the majority, if not all, of the |
| /* | |
| package llrb implements a Left-Leaning Red-Black Tree (2-3 Variant), | |
| as described by Robert Sedgewick: | |
| * http://www.cs.princeton.edu/~rs/talks/LLRB/RedBlack.pdf | |
| * http://en.wikipedia.org/wiki/Left-leaning_red%E2%80%93black_tree | |
| The goal of this implementation is a one-to-one correlation to the ideas |
| #!/bin/bash | |
| ## | |
| # svnCleanUpdate | |
| # | |
| # Cleanup an SVN checkout, Revert local changes and update to @HEAD | |
| # Does not generate any output unless something is changed. | |
| # NOTE: This script destroys all local mods - run it with caution! | |
| #SVN_AUTH="--username user --password passwd" |
I hereby claim:
To claim this, I am signing this object:
| # | |
| # Add the below chrome() function to your ~/.bash_profile | |
| # | |
| # Launch an anonymous instance - Profile is stored in /tmp with random name | |
| # $ chrome | |
| # | |
| # Launch/relaunch a temporary named instance - Profile is stored in /tmp with specified name | |
| # $ chrome name_in_all_lowercase | |
| # | |
| # Launch/relaunch a permanent named instance - Profile is stored in ~/Documents/ChromeProfiles with specified name |
| #!/bin/bash | |
| FILE="/sys/class/backlight/rpi_backlight/brightness" | |
| if [ $# = 0 ]; then | |
| cat ${FILE} | |
| exit 0 | |
| fi | |
| if [ $# -eq 1 ] && [[ $1 =~ ^[0-9]{1,3}$ ]] && [ $1 -ge 0 ] && [ $1 -le 255 ]; then |