Skip to content

Instantly share code, notes, and snippets.

View dinhoabreu's full-sized avatar

Edison E. Abreu dinhoabreu

View GitHub Profile
@dinhoabreu
dinhoabreu / fwhois
Last active October 31, 2015 14:28
Whois formatter
#!/usr/bin/env php
<?php
function get(&$map, $pkeys, $default = '') {
$keys = explode('|', $pkeys);
foreach ($keys as $key) {
if (isset($map[$key])) {
return $map[$key];
}
}
@dinhoabreu
dinhoabreu / mocha-behavior.js
Created September 23, 2015 10:18
Mocha behavior
describe('Behavior mocha', function () {
before(function () {
console.log('++++> before');
});
after(function () {
console.log('++++> after');
});