This file contains hidden or 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
if (JavaVersion.current().isJava8Compatible()) { | |
allprojects { | |
tasks.withType(Javadoc) { | |
options.addStringOption('Xdoclint:none', '-quiet') | |
} | |
} | |
} |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
# Simple, light-weight data binding using jQuery. | |
# | |
# | |
# Allows bi-directional data binding of DOM elements and/or JS objects. | |
# | |
# A dom element with [data-bind="key"], and it will publish changes | |
# and subscribe to changes from other elements bound to the same key. | |
# | |
# <input id="first_name" type="text" data-bind="firstname"/> | |
# |
This file contains hidden or 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/bash | |
if test ! $(which brew) | |
then | |
echo " Installing Homebrew for you." | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" > /tmp/homebrew-install.log | |
fi | |
# brew packages | |
brew install openssl libyaml gnutls git rbenv ruby-build tree blueutil gmp imagemagick wget coreutils hub z grc spark |
This file contains hidden or 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
# first install blueutil, 'brew install blueutil' | |
# next create a new Keyboard Maestro macro | |
# add a Execute Shell Action action to script and paste in the following: | |
bluetooth=$(/usr/local/bin/blueutil) | |
is_on="Power: 1" | |
if [[ "$bluetooth" =~ "$is_on" ]]; | |
then | |
/usr/local/bin/blueutil power 0 | |
else |