- version 3.6
Check those constraints:
$this->anything()
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
As configured in my dotfiles.
start new:
tmux
start new with session name:
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:16px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script> |
# Given | |
Given I am on [the] homepage | |
Given I am on "url" | |
# When | |
When I go to [the] homepage | |
When I go to "url" | |
When I reload the page |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu-14.04" | |
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box" | |
config.vm.network :forwarded_port, guest: 80, host: 8888 |
<?php | |
function benchmark($name, $iterations, Closure $function) | |
{ | |
echo "Starting Benchmark: {$name} (".number_format($iterations)." Iterations)\n"; | |
$start = microtime(true); | |
for ($i = 0; $i < $iterations; $i++) { | |
$function(); | |
} | |
$elapsed = microtime(true) - $start; |
#!/bin/bash | |
apt-get update | |
#Additional Packages | |
apt-get install -y cifs-utils winbind smbclient bindfs gvfs gvfs-bin keyutils unzip php5-ldap php5-mssql zsh | |
wget --no-check-certificate http://install.ohmyz.sh -O - | sh | |
chsh vagrant -s /bin/zsh |
#!/bin/bash | |
GIT_REPO_URL=$(git config --get remote.origin.url) | |
mkdir .deploy | |
cp -R ./* .deploy | |
cd .deploy | |
git init . | |
git remote add github $GIT_REPO_URL | |
git checkout -b gh-pages | |
git add . |