Skip to content

Instantly share code, notes, and snippets.

View 0livare's full-sized avatar

Zach Olivare 0livare

View GitHub Profile
class Node {
constructor(value) {
this.value = value
}
}
class Tree {
add(node) {
if (!this.root) {
this.root = node
// Interview question:
//
// What is a linked list? Implement one in JavaScript without
// using an array. (I did this in about ten minutes)
//
// What is the time complexity of add()? How can you make it O(1)?
class Node {
constructor(value) {
this.value = value
@0livare
0livare / file-structure.txt
Last active March 15, 2019 15:31
A textual description of a file structure
├── LICENSE
├── README.md
├── gatsby-config.js
├── gatsby-node.js
├── node_modules
├── package-lock.json
├── package.json
├── src
│ ├── layouts
│ ├── pages
@0livare
0livare / History|-10d9a|entries.json
Last active May 16, 2022 16:02
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/zposten/dev/skyslope-react-document-viewer/lib/src/components/SinglePdfViewer/useSingleDocumentContext.ts","entries":[{"id":"GuIh.ts","source":"searchReplace.source","timestamp":1651686692925},{"id":"LFbj.ts","source":"moved.source","timestamp":1651686713107},{"id":"2EoS.ts","source":"searchReplace.source","timestamp":1651693436053},{"id":"nO9W.ts","source":"Renaming PdfViewerState","timestamp":1651694116007},{"id":"Yy21.ts","timestamp":1651761245035},{"id":"FIkm.ts","timestamp":1651761279580},{"id":"Balb.ts","timestamp":1651761324756},{"id":"mGuN.ts","timestamp":1651761375222},{"id":"prNY.ts","timestamp":1651761422121},{"id":"9Xks.ts","timestamp":1652114517503}]}
@0livare
0livare / .gitconfig
Last active July 24, 2026 15:58
My git alias list. Running 'git alias' will pretty-print these commands to the terminal.
# Some options that may or may not be applicable to you
[user]
name = Zach Olivare
email = zach@olivare.net
[push]
default = upstream # Push to the current branch's upstream branch by default
[core]
autocrlf = input # Force replacing CRLF line endings with LF
ignorecase = false
excludesfile = ~/.gitignore_global