Run this in your terminal to allow text selection in the QuickLook window:
defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder
| on isRunning(applicationName) | |
| tell application "System Events" | |
| set appNameIsRunning to exists ¬ | |
| (processes where name is applicationName) | |
| end tell | |
| return appNameIsRunning | |
| end isRunning | |
| on run {input, parameters} |
| Gist title: "List GitHub Projects Using jQuery" | |
| Summary: An example JavaScript program using jQuery to get a list of GitHub projects. | |
| Original source: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html |
| See the entry point in file "blti-launch.html". |
| analytic_sensor_id = "05D2D6AB-B9CE-4BAC-98FB-EB96F25F0D29" | |
| analytic_endpoint_url[localhost8000] = "http://localhost:8000/" | |
| analytic_api_key[localhost8000] = "snafu" | |
| analytic_endpoint_url[localhost9000] = "http://localhost:9000/" | |
| analytic_api_key[localhost9000] = "fubar" |
| <?php | |
| // Print stack trace, removing repeated absolute path on each file | |
| error_log(str_replace($_SERVER['DOCUMENT_ROOT'], '', (new Exception())->getTraceAsString())); |
| $('div.span2 span').each(function() { | |
| $span = $(this); | |
| $span.text($span.attr('title')); | |
| }); |
| <?php | |
| /** | |
| * Class JsonPlus | |
| */ | |
| class JsonPlus { | |
| /** | |
| * A wrapper for json_encode() with the ability to run a filter on the data first. | |
| * | |
| * @param mixed $value |
Run this in your terminal to allow text selection in the QuickLook window:
defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder
| # Adapted from http://superuser.com/a/568016/64151 | |
| # Add this function to .bash_profile, then use | |
| # "setjdk 1.7", "setjdk 1.8", or "setjdk" (to see current setting). | |
| function setjdk() { | |
| if [ $# -ne 0 ]; then | |
| function removeFromPath() { | |
| export PATH=$(echo $PATH | sed -E -e "s;:$1;;" -e "s;$1:?;;") | |
| } | |
| removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' |
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
java -version