Skip to content

Instantly share code, notes, and snippets.

View willamesoares's full-sized avatar

Will Soares willamesoares

View GitHub Profile
# split panes using | and -
bind - split-window -h
bind | split-window -v
unbind '"'
unbind %
# open and split windows keeping current dir
bind | split-window -v -c "#{pane_current_path}"
bind - split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
[user]
email = [email protected]
name = Will Soares
[alias]
alias = config --get-regexp ^alias\\.
ci = commit
ps = push
st = status -s
co = checkout
br = branch
@willamesoares
willamesoares / toPdf.js
Last active March 11, 2020 19:06
Convert images in a folder to PDF
/*
toPdf.js
Gather all JPG, JPEG and PNG images in a folder and convert them to
individual files in an output folder named after the source folder name
$ node toPdf.js [source/folder/path]
The script will, within the current directory, create a folder with the
same name as the input folder and add all generated PDF files to it.
@willamesoares
willamesoares / bst.js
Created July 13, 2019 17:20
JavaScript Binary Search Tree
// Constructor to create a new Node
function Node(key) {
this.key = key;
this.parent = null;
this.left = null;
this.right = null;
}
// Constructor to create a new BST
function BinarySearchTree() {