(print (unwords (reverse ("DevDay" "<3" "Community"))))
{ "<3" "DevDay" } "Community" prefix " " join .
# Installation guide found here: http://www.phing.info/docs/guide/stable/ | |
// First add PHP Pear | |
sudo apt-get install php-pear | |
// Adding Pear Channel | |
sudo pear channel-discover pear.phing.info | |
// Installing Pear | |
pear install phing/phing |
// tsc 2.1.5 | |
console.log('-- typehinting --'); | |
var isTooShort = function (phrase) { | |
return phrase.trim().length < 3; | |
}; | |
var safeExec = function (funcArg) { | |
try { | |
console.log(isTooShort(funcArg)); | |
} | |
catch (ex) { |
Object.keys(window).filter(function(x) { | |
return window[x] instanceof Function && !/\[native code\]/.test(window[x].toString()); | |
}); |
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r |
const assocArray = ['zero', 'one', 2, 3, 4]; | |
assocArray['five'] = 5; | |
assocArray[7] = 'seven'; | |
const plainObj = { | |
zero: '0', | |
one: '1', | |
2: 'two', | |
4: 4, | |
5: 'fifth', |
$ node ./test-imports.js | |
Ghost created | |
Ghost says: x | |
Ghost says: a | |
Ghost says: b | |
Ghost says: c |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>RQ debug</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> </div> |
#!/bin/bash | |
# Usage: ./s3-remove-old-files "bucket-name" "nested-path" 1000 | |
if [ ! "$1" ]; then | |
echo "1st arg (bucket name) NOT specified !!" | |
exit 1 | |
fi | |
if [ ! "$2" ]; then | |
echo "2nd arg (bucket sublocations) NOT specified !!" |
// Implementation in ES6 | |
function pagination(c, m) { | |
var current = c, | |
last = m, | |
delta = 2, | |
left = current - delta, | |
right = current + delta + 1, | |
range = [], | |
rangeWithDots = [], | |
l; |