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
class Opencv < Formula | |
desc "Open source computer vision library" | |
homepage "https://opencv.org/" | |
revision 1 | |
stable do | |
url "https://github.com/opencv/opencv/archive/3.3.1.tar.gz" | |
sha256 "5dca3bb0d661af311e25a72b04a7e4c22c47c1aa86eb73e70063cd378a2aa6ee" | |
# Upstream commit 8 Nov 2017 "cmake: fix pkg-config generation for MacOSX" |
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
# git alias | |
alias gitclean='git checkout master && git reset --hard origin/master && git pull && git submodule update' | |
# sublime | |
alias subl="open -a 'Sublime Text'" | |
alias subl.="subl ." | |
# Quicker navigation | |
alias ..='cd ..' |
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
/* | |
value String | |
children []Node | |
*/ | |
function Node(value, children) { | |
self.value = value; | |
self.children = children; | |
} | |
/* | |
root Node |
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 | |
public protocol KDLayoutConstraint { | |
var view: UIView { get } | |
var attribute: NSLayoutAttribute { get } | |
} | |
public protocol KDLayoutAnchor { | |
/* These methods return an inactive constraint of the form thisAnchor = otherAnchor + constant. */ | |
func constraintEqualToAnchor(anchor: KDLayoutAnchor, constant c: CGFloat) -> NSLayoutConstraint |
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
// Example Hammer 1.x code: | |
var body = document.getElementsByTagName('body')[0]; | |
var armAndHammer = new Hammer(body, options); | |
armAndHammerr.on('tap', tapEvent(ev)); | |
function tapEvent (ev) { | |
var touchEl; // dom element which you want to act on | |
if (ev.target === tocuhEl) { | |
handleTapEvent(); // what you actally want to do on tap |