Skip to content

Instantly share code, notes, and snippets.

@jakzale
jakzale / keybase.md
Created August 12, 2019 17:56
Keybase verification gitst

Keybase proof

I hereby claim:

  • I am jakzale on github.
  • I am jakzale (https://keybase.io/jakzale) on keybase.
  • I have a public key ASAKZwzT1EqoA1jDiiaOJrP59XcYbZSFg_Md8GgSZBJQ6Qo

To claim this, I am signing this object:

@jakzale
jakzale / listAll.js
Created November 2, 2016 17:58
List All links on a web page
(function (){
var aTags = document.getElementsByTagName("a");
var aTagsArray = [].slice.call(aTags);
aTagsArray.map(function (a) {
var result = "#";
if (a.getAttribute) {
result = a.getAttribute("href") || result;
}
return result;
}).filter(function (link) {
@jakzale
jakzale / harmony.patch
Last active May 5, 2020 09:18
Patching node to enable harmony features by default
diff -rupN original/src/node.cc new/src/node.cc
--- original/src/node.cc 2014-10-23 18:45:12.000000000 +0100
+++ new/src/node.cc 2014-10-28 17:14:46.000000000 +0000
@@ -2939,6 +2939,10 @@ char** Init(int argc, char *argv[]) {
constraints.set_stack_limit(stack_limit);
SetResourceConstraints(&constraints); // Must be done before V8::Initialize
}
+
+ // Turning Harmony Features always on by default
+ V8::SetFlagsFromString("--harmony", sizeof("--harmony") - 1);