Skip to content

Instantly share code, notes, and snippets.

@strangecode
strangecode / Utilities.inc.php
Last active Aug 29, 2015
jsDump() - Log a PHP variable to javascript console.
View Utilities.inc.php
<?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 Dec 16, 2015
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
View flickr-upload
#!/bin/bash
usage () {
echo "Usage: $(basename $0) FILENAME";
echo "You will be prompted for title, desc, and tags.";
exit 1;
}
[[ -z "$@" ]] && usage;