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
# Aliases | |
alias g='git' | |
compdef g=git | |
alias gst='git status' | |
compdef _git gst=git-status | |
alias gl='git pull' | |
compdef _git gl=git-pull | |
alias gup='git fetch && git rebase' | |
compdef _git gup=git-fetch | |
alias gp='git push' |
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
{ | |
"result": | |
" # | |
## | |
### | |
####" | |
} |
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
{ | |
"result": | |
" # | |
## | |
### | |
####" | |
} |
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
response = 0 | |
for case in input_data: | |
numbers, letter, work = case.split(' ') | |
min_number,max_number = numbers.split('-') | |
letter = letter[0] | |
min_number = int(min_number) | |
max_number = int(max_number) | |
letter_count = work.count(letter) | |
if letter_count >= min_number and letter_count <= max_number: | |
response+=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
response = 0 | |
for case in input_data: | |
numbers, letter, work = case.split(' ') | |
min_number,max_number = numbers.split('-') | |
letter = letter[0] | |
min_number = int(min_number) - 1 | |
max_number = int(max_number) - 1 | |
if bool(work[min_number] == letter) ^ bool(work[max_number] == letter): | |
response+=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
sudo apt-get update ; | |
sudo apt-get install libjpeg-turbo8-dev libjpeg8-dev ; | |
sudo apt-get install libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev zlib1g-dev libfreetype6-dev liblcms1-dev libjpeg62-dev; | |
sudo apt-get build-dep python-imaging | |
#PIL cant find the files he needs, so we need to make symlinks to the files he looks for | |
sudo ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib/ ; | |
sudo ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so /usr/lib/ ; | |
sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so /usr/lib/; |
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
#!/bin/bash | |
# update package index | |
echo "----------------------UPDATING PACKAGES----------------" | |
sudo pacman -Syu --noconfirm | |
echo "----------------------INSTALLING GOOGLE CHROME--------------------" | |
yaourt google-chrome -S --noconfirm | |
echo "----------------------INSTALLING TERMINATOR ---------" | |
yaourt terminator -S --noconfirm |
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
sudo -s | |
nginx=stable # use nginx=development for latest development version | |
add-apt-repository ppa:nginx/$nginx | |
apt-get update | |
apt-get install nginx |
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
sudo apt-get install -y python-pip python-dev build-essential | |
sudo pip install --upgrade pip | |
sudo pip install --upgrade virtualenv | |
pip install virtualenvwrapper |
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
sudo apt-get install git-core; | |
sudo apt-get install zsh | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:cassou/emacs | |
sudo apt-get update | |
sudo apt-get install emacs24 | |
NewerOlder