Skip to content

Instantly share code, notes, and snippets.


Jesse Collis jessedc

View GitHub Profile
jessedc /
Last active Apr 29, 2019
Melbourne Cocoaheads Livestreams

Melbourne CocoaHeads Livestreams


jessedc / gist:12a74aff88d06e669cf1c9999408c62c
Created Jan 13, 2019
xcodebuild --help ExportOptions.plist organised in a more logical way
View gist:12a74aff88d06e669cf1c9999408c62c
ExportOptions.plist - Options in a better order
Xcodebuild manfile says the following
> **Distributing Archives**
> The -exportArchive option specifies that xcodebuild should distribute the archive specified by -archivePath using the options specified by
> -exportOptionsPlist. xcodebuild -help can print the full set of available inputs to -exportOptionsPlist. The product can either be uploaded to Apple or
> exported locally. The exported product will be placed at the path specified by -exportPath.
The following is the list of settings (as of Xcode 10.1) output by `xcodebuild --help` but in a more logical order.
jessedc /
Last active Nov 7, 2019
How to Build Laravel Homestead vagrant base box from Source

How to build the Laravel Homestead base box (settler) from source

Sometimes you need the latest updates from Laravel Settler the Homestead base box source.

This assumes you're on macOS and have homebrew, Vagrant and Virtualbox installed.

These instructions are a slighly expanded version of the settler readme

mkdir settler-master
jessedc / current-measure.ino
Created Mar 10, 2018
Current Sensor for Arduino
View current-measure.ino
#include <Filter.h>
#include "U8glib.h"
#define RST 8 // Reset
#define CE 9 // CS
#define DC 10 // A0
#define DIN 11 // MOSI
#define CLK 12 // SCLK
#define CURR 0
jessedc / CountryCodes.swift
Created Sep 1, 2016
Fetch all of the Countries supported in UIKit
View CountryCodes.swift
//: Playground - noun: a place where people can play
import UIKit
// If you're in a playground, you need to swizzle current locale
extension NSLocale {
class func jc_currentLocale() -> NSLocale {
return NSLocale.init(localeIdentifier: "en_AU")
jessedc / index.js
Created Feb 7, 2016
Clout Kit Web Services using server to server token
View index.js
(function() {
* This is an example fetching /users/current from cloud kit with a server to server token without utilising aplpe's cloudkit.js
const https = require('https');
var fs = require('fs');
var crypto = require('crypto');

Valid Schema

  "swagger": "2.0",
  "info": {
    "version": "2.0.0",
    "title": "Beanhunter API",
    "description": "Description of the api goes here."
jessedc / app.php
Last active Sep 17, 2015
Bind Guzzle Laravel Lumen
View app.php
* FIXME: This really is just for one paritulcar type of jobs,
* not everything we would want to use guzzle for.
$app->bind('\GuzzleHttp\ClientInterface', function ($app) {
return new \GuzzleHttp\Client([
'base_uri' => env('MAIN_SITE_URL'),
'connect_timeout' => 5,
jessedc /
Created Aug 19, 2015
Tidy up your json with JQ
cat schema/schema.json | jq -M . > schema/schema.json