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
from fontTools.misc.fixedTools import otRound | |
def findIntersection(p0, p1, p2, p3): | |
""" | |
Find the intersection of two segments given two selected points. | |
""" | |
# get the coordinates of the points | |
x0, y0 = p0.x, p0.y | |
x1, y1 = p1.x, p1.y | |
x2, y2 = p2.x, p2.y |
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
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |