Skip to content

Instantly share code, notes, and snippets.

View iturgeon's full-sized avatar
👻
The answer is YES

Ian Turgeon iturgeon

👻
The answer is YES
View GitHub Profile
@iturgeon
iturgeon / Default.sublime-commands
Created October 27, 2012 20:37
SublimeText 2 CamelCase to SnakeCase Converter
[
{
"caption": "Snake Case: Convert CamelCase to snake_case",
"command": "snake_case"
}
]
@iturgeon
iturgeon / gist:3877271
Created October 12, 2012 04:18
Curl request to send a test credit card test to authorize.net
curl -F "
x_version=3.1
&x_delim_data=True
&x_delim_char=|
&x_relay_response=False
&x_login=[login]
&x_tran_key=[key]
&x_test_request=TRUE
&x_type=AUTH_CAPTURE
&x_first_name=Ian
<div>
<? foreach ($items as $item) { ?>
<h2><?= $item['product_name'] ?></h2>
<img src="img/<?= $item['product_image'] ?>" />
<p><?= $item['description'] ?></p>
<? } ?>
</div>
@iturgeon
iturgeon / fuel-error
Created January 12, 2012 17:11
Auto locate and tail the newest FuelPHP error log
#!/bin/sh
ARGS='noargs'
if [ $1 ] ; then
LOG_DIR=$1
else
echo 'Missing Required Arugments: root dir of fuel /dir/to/fuel/'
exit
fi