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
#!/bin/bash | |
chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
url=$1 | |
regex="^https?://" | |
if [[ ! $url =~ $regex ]]; then | |
url="http://$url" | |
fi |
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 🏠\🚕; | |
class 🍎 | |
{ | |
protected $📌; | |
public function __construct($📌) | |
{ | |
$this->📌 = $📌; |
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
$('.repository-content, .container').css('width', 'auto'); | |
$('.repository-content').css('float', 'none'); | |
$('.container').css('margin', '0px 20px'); | |
$('.repository-sidebar').hide(); | |
$('.repo-label').css('position', 'static'); |
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
#!/bin/sh | |
curl -L -o /dev/null -s -w " Seconds (cumulative) | |
Name lookup: %{time_namelookup} | |
Connect: %{time_connect} | |
Pre-transfer: %{time_pretransfer} | |
Start transfer: %{time_starttransfer} | |
Redirect: %{time_redirect} (if applicable) | |
===== | |
Total: %{time_total} | |
" $1 |
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
defaults write com.apple.dock pinning -string start|middle|end | |
killall Dock |
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 | |
$array = array(0,1,2,3); | |
foreach ($array as &$val) { | |
$val = $val + 1; | |
} | |
print_r($array); | |
foreach ($array as $foo) { | |
echo $foo; |
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 | |
$strings = array( | |
"\n" | |
); | |
if (!isset($argv[1])) | |
{ | |
die("Please specify an input file\n"); | |
} |