Skip to content

Instantly share code, notes, and snippets.

View OFRBG's full-sized avatar

Oscar Fonseca OFRBG

View GitHub Profile
@OFRBG
OFRBG / 127-word-ladder.js
Last active August 24, 2024 18:57
Leetcode 127, "Word Ladder" with Promises as a queue
/* https://leetcode.com/problems/word-ladder/ */
const checkAdjacency = (a, b) => {
if (a.length !== b.length) {
return false;
}
let first = true;
for (let i = 0; i < a.length; i++) {
if (a[i] !== b[i]) {
import { ReadStream, openSync } from "node:fs";
import path from "node:path";
import http from "node:http";
import url from "node:url";
import { EventEmitter } from "node:events";
import { promisify } from "node:util";
import {
render,
Spacer,
@OFRBG
OFRBG / vimrc
Last active March 30, 2023 02:15
let g:polyglot_disabled = ['typescript', 'javascript']
call plug#begin('~/.vim/plugged')
" UI
Plug 'mhartington/oceanic-next'
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'airblade/vim-gitgutter'