module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Build HTML from templates and data
assemble: {
options: {
flatten: true,
assets: 'dist/assets',
partials: ['templates/includes/*.hbs'],
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 Foundation | |
class MyService: NSObject, MyServiceProtocol { | |
func upperCaseString(_ string: String, withReply reply: @escaping (String) -> Void) { | |
let response = string.uppercased() | |
reply(response) | |
} | |
} |
To clean up git, run:
git remote prune origin; git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d
If it doesn't like that because it thinks the repo is not there, change the remote from http://github.com
to http://[email protected]
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
public protocol KeyPathComponent { } | |
extension String: KeyPathComponent { } | |
extension Int: KeyPathComponent { } | |
public protocol KeyPathAccessible { | |
func value<T>(at component: KeyPathComponent) -> T? | |
} | |
extension KeyPathAccessible { |