git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d
This file contains hidden or 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 rgbToHsl(int $r,int $g, int $b ) { | |
$oldR = $r; | |
$oldG = $g; | |
$oldB = $b; | |
$r /= 255; | |
$g /= 255; | |
$b /= 255; |
This file contains hidden or 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 | |
/* | |
* custom pagination with bootstrap .pagination class | |
* source: http://www.ordinarycoder.com/paginate_links-class-ul-li-bootstrap/ | |
*/ | |
function bootstrap_pagination( $custom_query = null, $echo = true ) { | |
global $wp_query; | |
$pagination = ''; |
function _exists (thing) {
const IS_UNDEFINED = 'undefined' === (typeof thing)
const IS_NULL = null === thing
if (IS_UNDEFINED || IS_NULL) return false
const TYPE = (typeof thing)
const IS_OBJECT = ('object' === TYPE)
const IS_STRING = ('string' === TYPE)
const IS_NUMBER = ('number' === TYPE)
#!/usr/bin/env bash
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
phpbrew --debug install 7.4 \
+default \
+dbs \
+openssl="$(brew --prefix openssl)" \
+bz2="$(brew --prefix bzip2)" \
echo $PATH | tr ":" "\n"
OlderNewer