#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
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 | |
if(!empty($items)): | |
$item = array_shift($items); | |
$model = (object)$item->model; | |
?> | |
<pubDate><?php echo date("D, d M Y H:i:s O", $model->meta['publish_date']); ?></pubDate> | |
<?php endif; ?> |
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
:#: :+##' | |
###### +#######. +###################:' | |
'######## .##################, +##########################'. | |
#####+ ############+ :########### :: .:############+ | |
####: #####'. ', ,####' ' .'######, | |
###: ##: ##+ ;##+ | |
##, ;## ## ,## ;### | |
'## ### +' #### | |
### ### '. + '###'''+##### |
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
### Vice ASCII | |
echo " :#: :+##' "; | |
echo " ###### +#######. +###################:' "; | |
echo " '######## .##################, +##########################'. "; | |
echo " #####+ ############+ :########### :: .:############+"; | |
echo " ####: #####'. ', ,####' ' .'######,"; | |
echo " ###: ##: ##+ ;##+ "; | |
echo " ##, ;## ## ,## ;### "; | |
echo " '## ### +' #### "; | |
echo " ### ### '. + '###'''+##### "; |
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
<p> | |
Morbi in nibh sit amet urna tincidunt cursus commodo sed urna. Nam tristique diam erat, et lacinia nunc lobortis id. Duis laoreet tortor arcu, sollicitudin molestie erat tempus non. Suspendisse eu facilisis erat, id maximus massa. Donec tincidunt rutrum enim, quis hendrerit tellus eleifend quis. Quisque condimentum malesuada lectus sit amet vulputate. Sed sagittis consequat quam, in ultricies tortor tristique eget. | |
</p> | |
<p> | |
<strong>Quote:</strong> | |
</p> | |
<blockquote> | |
Etiam rutrum odio nibh, in feugiat lectus sagittis quis. Phasellus suscipit porta ante, ac placerat nulla fringilla at. | |
</blockquote> | |
<p> |
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
alias gc="git checkout" | |
alias gcb="git checkout -b" | |
alias gf="git fetch" | |
alias gp="git pull" | |
alias gs="git status" | |
alias gpo="git push origin" | |
alias addall="git add -A" | |
alias commitit="git commit -am" | |
alias pushit="git push origin head" | |
alias grc="git rebase --continue" |
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
// masterlist = masterlist.sort((a,b) => a.value > b.value ? 1 : a.value < b.value ? -1 : 0 ); |
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
var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' + | |
'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' + | |
'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' + | |
': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));'; | |
try { | |
eval(str); | |
} catch(e) { | |
alert('Your browser does not support ES6!') | |
} |
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
/** | |
* Sanitize Request variables | |
*/ | |
public function sanitize($input) { | |
foreach ($input as $key => $value) { | |
if ($value) { | |
$input[$key] = filter_var($input[$key], FILTER_SANITIZE_STRING); | |
$input[$key] = preg_replace('/[^a-z0-9]/i', '', $input[$key]); | |
} | |
} |
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
function findRooms() { | |
var availableRooms = []; | |
var rooms = io.sockets.adapter.rooms; | |
if (rooms) { | |
for (var room in rooms) { | |
if (!rooms[room].hasOwnProperty(room)) { | |
availableRooms.push(room); | |
} | |
} | |
} |