Skip to content

Instantly share code, notes, and snippets.


Sergey Rubanov chicoxyzzy

Block or report user

Report or block chicoxyzzy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chicoxyzzy /
Last active Aug 13, 2019
Installing Node Nightlies via nvm

You can install Node Nightlies/RCs via nvm using NVM_NODEJS_ORG_MIRROR environment variable.

Install latest Node RC


Install latest Node.js Nightly

chicoxyzzy / results
Created Jan 19, 2017
Benchmarking for loops
View results
Now using node v4.7.2 (npm v2.15.11)
// v8 (Node.js 4.7.2)
forVar_______: 2ms
forLet_______: 13ms
forOfVar_____: 66ms
forOfLetConst: 64ms
forEachVar___: 15ms
forEachLet___: 21ms
View hello.wast
This file has been truncated, but you can view the full file.
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$ji (func (param i32) (result i64)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
fn main() {
println!("Hello, Emscripten!");
View hello.js
* Copyright 2015 WebAssembly Community Group participants
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
View hello.asm.js
Module["asm"] = (function(global, env, buffer) {
'almost asm';
var HEAP8 = new global.Int8Array(buffer);
var HEAP16 = new global.Int16Array(buffer);
var HEAP32 = new global.Int32Array(buffer);
var HEAPU8 = new global.Uint8Array(buffer);
var HEAPU16 = new global.Uint16Array(buffer);
var HEAPU32 = new global.Uint32Array(buffer);
chicoxyzzy / noncoercible.js
Last active Feb 12, 2020
Non-coercible objects
View noncoercible.js
function nonCoercible(val) {
if (val == null) {
throw TypeError('nonCoercible shouldn\'t be called with null or undefined');
const res = Object(val);
res[Symbol.toPrimitive] = () => {
throw TypeError('Trying to coerce non-coercible object');
return res;

Setup new Mac from scratch

Install latest Xcode

The download/install takes a while so start it first. When it finishes downloading you will still need to run it to complete installation.


Really the nicest choice for a terminal on OSX right now.


ruby -e "$(curl -fsSL"
You can’t perform that action at this time.