Skip to content

Instantly share code, notes, and snippets.

View dshafik's full-sized avatar
💫
Available for Hire!

Davey Shafik dshafik

💫
Available for Hire!
View GitHub Profile
<?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;

Keybase proof

I hereby claim:

  • I am dshafik on github.
  • I am davey (https://keybase.io/davey) on keybase.
  • I have a public key whose fingerprint is 971C 3240 6A3F 4EA6 777D CC77 0213 0706 2FE8 ED4C

To claim this, I am signing this object:

@dshafik
dshafik / README
Last active August 29, 2015 14:00 — forked from dcousineau/README
Download Box Here: https://s3.amazonaws.com/dcousineau/vagrant/foundations.v0.box
Also On Vagrantcloud: https://vagrantcloud.com/dcousineau/lsp-foundations/version/1

Keybase proof

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:

{
"swagger": "2.0",
"info": {
"version": "2.0.0",
"title": "UrbanCrawl API"
},
"basePath": "/api/v2",
"paths": {
"/cities": {
"get": {
@dshafik
dshafik / BagValue.php
Created May 19, 2024 01:40
Simple Artisan Command for Benchmarking dshafik/bag against spatie/laravel-data
<?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;
@dshafik
dshafik / .zshrc
Last active August 20, 2024 15:30
Terminal Nirvana
# 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