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
vector<pair<int, int>> getThem() { | |
vector<pair<int, int>> v; | |
for (pair<int, int> x : theList) { | |
if (x.second == 4) { | |
v.push(x); | |
} | |
} | |
return v; |
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
vector<pair<int, int>> getThem() { | |
vector<pair<int, int>> v; | |
for (pair<int, int> x : theList) { | |
if (x.second == 4) { | |
v.push(x); | |
} | |
} | |
return v; |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'mattn/emmet-vim' |
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
# make directory and change working directory to it | |
function mcd { | |
if [ $# -ne 1 ]; then | |
echo "Usage: mcd <directory-name>" | |
return | |
fi | |
mkdir $1 | |
cd $1 | |
} |
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
# Miscellaneous aliases | |
alias ..='cd ..' | |
alias x='exit' | |
alias d='rm -rf' | |
alias math='insect' | |
alias chsh='chmod 711 *.sh' | |
# Filesystem aliases | |
alias mkdir='mkdir -pv' | |
alias top='htop' |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# Run tmux by default | |
if command -v tmux>/dev/null; then | |
[[ ! $TERM =~ screen ]] && [ -z $TMUX ] && exec tmux | |
fi | |
# If not running interactively, don't do anything |
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
for (element of document.querySelectorAll('.bt-request-buffed')) { element.click() } |
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
double ackermann(double m, double n) { | |
if (m == 0) { | |
return n + 1; | |
} else if (n == 0) { | |
return ackermann(m - 1, 1); | |
} | |
return ackermann(m - 1, ackermann(m, n - 1)); | |
} |
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
export default { | |
baseUrl: 'http://hackuci.herokuapp.com/api', | |
} |
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
tr.comtr td table tr td.ind img[src="s.gif"][width="0"] { | |
border-right: 2px solid purple; | |
height: 100%; | |
padding-left: 5px; | |
} | |
tr.comtr td table tr td.ind img[src="s.gif"][width="120"] { | |
border-right: 2px solid yellow; | |
height: 100%; | |
padding-left: 5px; |