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 | |
/** | |
* Get the HTTP Basic Auth information from the request. | |
* | |
* @param ServerRequestInterface $request | |
* | |
* @return array | |
*/ | |
function getBasicAuth(ServerRequestInterface $request): array |
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
set encoding=utf8 | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
set rtp+=/usr/local/opt/fzf | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' |
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
# Based on Evan's prompt | |
PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~ \$(git_prompt_info)%{${fg[blue]}%}#%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}<" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="> %{$reset_color%}" |
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 | |
function rgb($hex) | |
{ | |
[$r, $g, $b] = sscanf($hex, "#%02x%02x%02x"); | |
return [$r, $g, $b]; | |
} | |
function hsl($hex) |
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 | |
namespace App\Providers; | |
use App\Cache\DatabaseStore; | |
use Illuminate\Cache\CacheManager; | |
use Illuminate\Foundation\Application; | |
use Illuminate\Support\ServiceProvider; | |
class CacheServiceProvider extends ServiceProvider | |
{ |