Skip to content

Instantly share code, notes, and snippets.

View RandyMcMillan's full-sized avatar
🛰️
Those who know - do not speak of it.

@RandyMcMillan RandyMcMillan

🛰️
Those who know - do not speak of it.
View GitHub Profile
@brianleroux
brianleroux / webkit-xcode-4.3.md
Created March 7, 2012 19:31
building webkit from src w/ Xcode 4.3

Update your path to the Xcode dev tools:

sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer

Then set your xcode folder:

xcode-select -switch /Developer

And then you can run the build-webkit tool from the Tools folder:

@shazron
shazron / gist:2127546
Created March 19, 2012 22:07
iOS WebKit Database Locations

iOS WebKit Database Locations

"~" signifies the application's folder.

window.localStorage (4.3)

  1. ~/Library/WebKit/LocalStorage/file__0.localstorage
@iamleeg
iamleeg / pileOfPoo.m
Created March 22, 2012 01:51
The pile of poo Objective-C method
#import <Foundation/Foundation.h>
@interface A: NSObject
@end
@implementation A
void pileOfPoo(id self, SEL _cmd) {
NSLog(@"💩");
}
@timkim
timkim / PGCamera_Canvas
Created May 15, 2012 19:44
Short example of how to get photo from PhoneGap Camera to canvas
// Note: have not tested this - but I think it should work!
function cameraWin(picture){
var theCanvas = document.getElementById('theCanvas');
var ctx = theCanvas.getContext('2d');
var theImage = new Image();
theImage.src = "data:image/jpeg;base64,"+picture;
ctx.drawImage(theImage, 0, 0);
@pmuellr
pmuellr / Makefile
Created October 5, 2012 01:15
Makefile for Cordova devs for iOS
#-------------------------------------------------------------------------------
# Makefile for Cordova devs for iOS
#-------------------------------------------------------------------------------
# Use `make help` for more information.
#-------------------------------------------------------------------------------
# This Makefile assumes you have the following subdirectories in the same
# directory as this makefile, presumably git clones of the apache git repos:
# - incubator-cordova-ios
# - incubator-cordova-js
# - incubator-cordova-mobile-spec
@RandyMcMillan
RandyMcMillan / version.sh
Created October 12, 2012 21:19 — forked from osteslag/version.sh
Script for managing build and version numbers using git and agvtool. See link in comments below.
#!/bin/sh
# Script for managing build and version numbers using git and agvtool.
# Change log:
# v1.0 18-Jul-11 First public release.
# v1.1 29-Sep-12 Launch git, agvtool via xcrun.
version() {
@maning
maning / Updating NYC building footprints.md
Last active August 12, 2016 03:41 — forked from planemad/Updating NYC building footprints.md
Refreshing NYC building footprints

NYC had an import of over 1 million building footprints and 900,000 addresses in 2014 from the New York City Department of Information Technology and Telecommunications (DoITT). The DoITT GIS releases an updated shapefile of the footprints every quarter, and the latest version can be accessed here: Building footprints | Address points

Open datasets like these are a great opportunity to explore how OSM can be used as a bridge between authoritative information and that crowdsourced by citizens. Two years after the import, it is interesting to see how the OSM data compares with the latest official footprints. The interesting questions to ask is:

  • What has improved in the DoITT footprints that can be updated in OSM?
  • What has
@RandyMcMillan
RandyMcMillan / .description
Last active August 11, 2017 00:55 — forked from Zverik/recursive_index.pl
Create index.htm with a list of all files
recursive_index.pl : Sample Description
@juev
juev / gist:3124344
Created July 16, 2012 18:57 — forked from saetia/gist:1623487
Clean Install – Mountain Lion OS X 10.8 DP3 Update 4
@drpventura
drpventura / teaching.sql
Last active January 28, 2019 01:36
The teaching table creation and CSV file importation into MariaDB (MySQL) shown in the video at: https://youtu.be/smJFdYnphVk
use first;
create table teaching (
instr_name varchar(15),
course varchar(10)
);
-- NOTE: You will need to update the path to match where instr-classes.csv is.
load data local infile 'D:/Users/Phil/Downloads/instr-classes.csv'
into table teaching
fields terminated by ',';