Skip to content

Instantly share code, notes, and snippets.

View rgm's full-sized avatar

Ryan McCuaig rgm

View GitHub Profile
1. 6:36:14 UBC Triathlon Club ( 39:38)
2. 6:42:49 ICBC Head Office ( 40:17)
3. 6:48:07 HootSuite ( 40:49)
4. 6:56:15 Knight Piesold Ltd ( 41:38)
5. 7:04:21 Ainsworth Engineered ( 42:27)
6. 7:04:29 PMC Sierra ( 42:27)
7. 7:05:11 TELUS Lemurs ( 42:32)
8. 7:06:34 BGC ENGINEERING ( 42:40)
9. 7:07:06 SD#23 SUNRUNNERS ( 42:43)
10. 7:10:26 Ledcor Group ( 43:03)
@rgm
rgm / stamp-icon.rb
Last active September 11, 2023 12:40
Add the current version and build number on your iOS app icon
#!/usr/bin/env ruby
# Requires ImageMagick: `brew install imagemagick`
# Requires version.sh from https://gist.github.com/osteslag/1089407
#
# Set RGM_STAMP_VERSION_ON_ICONS=1 in your build settings to enable/disable
# stamping on Debug/Relase configurations.
#
# Make base unstamped versions Icon.base.png, &c. in the source tree. The
# script will make stamped versions Icon.png, &c. It relies on Xcode to copy
@rgm
rgm / post-commit
Created March 1, 2013 00:05
Image-snapping, location-tagging post-commit hook
#!/bin/sh
# git post-commit hook to snap a photo and sample your current location
SNAPS_FOLDER="$HOME/Dropbox/gitshots"
# extended from https://gist.github.com/kytrinyx/4489037
#
# you will need these binaries on $PATH:
#
@rgm
rgm / tidy-desktop
Last active December 14, 2015 01:29
Desktop file stasher, inspired by "Clean," see https://itunes.apple.com/ca/app/clean/id418412301?mt=12
#!/usr/bin/env ruby
# squirrel away src files into dst/YEAR-Month
# rename incoming file x.ext as x-1.ext if there's already x.ext in dst
# TODO getopts this stuff
source_folder = '~/Desktop'
destination_folder = "~/Documents/Crap/"
dry_run = false
#!/usr/bin/env ruby
# run with ARGV[0] pointed at an iPhone backup directory to re-tag the files
# with extensions.
#
# written under the influence of learning haskell / clojure / frp so also quite
# possibly the worst ruby ever written.
class String
def iphone_extension
#include "Menu.h"
using namespace Menu;
namespace Menu
{
const char *universalName = "<%= universal_name %>";
const int resourceIndex = 11000;
static SMenuDef gMenuDef =
class Generate < Thor
desc 'menu', 'Create .cpp/.h/.r for a bare menu'
def menu
onoe 'IMPLEMENT ME'
end
desc 'parametric_menu', 'Create .cpp/.h/.r for a menu & parametric'
def parametric_menu
onoe 'IMPLEMENT ME'
--type-set
vectorscript=.vss
We couldn’t find that file to show.
@rgm
rgm / ConfigCommon.xcconfig
Created April 1, 2011 21:06
Boilerplate build settings, entry point files, prefix header for Vectorworks SDK plugins
ARCHS = i386
VALID_ARCHS = $(ARCHS)
WRAPPER_EXTENSION = vwlibrary
//
// define VW_SDK_ROOT_PATH for your local filesystem
// to make #include <foo.h> work correctly
//
VW_SDK_ROOT_PATH = ../sdk/vendor/sdk2011/SDKLib