I hereby claim:
- I am yaoyunchen on github.
- I am andyyaoyc (https://keybase.io/andyyaoyc) on keybase.
- I have a public key ASAVMhe2griu3qadtxjKdmNNhheJoLMPqNGBx3MLW4NNMQo
To claim this, I am signing this object:
{ | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
"tmp", | |
"log", | |
"coverage", | |
".git" | |
], | |
"font_size": 10, |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title></title> | |
<meta name="description" content=""> | |
<!-- STYLESHEETS --> |
# Git Hooks for Rails | |
# Runs automatically depending on what you're doing with git. | |
# Add to ./bin | |
# PRE-COMMIT HOOKS | |
# Automatically runs Codeclimate checks before a commit. | |
cat >".git/hooks/pre-push" <<EOL | |
#!/bin/bash | |
red='\033[0;31m' | |
green='\033[0;32m' |
# Docker | |
alias d='docker' | |
alias da='docker attach' | |
alias dr='docker restart' | |
alias dimg='docker images' | |
alias dps='docker ps' | |
alias dvol='docker volume ls' | |
alias dclearimg='docker rmi $(docker images --quiet --filter "dangling=true")' | |
alias dclearps='docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v' | |
alias dclearvol='docker volume rm $(docker volume ls -qf dangling=true)' |
I hereby claim:
To claim this, I am signing this object:
def mergesort(arr) | |
return arr if arr.count <= 1 | |
#Split array in half. | |
mid = arr[0..(arr.count / 2) - 1] | |
#Left side of array. | |
left = arr[0..mid.count - 1] | |
#Right side of array. | |
right = arr[mid.count..arr.count - 1] |