Skip to content

Instantly share code, notes, and snippets.

@humblehacker
humblehacker / dot.py
Created Mar 20, 2015
LLDB python script to render TKStateMachines
View dot.py
#!/usr/bin/python
#----------------------------------------------------------------------
# Be sure to add the python path that points to the LLDB shared library.
#
# # To use this in the embedded python interpreter using "lldb" just
# import it with the full path using the "command script import"
# command
# (lldb) command script import /path/to/dot.py
#----------------------------------------------------------------------
View MachTimer
==> MachTimer.h <==
//
// MachTimer
// Tout
//
// Code sourced from http://zpasternack.org/high-resolution-timing-in-cocoa/
//
#import <Foundation/Foundation.h>
#include <mach/mach_time.h>
@humblehacker
humblehacker / version.rb
Created Sep 27, 2012
Ruby script to update version numbers in iOS projects
View version.rb
#!/usr/bin/env ruby
$: << File.expand_path(File.dirname(File.realpath(__FILE__)) + './../lib')
require 'gli'
require 'version'
require 'versionomy'
include GLI::App
#version Version::VERSION