View gist:eaf5a4698ee985a814cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label ng-repeat="material in materials" class="materials col-lg-8 col-lg-offset-2 debug" style="border-right: 1px solid black;"> | |
<div class="inner"> | |
<input type="checkbox" ng-model="materials" ng-click="select(item)" checklist-model="choices.materials" checklist-value="material"> | |
<i class="icon-{{material | lowercase}}" ng-class="{class: materials}"></i> {{material | capitalize}} | |
</div> | |
</label> |
View gist:532766de1d414608cb8b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"jolts": [{"Date": "1/6/2016", "Question": "Today I'm working on...", "Response": "Today I'm working on "}, {"Date": "1/6/2016", "Question": "Who's your favorite writer?", "Response": "My favorite writer is "}, {"Date": "1/6/2016", "Question": "What are you saving up for?", "Response": "I'm saving up for "}, {"Date": "1/7/2016", "Question": "Name a few of your favorite things.", "Response": "These are a few of my favorite things:"}, {"Date": "1/7/2016", "Question": "A screenshot of a text exchange. ", "Response": "A recent text exchange:"}, {"Date": "1/7/2016", "Question": "What's the best class you've ever taken?", "Response": "The best class I've ever taken was"}, {"Date": "1/8/2016", "Question": "What talent do you wish you had?", "Response": "I've always wanted to be talented at"}, {"Date": "1/8/2016", "Question": "What's the weirdest thing you've ever eaten?", "Response": "The weirdest thing I've eaten is "}, {"Date": "1/8/2016", "Question": "Paste whatever's in your clipboard right now.", "Response": " |
View GIFPlayer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// GIFPlayer.h | |
// Byte | |
// | |
// Created by Dom Hofmann on 8/9/15. | |
// Copyright © 2015 Byte, Inc. All rights reserved. | |
// | |
#import "ByteObject.h" | |
#import <Cocoa/Cocoa.h> |
View commalist.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension SequenceType where Generator.Element == String { | |
func commaList() -> String { | |
var result = joinWithSeparator(", ") | |
let range = result.rangeOfString(", ", options: .BackwardsSearch) | |
result.replaceRange(range!, with: " & ") | |
return result | |
} | |
} |
View config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bridge": { | |
"name": "Homebridge", | |
"username": "CC:22:3D:E3:CE:30", | |
"port": 51826, | |
"pin": "031-45-154" | |
}, | |
"platforms": [ | |
{ | |
"platform" : "LiFxLAN", |
View organisations.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension GitKit { | |
public class func getMyOrganisations() -> Observable<[Organisation]> { | |
guard let organisationsURL = GitKit.currentUser.value?.organizationsUrl else { return Observable.just([]) } | |
return Alamofire.request(.GET, (organisationsURL)) | |
.rx_responseJSON() | |
.map { response, json in | |
guard let array = json as? [[String:AnyObject]] else { return [] } |
View AudioEngine.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AudioEngine.swift | |
// TPI | |
// | |
// Created by Stephen Radford on 29/05/2017. | |
// Copyright © 2017 Cocoon Development Ltd. All rights reserved. | |
// | |
import Foundation | |
import AudioKit |
View SampleCode.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SampleCode.xcconfig | |
// | |
// The `SAMPLE_CODE_DISAMBIGUATOR` configuration is to make it easier to build | |
// and run a sample code project. Once you set your project's development team, | |
// you'll have a unique bundle identifier. This is because the bundle identifier | |
// is derived based on the 'SAMPLE_CODE_DISAMBIGUATOR' value. Do not use this | |
// approach in your own projects—it's only useful for sample code projects because | |
// they are frequently downloaded and don't have a development team set. |
View Writer.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreServices | |
import ImageIO | |
class Writer { | |
let output = NSTemporaryDirectory().appending("output.heic") | |
lazy var outputUrl: CFURL = { | |
return URL(fileURLWithPath: output) as CFURL | |
}() |