I hereby claim:
- I am fgm on github.
- I am fgm (https://keybase.io/fgm) on keybase.
- I have a public key whose fingerprint is 134F 30CA B7AE 45B8 E50E 7756 EC88 8C26 7F6E 6384
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Homebrew build logs for homebrew/php/php70 on macOS 10.12.1 | |
Build date: 2016-10-28 14:44:32 |
Homebrew build logs for homebrew/php/php70 on macOS 10.12.1 | |
Build date: 2016-10-28 14:44:32 |
<?php | |
/** | |
* @file | |
* gvdump.php | |
* | |
* @author: Frédéric G. MARAND <fgm@osinet.fr> | |
* | |
* @copyright (c) 2014 Ouest Systèmes Informatiques (OSInet). | |
* | |
* @license MIT |
<?php | |
// Place in (module)/src/Commands | |
namespace Drupal\rdcm\Commands; | |
use Drush\Commands\DrushCommands; | |
use Robo\Common\OutputAwareTrait; | |
use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
use Symfony\Component\Yaml\Yaml; |
// From 1.1.03 packages/tinytest/tinytest.js | |
test._stringEqual(actual, expected, message) // Source comment: EXPERIMENTAL nicer (multiline) string display in runner | |
test.equal(actual, expected, message, not) // Source comment: "XXX eliminate 'message' and 'not' arguments" | |
/* Call this to fail the test with an exception. Use this to record exceptions | |
* that occur inside asynchronous callbacks in tests. It should only be used | |
* with asynchronous tests, and if you call this function, you should make | |
* sure that | |
* (1) the test doesn't call its callback (onComplete function); | |
* (2) the test function doesn't directly raise an exception. | |
*/ |
console.log(Object.keys(Package).sort().map(x => ({ [x]: Object.keys(Package[x]).sort(), }))) | |
/* | |
Main use case: finding the name of the actual services available when you decide to adopt a | |
dependency injection pattern, especially with TypeScript, and import every needed package | |
instead of relying on the global availability provided by the Meteor runtime for /some/ of them. | |
*/ |
const nodes = document.body.getElementsByTagName('*'); | |
const styles = {}; | |
for (const node of nodes) { | |
const s = getComputedStyle(node); | |
if (!styles[s.fontFamily]) { | |
styles[s.fontFamily] = {}; | |
} | |
if (!styles[s.fontFamily][s.fontWeight]) { |
function duplicateLinks(document) { | |
const elements = Array.from(document.body.getElementsByTagName('a')); | |
const linkElements = elements.filter((node, index) => { | |
const href = node.getAttribute('href'); | |
const isRemote = href && href.match(/^http/); | |
if (isRemote) { | |
return true; | |
} | |
}); |
/** | |
* List the hosts referenced on a HTML page. | |
* | |
* Licence: MIT. | |
*/ | |
a = {}; | |
document.querySelectorAll("a[href],[src]").forEach((v, k) => { | |
const raw = v.getAttribute("href") || v.getAttribute("src"); | |
if (raw[0] !== "h") { |