I hereby claim:
- I am dshafik on github.
- I am davey (https://keybase.io/davey) on keybase.
- I have a public key ASDw4CoRcb2uwfh0DlHrWlBXKlgzMmXy1kgsj8-XkIH04wo
To claim this, I am signing this object:
# Setup ENV | |
FZF_TAB_PLUGIN=$HOME/src/fzf-tab/fzf-tab.plugin.zsh | |
BREW_PREFIX="$(brew --prefix)" | |
# Enable brew zsh-completions | |
if type brew &>/dev/null; then | |
FPATH=${BREW_PREFIX}/share/zsh-completions:$FPATH | |
autoload -U compinit | |
compinit |
<?php | |
namespace App\Values; | |
use Bag\Attributes\Cast; | |
use Bag\Attributes\MapInputName; | |
use Bag\Attributes\MapName; | |
use Bag\Attributes\Validation\Integer; | |
use Bag\Attributes\Validation\Required; | |
use Bag\Bag; |
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "2.0.0", | |
"title": "UrbanCrawl API" | |
}, | |
"basePath": "/api/v2", | |
"paths": { | |
"/cities": { | |
"get": { |
$(function() { | |
var viewer = new Akamai.Viewer($('#viewer')[0], { | |
magnifier: { | |
placement: "flyoutloupe", | |
delay: 0, | |
button: false | |
}, | |
items: { | |
hostnames: ["developer.akamai.com"], | |
uri: 'https://developer.akamai.com/product.imviewer?imcollection=image-manager-example' |
I hereby claim:
To claim this, I am signing this object:
Download Box Here: https://s3.amazonaws.com/dcousineau/vagrant/foundations.v0.box | |
Also On Vagrantcloud: https://vagrantcloud.com/dcousineau/lsp-foundations/version/1 |
I hereby claim:
To claim this, I am signing this object:
<?php | |
// Just run the script and start typing asap. Hit enter to get a calculation. | |
$start = microtime(true); | |
$read = fgets(STDIN); | |
$end = microtime(true); | |
echo substr_count($read, " ") . " words in " . ($end - $start) . " seconds" . PHP_EOL; |
#!/usr/bin/env php | |
<?php | |
if (!isset($_SERVER['argv'][1])) { | |
echo "Usage: {$_SERVER['argv'][0]} <filename>" . PHP_EOL; | |
exit; | |
} | |
$tokens = token_get_all(file_get_contents($_SERVER['argv'][1])); | |
foreach ($tokens as $token) { | |
if (is_integer($token[0])) { |
<?php | |
namespace Application; | |
use Zend\Mvc\ModuleRouteListener; | |
use Zend\Mvc\MvcEvent; | |
class Module { | |
public function onBootstrap(MvcEvent $e) | |
{ | |
$eventManager = $e->getApplication()->getEventManager(); |