Skip to content

Instantly share code, notes, and snippets.

@jacekk
jacekk / compiled.js
Created February 10, 2017 17:33
typescript casting and typehinting
// 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) {

Whip

(print (unwords (reverse ("DevDay" "<3" "Community"))))

Factor

{ "&lt;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