Accompanying blog post:
Splitting a Python codebase into dependencies for fun and profit
Based on:
export LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" | |
export CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include" | |
xcode-select --install | |
brew update | |
brew upgrade | |
brew install zlib | |
pyenv install 3.7.1 | |
pyenv global 3.7.1 |
<?php | |
/** | |
* Remove API Endpoints | |
* | |
* Clobber API routes to remove them from public access. | |
*/ | |
function remove_wp_json_api_endpoints($endpoints) { | |
$toRemove = array( | |
"/oembed/1.0/embed", | |
"/wp/v2/users", |
Accompanying blog post:
Splitting a Python codebase into dependencies for fun and profit
Based on:
#chromeperfectpixel-panel button { | |
padding: 0.7em; | |
border-radius: 0 !important; | |
background: #dedede !important; | |
} | |
#chromeperfectpixel-panel #chromeperfectpixel-panel-header { | |
height: 33px !important; | |
background: #dedede !important; | |
} |
cd /usr/local | |
sudo chown -R `whoami`:admin ./ | |
git reset --hard | |
git clean -fd | |
cd ~ | |
brew update |
from fabric.api import env | |
env.use_ssh_config = True | |
env.forward_agent = True | |
env.roledefs = { | |
# key # hostname from config | |
'foo': ['foo.production'], | |
} |
//Wait for relevant code bits to load before starting any tests | |
define(['core.js'], function( core ) { | |
module("Core Tests"); | |
test("Test core methods", function(){ | |
expect(2); | |
equals( 1, 1, "A trivial test"); | |
ok( true, "Another trivial test"); | |
}); |
var fb = { | |
fbArr:['','','Fizz','','Buzz','Fizz','','','Fizz','Buzz','','Fizz','','','FizzBuzz'], | |
next:function(){ | |
var index = this.count(); | |
var total = this.total(); | |
console.log(total + ':' + this.fbArr[index]) | |
}, | |
count:function(){ | |
if(typeof(arguments.callee.index) == 'undefined')arguments.callee.index =-1; | |
arguments.callee.index ++; |