Skip to content

Instantly share code, notes, and snippets.

View stephenotalora's full-sized avatar
🚀
ship it

Jonathan stephenotalora

🚀
ship it
  • GitHub Staff
  • Vancouver Canada
View GitHub Profile
@stephenotalora
stephenotalora / linkedList.js
Created February 14, 2018 07:19 — forked from primaryobjects/linkedList.js
Reverse a Linked List in JavaScript.
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val;
* this.next = null;
* }
*/
/**
* @param {ListNode} head
* @return {ListNode}
{
"type": "aws"
}
@stephenotalora
stephenotalora / Dockerfile
Created March 13, 2017 14:01
updated rabbitmq Dockerfile
FROM alpine:latest
ENV RABBITMQ_VERSION=3.3.4
ENV PLUGIN_BASE=3.6.x
ENV AUTOCLUSTER_VERSION=0.6.1
ENV DELAYED_MESSAGE_VERSION=0.0.1
ENV MESSAGE_TIMESTAMP_VERSION=3.6.x-3195a55a
ENV TOP_VERSION=3.6.x-2d253d39
RUN \
```json
[
{
"x": 1,
"y": 59.56017127439702,
"id": 64
},
{
"x": 2,
"y": 61.24302853743334,
data different: true (result from Immutable.is)
Immutable.List objects:
List {size: 19, _origin: 0, _capacity: 19, _level: 5, _root: null…}__altered: false__hash: undefined__ownerID: undefined_capacity: 19_level: 5_origin: 0_root: null_tail: VNodelength: (...)size: 19__proto__: IndexedIterable
List {size: 19, _origin: 0, _capacity: 19, _level: 5, _root: null…}__altered: false__hash: undefined__ownerID: undefined_capacity: 19_level: 5_origin: 0_root: null_tail: VNodelength: (...)size: 19__proto__: IndexedIterable
data value:
props: [{"x":477.3333333333333,"y":0,"id":1},{"x":6066.666666666669,"y":0,"id":3},{"x":38713.99999999991,"y":0,"id":4},{"x":33961.333333333256,"y":0,"id":5},{"x":962.6666666666666,"y":0,"id":9},{"x":7717.333333333328,"y":0,"id":10},{"x":55398.00000000082,"y":0,"id":11},{"x":611.3333333333335,"y":0,"id":12},{"x":28279.999999999884,"y":0,"id":13},{"x":81956.6666666669,"y":0,"id":17},{"x":60018.66666666693,"y":0,"id":18},{"x":124839.33333333155,"y":0,"id":19},{"x":133756.66666
@stephenotalora
stephenotalora / Bind.md
Last active August 29, 2015 14:26 — forked from limianwang/Bind.md
Tutorial: Bind Function

In the powerful world of JS, you can do a lot of crazy things with Bind/Apply/Call. Here, I can show a small example so that it can be easily understood.

function test1(a, b, c) {
  console.log(Array.prototype.slice.call(arguments));
  // What will this output?
}

function test2(fn) {
 fn();