Skip to content

Instantly share code, notes, and snippets.

// node_modules/parcel-bundler/src/assets/TypeScriptAsset.js
const Asset = require('../Asset');
const localRequire = require('../utils/localRequire');
const isAccessedVarChanged = require('../utils/isAccessedVarChanged');
const fs = require('fs');
class TypeScriptAsset extends Asset {
constructor(name, options) {
super(name, options);
this.type = 'js';
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@Awk34
Awk34 / index.html
Created December 19, 2016 18:30 — forked from will-russell/index.html
Apply vs. Call for function (https://jsbench.github.io/#9cca0d3627369c62441578d3066b386f) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Apply vs. Call for function</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@Awk34
Awk34 / index.html
Last active December 15, 2016 21:55
Untitled benchmark #jsbench #jsperf (https://jsbench.github.io/#4c57793b71d893700c70839858564dfe) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark #jsbench #jsperf</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>

Keybase proof

I hereby claim:

  • I am awk34 on github.
  • I am awk34 (https://keybase.io/awk34) on keybase.
  • I have a public key ASCfci9dzF1CQrZTDZkYo7kK8sxq9wAMerMp-Yb6z6WlFwo

To claim this, I am signing this object:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: Keybase OpenPGP v2.0.58
Comment: https://keybase.io/crypto
xsFNBFhG50gBEADpKP5A7dNGTCD1JLkxfkN7piEKWSEf6x4m2hW3i+O7Jry9wDzQ
OxhKOjUB50U2QX9+FUTdUDVq/PwBI6jFQklm/YztMCfxEkOsCUPyynr6Yzr22iIf
GV5pJOniV+QZ/xICRsUfDcZKyzguf/UTAryhds715+iITW+/veszgT+G8Wi/j12n
EVQyyCC6fG4muE+ObcJjDfjZMFL4e5oF5rcgUVMognwOEE2zWo6DfTb7/uIRdS06
xZirKUMFGglCRrz6x2SNOqGFNxMSFvRkk4cgAnBKWAiaAgnMmV4ahOrVxaNEbxOK
dUIoUWZMNJ/IQwreobT1erx2GGzftrMWW30eQBCBU9zZpdQfZOyiYDAWYsURTiw9
@Awk34
Awk34 / gist:fa0cdc9311c8fc12b635
Created June 1, 2015 20:09
Download an Egghead.io video and go to the next lesson
function fireEvent(el, etype){
if (el.fireEvent) {
el.fireEvent('on' + etype);
} else {
var evObj = document.createEvent('Events');
evObj.initEvent(etype, true, false);
el.dispatchEvent(evObj);
}
}