most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
<?php | |
class BitwiseTester | |
{ | |
/** | |
* | |
* @var int | |
*/ | |
protected $flags = 0; | |
http://nvie.com/posts/a-successful-git-branching-model/ |
<?php | |
/** | |
* FinalKeywordIgnoredInTrait.php | |
* | |
* PHP 5.4.13 (cli) (built: Mar 15 2013 02:05:59) | |
* Copyright (c) 1997-2013 The PHP Group | |
* Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies | |
* with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans | |
* | |
* @link https://bugs.php.net/bug.php?id=62204 |
<?php | |
/** | |
* This class can add WSSecurity authentication support to SOAP clients | |
* implemented with the PHP 5 SOAP extension. | |
* | |
* It extends the PHP 5 SOAP client support to add the necessary XML tags to | |
* the SOAP client requests in order to authenticate on behalf of a given | |
* user with a given password. | |
* |
<?php | |
/** | |
* Transforms an under_scored_string to a camelCasedOne | |
*/ | |
function camelize($scored) { | |
return lcfirst( | |
implode( | |
'', | |
array_map( |
/** | |
* Mocking browser local storage | |
* @see http://stackoverflow.com/questions/11485420/how-to-mock-localstorage-in-javascript-unit-tests | |
*/ | |
var mockLocalStorage = function() { | |
var storage = {}; | |
return { | |
setItem: function(key, value) { | |
storage[key] = value || ''; |
define(['can', 'localCache'], function(can, localCache) { | |
'use strict'; | |
describe('storeLocal()', function() { | |
var sandbox; | |
beforeEach(function() { | |
// create sandbox environment for mocking about | |
sandbox = sinon.sandbox.create(); | |
}); |
#!/bin/bash | |
sudo route -n add 172.17.0.0/16 `docker-machine ip default` | |
netstat -nr |grep 172\.17 |