This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.contain::before { | |
content: ''; | |
width: 100%; | |
height: 660px; | |
z-index: -1000; | |
background: linear-gradient(to bottom right, #F7F7F7, #EAFBFF); | |
transform-origin: left bottom; | |
position: absolute; | |
top: 0; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From ThatJSDude, http://thatjsdude.com/interview/linkedList.html#singlyLinkedList | |
function linkedList () { | |
this.head = null | |
} | |
linkedList.prototype.push = function (val) { | |
var node = { | |
value: val, | |
next: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from Tutsplus, https://code.tutsplus.com/articles/data-structures-with-javascript-singly-linked-list-and-doubly-linked-list--cms-23392 | |
function Node(data) { | |
this.data = data; | |
this.next = null; | |
} | |
function SinglyList() { | |
this._length = 0; | |
this.head = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From ThatJSDude | |
function linkedList () { | |
this.head = null | |
this.length = 0 | |
} | |
linkedList.prototype.push = function (val) { | |
var node = { | |
value: val, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stack = [] | |
stack.push(1) | |
console.log(stack) | |
stack.pop() | |
console.log(stack) | |
var queue = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
// a proxy server is not always needed for all sites | |
// though in some cases, sites will restrict access to those that are not same-origin | |
// in such case, proxy servers can be used to bypass, as seen here using https://cors-anywhere.herokuapp.com/. | |
axios.get('https://cors-anywhere.herokuapp.com/https://designboom.com', { crossdomain: true }).then((response) => { | |
// returns raw html which can be used subsequently as DOM nodes | |
console.log(response.data) |
OlderNewer