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
#!/usr/bin/env node | |
'use strict'; | |
/* | |
#!/bin/bash | |
# | |
# Wrapper script for git mergetool | |
# This requires ~/.gitconfig file to have | |
# the following (adjusting for paths): | |
# | |
# [merge] |
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
Object.prototype.forEach = function(callback) { | |
var key = 0; | |
for (key in this) { | |
if (this.hasOwnProperty(key)) { | |
if (callback.call(this, key, this[key]) === false) { | |
break; | |
} | |
} | |
} | |
return this; |
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
// | |
// UIImage+FailFast.h | |
// | |
// Created by Jason Jarrett on 2/11/15. | |
// Copyright (c) 2015 Jason Jarrett. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIImage (FailFast) |
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
var recursivelyOrderKeys = function(unordered) { | |
// If it's an array - recursively order any | |
// dictionary items within the array | |
if (Array.isArray(unordered)) { | |
unordered.forEach(function (item, index) { | |
unordered[index] = recursivelyOrderKeys(item); | |
}); | |
return unordered; | |
} |
OlderNewer