Skip to content

Instantly share code, notes, and snippets.

View unicode_test.py
# Make sure 'arial10x10.png' is in the same directory as this script.
import tcod
import tcod.event
# Setup the font.
tcod.console_set_custom_font(
"arial10x10.png",
tcod.FONT_LAYOUT_TCOD | tcod.FONT_TYPE_GREYSCALE,
)
# Initialize the root console in a context.
@kmonaghan
kmonaghan / wwdc-bingo.html
Last active Aug 29, 2015
A quick and dirty page to generate a WWDC bingo card
View wwdc-bingo.html
In a Repo now:
https://github.com/kmonaghan/WWDCBingo
View keybase.md

Keybase proof

I hereby claim:

  • I am kmonaghan on github.
  • I am karlmonaghan (https://keybase.io/karlmonaghan) on keybase.
  • I have a public key whose fingerprint is E4E4 BABD 771A 7025 CCEF 5EAC 1C2E E488 15BF E648

To claim this, I am signing this object:

@kmonaghan
kmonaghan / pre-actions
Created May 30, 2012
Example script to update Bundle version using svn version number before archiving an iOS project in Xcode. See http://www.karlmonaghan.com/2012/05/30/auto-versioning-and-auto-uploading-to-testflighthockeyapp-when-archiving-in-xcode/ for more information.
View pre-actions
SVN=`which svnversion`
REV=`${SVN} -nc ${SOURCE_ROOT} | /usr/bin/sed -e 's/^[^:]*://;s/[A-Za-z]//'`
BASEVERNUM=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "${SOURCE_ROOT}"/"${INFOPLIST_FILE}"`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BASEVERNUM.$REV" "${SOURCE_ROOT}"/"${INFOPLIST_FILE}"
@kmonaghan
kmonaghan / Xcode4TestFlightintegration.sh
Created May 29, 2012 — forked from c0diq/Xcode4TestFlightintegration.sh
ReWrite of "Xcode 4 scheme Archive step Post-script for automatic TestFlight build uploading. See the original blog post here: http://developmentseed.org/blog/2011/sep/02/automating-development-uploads-testflight-xcode". See http://www.karlmonaghan.com/20
View Xcode4TestFlightintegration.sh
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
# Inspired by original script by incanus:
# https://gist.github.com/1186990
#
# Rewritten by martijnthe:
# https://gist.github.com/1379127
#
@kmonaghan
kmonaghan / pre-actions
Created May 29, 2012
Example script to update Bundle version using number of git commits before archiving an iOS project in Xcode. See http://www.karlmonaghan.com/2012/05/30/auto-versioning-and-auto-uploading-to-testflighthockeyapp-when-archiving-in-xcode/ for more informatio
View pre-actions
GIT=`which git`
REV=`$GIT --git-dir=${SOURCE_ROOT}/.git log --pretty=format:'' | wc -l | sed 's/\ //g'`
BASEVERNUM=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "${SOURCE_ROOT}"/"${INFOPLIST_FILE}"`
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BASEVERNUM.$REV" "${SOURCE_ROOT}"/"${INFOPLIST_FILE}"