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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
button { | |
color: #ED652E; | |
background-color: #999; | |
} |
Make sure you create a new GitHub repo first, then execute the following commands:
cd ~/dev/repo-name
git remote rename origin bitbucket
git remote add origin https://github.com/username/repo-name.git # you could also use the ssh or git protocols
git push origin master
Once you're satisfied that the GitHub repo is good to go run the following command to remove the Bitbucket remote:
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
# Bindgings {{{ | |
# Remap prefix | |
unbind C-b | |
set -g prefix C-Space | |
# quick key for moving back to the previous window | |
bind-key L last-window | |
# vim style bindings for pane movement | |
bind-key -r h select-pane -L |
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
# shell prompts | |
PS1="vcs: " | |
# aliases ============================== | |
# edit aliases [.bash_aliases] file | |
alias aliases="subl ~/.bash_aliases" | |
# ls command output | |
alias l.='ls -d .* --color=auto' |
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
function tmuxnew() { | |
tmux new -s $1 | |
} | |
function tmuxopen() { | |
tmux attach -t $1 | |
} | |
function tmuxkill() { | |
tmux kill-session -t $1 |
I hereby claim:
- I am sappharx on github.
- I am vsisk (https://keybase.io/vsisk) on keybase.
- I have a public key ASDyo6YEbR8QlPQzrUvwsu47vHY7epiCiK5S3eb659VbHwo
To claim this, I am signing this object:
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
let (|Both|Three|Five|Neither|) n = | |
if n % 15 = 0 then Both | |
elif n % 3 = 0 then Three | |
elif n % 5 = 0 then Five | |
else Neither | |
let fizzbuzz n = | |
match n with | |
| Both -> "FizzBuzz" | |
| Three -> "Fizz" |
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
inoremap jj <ESC> |
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
const msd = n => Math.floor(n / 10 ** Math.floor(Math.log10(n))) | |
const accumulator = (histogram, value) => (histogram[value - 1]++, histogram) | |
const scale = (num, idx, arr) => num / arr.reduce((count, val) => count + val, 0) | |
const benford = list => list | |
.filter(Boolean) | |
.map(Math.abs) | |
.map(msd) | |
.reduce(accumulator, Array(9).fill(0)) | |
.map(scale) |
OlderNewer