This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get the Mac OS X version | |
version_major=$(sw_vers -productVersion | cut -d . -f 2) | |
#version_minor=$(sw_vers -productVersion | cut -d . -f 3) | |
interpreter='' | |
# 10.7.x now has no 32-bit only version of Perl included, so we | |
# need to set Perl's prefer-32-Bit default | |
if [ $version_major -eq 7 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# mime2mdwn - Convert MIME format wiki export (developed for PhpWiki exports) to Markdown | |
# | |
# globals | |
debug=false | |
# the actual heavy lifting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$currencyCache = array(); | |
/** | |
* Looks for unquoted keys in a json string and fixes them ie: {a:"b"} => {"a":"b"} | |
* @param string $string A json string that is suspect | |
* @return string A valid json string | |
*/ | |
function fix_json($string){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# | |
# clipcat - Concatenate and print Text Clippings. | |
# | |
# v0.1 2010-11-18 - David Kendal <https://gist.github.com/705623> | |
# Initial version. Used with permission. | |
# v0.2 2010-12-08 - Morgan Aldridge <[email protected]> | |
# Now concatenates multiple text clippings. Usage instructions. | |
# |
NewerOlder