Skip to content

Instantly share code, notes, and snippets.

@naugtur
naugtur / extending_objects.js
Created May 31, 2012 16:28
In response a proposal of object.{} published by Rick Waldron
//Refering this:
// https://t.co/GG2VK8Gf
// It would be enough to add a native method to do that,
//I don't feel adding new idioms to language is worth doing in this case.
//Idea posted in Rick's poll
document.createElement("div").{
// Set the new div's display content
@naugtur
naugtur / regression-test.js
Created August 26, 2014 08:51
regressin in xhr
//put all dependencies inplace, install beefy and run `beefy thisfile`
var oldxhr = require("./x1.14.1.js");
var newxhr = require("./x1.15.0.js");
var opts = {
"method": "GET",
"url": "https://naugtur.egnyte.com/pubapi/v1/fs/Private/naugtur/foo"
}
@naugtur
naugtur / dart.md
Last active August 29, 2015 14:17 — forked from paulmillr/dart.md

---------- Forwarded message ----------

From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
@naugtur
naugtur / gist:debd90d75e37fc514695
Last active August 29, 2015 14:21
Code review best practises and notes
@naugtur
naugtur / replace.js
Created February 22, 2016 10:34
string multireplace not regexp
function replaceSubstring(inSource, inToReplace, inReplaceWith) {
var outString = [];
var repLen = inToReplace.length;
var idx = inSource.indexOf(inToReplace);
while (idx !== -1) {
outString.push(inSource.substring(0, idx))
outString.push(inReplaceWith);
inSource = inSource.substring(idx + repLen);
idx = inSource.indexOf(inToReplace);
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:00
wg-meeting-bot generated meeting minutes

hi

@naugtur
naugtur / minutes.md
Last active July 10, 2017 20:00
wg-meeting-bot generated meeting minutes
# WG Meeting 6/2017
*diag-agenda*

## Agenda

* Integrate C++ AsyncHooks Embedder API with native abstraction [node#13254](https://github.com/nodejs/node/issues/13254)
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:01
wg-meeting-bot generated meeting minutes
# WG Meeting 6/2017
*diag-agenda*

## Agenda

* Integrate C++ AsyncHooks Embedder API with native abstraction [node#13254](https://github.com/nodejs/node/issues/13254)
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:01
wg-meeting-bot generated meeting minutes
# WG Meeting 6/2017
*diag-agenda*

## Agenda

* Integrate C++ AsyncHooks Embedder API with native abstraction [node#13254](https://github.com/nodejs/node/issues/13254)
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:02
wg-meeting-bot generated meeting minutes
# WG Meeting 6/2017
*diag-agenda*

## Agenda

* Integrate C++ AsyncHooks Embedder API with native abstraction [node#13254](https://github.com/nodejs/node/issues/13254)
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29