Skip to content

Instantly share code, notes, and snippets.

View swilliams's full-sized avatar
stuff

Scott Williams swilliams

stuff
View GitHub Profile
@swilliams
swilliams / gist:dddc46e5998bcc4d78dc
Created March 13, 2015 15:07
Xcode 6.2 Crash log
Process: Xcode [1419]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.2 (6776)
Build Info: IDEFrameworks-6776000000000000~11
App Item ID: 497799835
App External ID: 811890240
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [1419]
extension String {
var localized: String {
return NSLocalizedString(self, comment: "")
}
}
// Which allows for:
"Hello world".localized
@swilliams
swilliams / harvest.js
Created June 25, 2017 21:26
A bell provider for Harvest
import axios from 'axios';
import Bell from 'bell';
import Boom from 'boom';
import Joi from 'joi';
const harvestProvider = (options) => {
const validated = Joi.validate(options, Joi.object({
domain: Joi.string()
.hostname()
.required(),