Skip to content

Instantly share code, notes, and snippets.

View ModestGoblin's full-sized avatar

Thomas Sikma ModestGoblin

View GitHub Profile
@scripting
scripting / getdavewineropml.js
Created June 29, 2015 12:04
A PagePark page implemented in JavaScript that returns the JSON representation of an OPML outline. See the notes for v0.63 for more info.
var urlOpml = "http://davewiner.com/davewiner.opml";
opmlLib.readOpmlUrl (urlOpml, function (theOutline) {
httpResponse.writeHead (200, {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"});
httpResponse.end (utils.jsonStringify (theOutline));
});
@ModestGoblin
ModestGoblin / SCAS.sh
Last active November 30, 2015 22:27
SCAS is a small XCode shell script which efficiently packages a Mac OS X Application's source code into the application itself. The resulting embedded project directory is fully funcitonal, allowing the code and resources to be examined, modified and re-built.
#!/bin/bash
# Source Code Access Script
set -eux
# Only bundle the source for Release/Deployment builds.
if [ "$CONFIGURATION" != 'Release' -a "$CONFIGURATION" != 'Deployment' ] ; then exit ; fi
INSIDE_SOURCE="$TARGET_BUILD_DIR"/"$CONTENTS_FOLDER_PATH"/Source