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
import urllib2 | |
import random | |
import sys | |
ext = ['.png', '.jpg', '.gif'] | |
chars = '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' | |
prefix = 'http://i.imgur.com/' | |
try: | |
print "Press Ctrl+C to end!" |
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
''' | |
Diamond Dash bot | |
''' | |
import time | |
import autopy | |
import ImageGrab | |
from random import randint | |
from collections import Counter |
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
import sys | |
import BeautifulSoup | |
import requests | |
def gethours(name): | |
if len(name) == 17 and name.isdigit: | |
xml = requests.get('http://steamcommunity.com/profiles/%s/games?xml=1' % name) | |
else: | |
xml = requests.get('http://steamcommunity.com/id/%s/games?xml=1' % name) |
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-ExecutionPolicy Unrestricted | |
import-module virtualenvwrapper | |
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\shell.ps1") | |
. (Resolve-Path "$env:LOCALAPPDATA\GitHub\PoshGit_b45f39b7c5d40bebb0b5850a200fc120e9bf3646\profile.example.ps1") |
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
# Fino theme by roddds | |
# Use with a dark background and 256-color terminal! | |
# You can set your computer name in the ~/.box-name file if you want. | |
# Tested in Linux Mint | |
# Borrowing shamelessly from these oh-my-zsh themes: | |
# bira | |
# robbyrussell |
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
num = [] | |
maior = 0 | |
for i in range(3): | |
num.append(int(raw_input("Numero %d: " % (i+1)))) | |
if num[i] > maior: | |
maior = num[i] | |
print "\n Maior numero eh %d \n" % maior | |
if maior % 2 == 0: |
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 build-essential python-pip ssh vim zsh git git-flow | |
sudo pip install virtualenvwrapper | |
export WORKON_HOME=~/Envs | |
mkdir -p $WORKON_HOME | |
source /usr/local/bin/virtualenvwrapper.sh | |
sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
sudo apt-get update | |
sudo apt-get install sublime-text | |
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh |
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 push { | |
echo "git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git push origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} | |
function pull { | |
echo "git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" | |
git pull origin $(git rev-parse --symbolic-full-name --abbrev-ref HEAD) | |
} |
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
alias dif="git diff" | |
alias add="git add --all" | |
alias commit="git commit -m" | |
alias runserver="python manage.py runserver_plus" | |
alias sp="python manage.py shell_plus" | |
alias manage="./manage.py" | |
alias undo="git reset --soft HEAD^1" | |
alias unstage="git reset HEAD" |
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
[ | |
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} } | |
] |
OlderNewer