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
/** | |
* Licensed to the Minutemen Group under one or more contributor license | |
* agreements. See the COPYRIGHT file distributed with this work for | |
* additional information regarding copyright ownership. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you | |
* may not use this file except in compliance with the License. You may | |
* obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
pacman -S python2 python2-setuptools libffi-devel openssh openssl openssl-devel gcc | |
easy_install-2.7 pip | |
# To get `pycrypto` compiled, we must comment out the line: | |
# #define __BSD_VISIBLE 1 | |
# in /usr/include/python2.7/pyconfig.h | |
# | |
# Otherwise it won't compile!!! | |
# See: http://cygwin.1069669.n5.nabble.com/python-2-7-12-pip-install-with-extensions-fails-with-warning-quot-BSD-VISIBLE-quot-redefined-td131045.html#a131120 |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Hack, Consolas, monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
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 java.net.InetSocketAddress | |
import com.typesafe.sbt.packager.Keys._ | |
import play.sbt.PlayImport.PlayKeys._ | |
import play.sbt.{ Play, PlayRunHook } | |
import sbt.Keys._ | |
import sbt._ | |
/** | |
* NPM plugin. |
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 scala.annotation.tailrec | |
object Math { | |
/** | |
* Calculates the `Best rational approximation` based on the Farey sequence. | |
* | |
* Translated from John D. Cook's Python implementation and David Weber's C++ modification. | |
* | |
* @see http://www.johndcook.com/blog/2010/10/20/best-rational-approximation/ |