Skip to content

Instantly share code, notes, and snippets.

Jesse Collis jessedc

Block or report user

Report or block jessedc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jessedc
jessedc / livestreams.md
Last active Apr 29, 2019
Melbourne Cocoaheads Livestreams
View livestreams.md

Melbourne CocoaHeads Livestreams

Notes

@jessedc
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
jessedc / readme.md
Last active Mar 11, 2018
How to Build Laravel Homestead vagrant base box from Source
View readme.md

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
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
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
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
* https://developer.apple.com/library/ios/samplecode/CloudAtlas/Listings/Node_node_client_s2s_index_js.html#//apple_ref/doc/uid/TP40014599-Node_node_client_s2s_index_js-DontLinkElementID_22
*/
const https = require('https');
var fs = require('fs');
var crypto = require('crypto');
View schema.md

Valid Schema

{
  "swagger": "2.0",
  "info": {
    "version": "2.0.0",
    "title": "Beanhunter API",
    "description": "Description of the api goes here."
  },
@jessedc
jessedc / app.php
Last active Sep 17, 2015
Bind Guzzle Laravel Lumen
View app.php
<?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
jessedc / tidy-json.sh
Created Aug 19, 2015
Tidy up your json with JQ
View tidy-json.sh
cat schema/schema.json | jq -M . > schema/schema.json
You can’t perform that action at this time.