Skip to content

Instantly share code, notes, and snippets.

View jessedc's full-sized avatar

Jesse Collis jessedc

View GitHub Profile
@jessedc
jessedc / ValueKeys.cs
Last active August 23, 2021 04:05
VTankLoot File Annotated
enum StringValueKey
{
Name = 1,
Title = 5,
Inscription = 7,
InscribedBy = 8,
FellowshipName = 10,
UsageInstructions = 14,
SimpleDescription = 15,
FullDescription = 16,
@jessedc
jessedc / livestreams.md
Last active April 29, 2019 22:37
Melbourne Cocoaheads Livestreams

Melbourne CocoaHeads Livestreams

Notes

@jessedc
jessedc / gist:12a74aff88d06e669cf1c9999408c62c
Created January 13, 2019 00:22
xcodebuild --help ExportOptions.plist organised in a more logical way
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 / diyBMS-demo-build.jpg
Last active April 3, 2021 13:01
DiyBMS PartsList / Bill of Materials
diyBMS-demo-build.jpg
@jessedc
jessedc / readme.md
Last active November 7, 2019 17:46
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
jessedc / current-measure.ino
Created March 10, 2018 00:38
Current Sensor for Arduino
#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 September 1, 2016 06:26
Fetch all of the Countries supported in UIKit
//: 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 February 7, 2016 20:28
Clout Kit Web Services using server to server token
(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');

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 September 17, 2015 19:46
Bind Guzzle Laravel Lumen
<?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,