Skip to content

Instantly share code, notes, and snippets.

View juliandescottes's full-sized avatar

Julian Descottes juliandescottes

View GitHub Profile
@juliandescottes
juliandescottes / gist:880502229e3be5b34d1e
Created January 7, 2016 15:00
Firefox profile manager OSX
/Applications/Firefox.app/Contents/MacOS/firefox-bin --ProfileManager
@juliandescottes
juliandescottes / gist:26d9cd26394c41b60be9
Created January 20, 2016 20:51
Regexp : fix indentation
(\n(?: {2})+) ([^\s])
$1$2
function* testYield() {
console.log("#1");
yield new Promise(r => setTimeout(r, 2000));
console.log("#2");
yield new Promise(r => setTimeout(r, 2000));
console.log("#3");
return;
try: -b do -p linux,linux64,macosx64,win32,win64 -u mochitests,mochitest-e10s-1,mochitest-e10s-2,mochitest-e10s-3,mochitest-e10s-4,mochitest-e10s-5,mochitest-e10s-browser-chrome-1,mochitest-e10s-browser-chrome-2,mochitest-e10s-browser-chrome-3,mochitest-e10s-browser-chrome-4,mochitest-e10s-browser-chrome-5,mochitest-e10s-browser-chrome-6,mochitest-e10s-browser-chrome-7,mochitest-e10s-devtools-chrome -t none
@juliandescottes
juliandescottes / gist:169f3a57e1441542565b
Last active May 24, 2019 15:39
Devtools file loading
╔═════════════════════════════════════════════════════════════════════════════════╗
║ How to load/import a file in Firefox Devtools ? ║
╚═════════════════════════════════════════════════════════════════════════════════╝
╔════════════════════════╗
║ SYNC FILE LOADING ║
╚════════════════════════╝
┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┌───────────────────────────────┐
@juliandescottes
juliandescottes / randomColors.js
Last active March 21, 2016 00:18
Fill current sprite with random colors
var rand = function (base) {
base = base || 1;
return (Math.random() * base) | 0;
};
var pad = function (str) {
if (str.length == 1) {
return "0" + str;
}
return str;
cf http://stackoverflow.com/questions/5501804/easiest-way-to-split-a-change-set-in-mercurial
- hg histedit / edit
- hg record
- hg histedit --continue
transparent linear-gradient(0deg, blue, red, green 40%, blue, red, blue, red, blue, red, gold) repeat scroll 0% 0%
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/**
* Tests if Copy as cURL works.
*/
const EXPECTED_POSIX_RESULT = [