Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
var suffix = function(n) { | |
var d = (n|0)%100; | |
return d > 3 && d < 21 ? 'th' : ['th', 'st', 'nd', 'rd'][d%10] || 'th'; | |
}; | |
// suffix(1) => "st" | |
// suffix(102) => "nd" | |
// suffix(113) => "th" |
<?php | |
/** | |
* | |
* Origin: http://forums.steampowered.com/forums/showthread.php?t=1430511 | |
* | |
* @package Steam Community API | |
* @copyright (c) 2010 ichimonai.com | |
* @license http://opensource.org/licenses/mit-license.php The MIT License | |
* |
/** | |
* @author Juliano Castilho <julianocomg@gmail.com> | |
*/ | |
var React = require('react'); | |
var AffixWrapper = React.createClass({ | |
/** | |
* @type {Object} | |
*/ | |
propTypes: { |
This is a simple launchd config that will start your default
docker-machine on startup. You can customize the machine that is started by updating lines 11 and 16 with the correct machine name.
com.docker.machine.default.plist
below to ~/Library/LaunchAgents/com.docker.machine.default.plist
.launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
subprojects { | |
ext { | |
compileSdk = 25 | |
buildTools = "25.0.1" | |
minSdk = 19 | |
targetSdk = 25 | |
} | |
afterEvaluate { project -> | |
if (!project.name.equalsIgnoreCase("app") |