This file contains 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 | |
# A modification of Dean Clatworthy's deploy script as found here: https://github.com/deanc/wordpress-plugin-git-svn | |
# The difference is that this script lives in the plugin's git repo & doesn't require an existing SVN repo. | |
# main config | |
PLUGINSLUG="camptix-payfast-gateway" | |
CURRENTDIR=`pwd` | |
MAINFILE="camptix-payfast.php" # this should be the name of your main php file in the wordpress plugin | |
# git config |
This file contains 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
<p class="beginner-banner" style=" | |
border-color: #5BC0DE; | |
background: #F4F8FA; | |
border-left: 3px solid #5BC0DE; | |
padding: 1em; | |
font-weight: bold; | |
color: #5BC0DE; | |
">Anfänger</p> | |
<p class="advanced-banner" style=" |
This file contains 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
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'ubuntu/trusty64'... | |
Progress: 90% | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'ubuntu/trusty64' is up to date... | |
==> default: Setting the name of the VM: wordpress-vagrant_default_1400506899365_45722 | |
==> default: Clearing any previously set forwarded ports... | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... |
This file contains 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
wget -k -r -np http://www.gnu.org/software/octave/doc/interpreter/ |
This file contains 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
%% Levenstein Distance: calculate levenstein distance with matrix | |
function [distance] = levenstein_distance(x, y, output = 0) | |
% initialization | |
ma = zeros( size(y,2)+1, size(x,2)+1 ); | |
ma(1,:) = [0:size(x,2)]; | |
ma(:,1) = [0:size(y,2)]; | |
for i=2:size(ma,1) | |
for j=2:size(ma,2) | |
ma(i,j) = min( [ ma(i,j-1)+1, ma(i-1,j)+1, ma(i-1,j-1)+1- (y(i-1)==x(j-1)) ] ); |
This file contains 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
$ defaults write com.apple.dock persistent-apps -array-add '{ "tile-type" = "spacer-tile"; }' | |
$ killall Dock |
This file contains 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
# Ignore case while completing | |
set completion-ignore-case on | |
# Make Bash 8bit clean | |
set meta-flag on | |
set convert-meta off | |
set output-meta on |
This file contains 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
The function will not be run in future, but you can run | |
it yourself as follows: | |
autoload -Uz zsh-newuser-install | |
zsh-newuser-install -f |
This file contains 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
<?php | |
abstract class Pizza { | |
protected $pizzaria; | |
function __construct( $impl ) { | |
$this->pizzaria = $impl; | |
} | |
abstract public function getCosts(); | |
abstract public function getRecipe(); |
This file contains 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
traceroute -m 60 216.81.59\.173 |