Skip to content

Instantly share code, notes, and snippets.

@strangecode
strangecode / Utilities.inc.php
Last active August 29, 2015 13:56
jsDump() - Log a PHP variable to javascript console.
<?php
/*
* Log a PHP variable to javascript console. Relies on getDump(), below.
*
* @access public
* @param mixed $var The variable to dump.
* @param string $prefix A short note to print before the output to make identifying output easier.
* @param string $file The value of __FILE__.
* @param string $line The value of __LINE__.
* @return null
@strangecode
strangecode / flickr-upload
Last active December 16, 2015 09:18
flicker_upload wrapper prompts for image title, desc, tags. Requires flickr_upload and Flickr::Upload perl module. http://search.cpan.org/~cpb/Flickr-Upload/flickr_upload
#!/bin/bash
usage () {
echo "Usage: $(basename $0) FILENAME";
echo "You will be prompted for title, desc, and tags.";
exit 1;
}
[[ -z "$@" ]] && usage;