Skip to content

Instantly share code, notes, and snippets.

# 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 August 29, 2015 14:01
A quick and dirty page to generate a WWDC bingo card
In a Repo now:
https://github.com/kmonaghan/WWDCBingo

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 21:10
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.
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 13:07 — 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
#!/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 11:39
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
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}"