Skip to content

Instantly share code, notes, and snippets.

🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
View GitHub Profile
View screencasting.py
#!/usr/env/bin python3
import signal
import sys
import dbus
from gi.repository import GLib, GObject
from dbus.mainloop.glib import DBusGMainLoop
import soundcard
View make-mentor.js
'use strict';
const { User } = require('./models');
/* eslint-disable no-console, no-await-in-loop */
async function main() {
for (const email of process.argv.slice(2)) {
const user = await User.getByEmail(email);
if (!user) {
console.error(email + ' is not a registered email. :(');
View 0001-for-in-loop.patch
From adafabcd57702bd2a73207962f81bdc94d5278de Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 25 Sep 2018 00:01:16 -0700
Subject: [PATCH] for-in loop
engine262/src/runtime-semantics/ForStatement.mjs
149:7 error 'BindingInstantiation_ForDeclaration' is not defined no-undef
169:18 error 'DestructuringAssignmentEvaluation_AssignmentPattern' is not defined no-undef
---
src/ast.mjs | 45 ++++-
View gist:09e984db9ddf72c9f37f29fd5ce1c483
diff --git a/src/completion.mjs b/src/completion.mjs
index 6a89ce4..dffb911 100644
--- a/src/completion.mjs
+++ b/src/completion.mjs
@@ -5,10 +5,10 @@ import {
import { New as NewValue } from './value.mjs';
// #sec-completion-record-specification-type
-export class Completion {
+class Completion {
View drawing.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:5eb111b5021b338d516e97225a65bed4
diff --git a/url.bs b/url.bs
index 6cb0f04..e49aa29 100644
--- a/url.bs
+++ b/url.bs
@@ -940,6 +940,138 @@ <h2 id=urls>URLs</h2>
for=/>URL</a> that was <a lt="URL serializer">serialized</a>.)
</ul>
+<div class=example>
+ <table>
View keybase.md

Keybase proof

I hereby claim:

  • I am TimothyGu on github.
  • I am timothygu (https://keybase.io/timothygu) on keybase.
  • I have a public key whose fingerprint is 9456 AFC0 814A 8139 E994 8351 7FE6 B095 B582 B0D4

To claim this, I am signing this object:

@TimothyGu
TimothyGu / index.js
Created Jul 11, 2018
Firefox #1475000
View index.js
"use strict";
const http = require("http");
const server = http.createServer((req, res) => {
if (req.url.includes("slow.js")) {
setTimeout(() => {
res.setHeader("Content-Type", "text/javascript");
res.end("void 0;");
}, 5000);
View gist:3554b5e93e7d78d5736ecbdc0bc4eea8
"g"
>>> {"id":16,"method":"Runtime.evaluate","params":{"expression":"this","objectGroup":"completion","includeCommandLineAPI":true,"silent":true,"contextId":1,"returnByValue":false,"generatePreview":false,"userGesture":false,"awaitPromise":false,"throwOnSideEffect":false}}
<<< {"id":16,"result":{"result":{"type":"object","className":"global","description":"global","objectId":"{\"injectedScriptId\":1,\"id\":9}"}}}
>>> {"id":17,"method":"Runtime.evaluate","params":{"expression":"g","includeCommandLineAPI":true,"contextId":1,"generatePreview":true,"userGesture":true,"awaitPromise":false,"throwOnSideEffect":true,"timeout":500}}
<<< {"id":17,"result":{"result":{"type":"object","subtype":"error","className":"ReferenceError","description":"ReferenceError: g is not defined\n at <anonymous>:1:1","objectId":"{\"injectedScriptId\":1,\"id\":10}"},"exceptionDetails":{"exceptionId":4,"text":"Uncaught","lineNumber":0,"columnNumber":0,"scriptId":"88","stackTrace":{"callFrames":[{"functionName":"","scriptId":"88","url":"
View gist:301c233d02acbca1d335f1a3d65eb79c
diff --git a/lib/internal/vm/Module.js b/lib/internal/vm/Module.js
index c7f90a83a3..806c7ae20f 100644
--- a/lib/internal/vm/Module.js
+++ b/lib/internal/vm/Module.js
@@ -32,6 +32,7 @@ const perContextModuleId = new WeakMap();
const wrapMap = new WeakMap();
const dependencyCacheMap = new WeakMap();
const linkingStatusMap = new WeakMap();
+const linkingStatusDeferredMap = new WeakMap();
You can’t perform that action at this time.