Run this in your terminal to allow text selection in the QuickLook window:
defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder
<?php | |
class SplEnumPlus extends \SplEnum { | |
static function hasKey($key) { | |
$foundKey = false; | |
try { | |
$enumClassName = get_called_class(); | |
new $enumClassName($key); | |
$foundKey = true; | |
} finally { |
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
---------- Forwarded message ---------- | |
From: Mark S. Miller <erights@google.com> | |
Date: Tue, Nov 16, 2010 at 3:44 PM | |
Subject: "Future of Javascript" doc from our internal "JavaScript Summit" | |
last week | |
To: javascript-standard@google.com | |
On November 10th and 11th, a number of Google teams representing a variety | |
of viewpoints on client-side languages met to agree on a common vision for | |
the future of Javascript. |
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
# Very simple class just to represent some business logic implementation | |
# which has nothing to do with the UI or any caller that uses this class. | |
class HelloWorldImpl(): | |
def __init__(self): | |
pass | |
def sayHelloWorld(self): | |
print 'Hello World from Sheldon Wosnick' | |
def sayGoodbyeWorld(self): |