Skip to content

Instantly share code, notes, and snippets.

View hetmann's full-sized avatar
:electron:
react-native-10x-faster.com

Hetmann W. Iohan hetmann

:electron:
react-native-10x-faster.com
View GitHub Profile
@hetmann
hetmann / Immutable JS Examples
Created August 25, 2017 11:09 — forked from singhshivam/Immutable JS Examples
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@hetmann
hetmann / traceroute.js
Created January 6, 2017 13:02 — forked from liamgriffiths/traceroute.js
traceroute clone in javascript
// sloppy traceroute clone
// inpired by https://blogs.oracle.com/ksplice/entry/learning_by_doing_writing_your
// and made possible by https://www.npmjs.org/package/raw-socket
var raw = require('raw-socket');
var dns = require('dns');
var target = process.argv[2] || '173.230.146.29';
var MAX_HOPS = 64;
var TIME_LIMIT = 5000;