- GitBook doesn't work in Firefox because it relies on contenteditable experimental APIs which Chrome implements but FF doesn't
- WebSpeech API Demo thinks that Firefox doesn't support WebSpeech API
View write-large-file.js
var items = 2500000000; // number of lines to write to the file. Currently >20 GB for sequential ints | |
var buffer_size = 1000000; // amount of items to buffer in memory. Currently ~200 MB for ints | |
var fs = require('fs') | |
var buffer = []; | |
for (var i =0; i < items; i++) { | |
var data = i; // make it a random integer, or whatever else your heart desires | |
buffer.push(data); |
View better-new-twitter.css
/* don't make right sidebar sticky */ | |
[data-testid=sidebarColumn] > div > div:nth-child(2) { | |
position: absolute; | |
} | |
/* dull out the empty space. Hardcoded colors for white theme. */ | |
[data-testid='primaryColumn'] { | |
background:#e6ecf0; | |
} |
View examples-of-crossbrowser-incompatibility.md
View distraction-free-stackexchange.js
// ==UserScript== | |
// @name Hide Hot Network Questions and Hot Meta Posts | |
// @namespace http://CHANGE.TO.YOUR.WEBPAGE | |
// @version 0.1 | |
// @description Hide Hot-Network-Questions in StackExchange sites | |
// @match *://*.stackexchange.com/* | |
// @match *://*.stackoverflow.com/* | |
// @match *://*.superuser.com/* | |
// @match *://*.serverfault.com/* | |
// @match *://*.askubuntu.com/* |
View _config.yml
# will substitute :author with the variable author in your file (also works with defaults). | |
permalink: /:author/:slug/ | |
# You need to have this extra permalink_custom_vars array to tell the plugin which substitutions to make | |
permalink_custom_vars: ['author'] | |
# Note that you don't have to include the supported variables in this list as jekyll takes care of that | |
# For a complete list of variables jekyll supports, see: https://jekyllrb.com/docs/permalinks/#template-variables |
View index.html
<html> | |
<head> | |
<title> A Counter </title> | |
</head> | |
<body> | |
The counter is <span id="counter-element">0</span> | |
<button>Click To Increment</button> | |
<script> | |
alert("Hey there"); | |
</script> |
View index.html
<html> | |
<head> | |
<title> A Counter </title> | |
</head> | |
<body> | |
The counter is <span id="counter-element">0</span> | |
<button>Click To Increment</button> | |
<script> | |
alert("Hey there"); | |
</script> |
View gsoc-final-submission.md
Final submission for GSoC
This is my final submission for GSoC and contains description of my work. I've provided links to the PRs which are well documented, contain reference to all the issues fixed by them, and have descriptions of what the code is doing.
Chronologically --
- I started out by following Babel's official resources on getting started, sending some PRs to fix documentation along the way after trying and testing things out in the beloved ASTExplorer.
- After I got a hold on ASTs, how babel internals and transforms were working, how to use babel-types, I started work on rewrite12 of the parameter inlining logic to use as a vehicle to implement what I'd learnt and to smooth out any problems.
- Then I went after the Object Rest/Spread, [my first big PR](https://github.co
View legacy-output.js
// input | |
@decorator class Bizz { | |
@dec m1() {}; | |
@bar @foo.bar(baz) m2() {}; | |
@dec static 3 () {}; | |
} | |
// output | |
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | |
var desc = {}; |
NewerOlder