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
@dalegaspi
dalegaspi / brew_symlink_error_sierra.md
Last active January 4, 2024 22:32
Homebrew Symlink errors in Mac OSX High Sierra
@sorenlouv
sorenlouv / jest-clear-cache.MD
Created September 26, 2017 11:35
Jest clear cache

Find cache location

npx jest --showConfig | grep cacheDirectory

Remove cache

rm -rf /var/folders/pg/hdsyy6t57jd8zgqlj4s2qk_r0000gn/T/jest_dx
@primaryobjects
primaryobjects / linkedList.js
Last active November 6, 2019 11:28
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}
@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();
@limianwang
limianwang / Bind.md
Last active August 29, 2015 14:26
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();