Skip to content

Instantly share code, notes, and snippets.

View 0livare's full-sized avatar

Zach Olivare 0livare

View GitHub Profile
@0livare
0livare / wordle-words-ranked.json
Last active February 6, 2022 08:20
The score is the sum of the frequency of each unique letter in the word among all the other words in the list.
{
"alert": 4559,
"alter": 4559,
"later": 4559,
"arose": 4534,
"irate": 4511,
"stare": 4509,
"arise": 4451,
"raise": 4451,
"learn": 4405,
@0livare
0livare / wordle-answers-alphabetical.txt
Created February 6, 2022 08:09 — forked from cfreshman/wordle-answers-alphabetical.txt
Wordle answers from source code in alphabetical order. And if you write a solver, here's a leaderboard! https://freshman.dev/wordle/#/leaderboard
aback
abase
abate
abbey
abbot
abhor
abide
abled
abode
abort
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 January 27, 2024 14:36
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
[core]
autocrlf = input # Force replacing CRLF line endings with LF
ignorecase = false
# editor = code --wait
@0livare
0livare / git-move
Last active August 14, 2018 13:54
Move a local branch to a different commit
#!/bin/bash
# FOR ANYONE READING THIS, simply use 'git branch -f`, it even has the same syntax as this script
# If there are 0 or 1 arguments
if [ $# -eq 0 ] || [ $# -eq 1 ]
then
echo "Usage: git move <BRANCH-NAME> <BRANCH-POINTER>"
exit 1
fi
@0livare
0livare / .bashrc
Last active August 10, 2016 14:14
Modified bashrc to add several aliases outside of the 'git' command
#!/bin/bash
# Start the SSH Agent process
eval `ssh-agent -s`
# Add your ssh keys
ssh-add ~/.ssh/id_rs
# Set aliases
alias k='git'
# Auto-complete for 'k' as well
{
"added_words":
[
"Posten",
"Ribbich"
],
"font_size": 11,
"spell_check": true,