###Using Virtualenv
To create and use a new Python 3 virtual environment you can run the commands below.
####Creating a Virtualenv
virtualenv -p /usr/bin/python3 ~/.virtualenvs/<name of your virtualenv>
###Using Virtualenv
To create and use a new Python 3 virtual environment you can run the commands below.
####Creating a Virtualenv
virtualenv -p /usr/bin/python3 ~/.virtualenvs/<name of your virtualenv>
I hereby claim:
To claim this, I am signing this object:
Review contributing guidelines
Frequently a repository will have [guidelines for contributing][contrib-guide]. Your first order of business should always be to scope those out so your pull request will have a better chance of being accepted.
Fork the intended repository
Click the Fork button on the default page of the repo you want to work on.
| #!/usr/bin/env coffee | |
| # There are only 151 Pokémon. | |
| Pokémon = [ "Bulbasaur", "Ivysaur", "Venusaur", "Charmander", "Charmeleon", | |
| "Charizard", "Squirtle", "Wartortle", "Blastoise", "Caterpie", | |
| "Metapod", "Butterfree", "Weedle", "Kakuna", "Beedrill", "Pidgey", | |
| "Pidgeotto", "Pidgeot", "Rattata", "Raticate", "Spearow", "Fearow", | |
| "Ekans", "Arbok", "Pikachu", "Raichu ", "Sandshrew", "Sandslash", | |
| "Nidoran♀", "Nidorina", "Nidoqueen", "Nidoran♂", "Nidorino", | |
| "Nidoking", "Clefairy", "Clefable", "Vulpix", "Ninetales", |
| #!/usr/bin/env python3 | |
| import re | |
| from collections import namedtuple | |
| INTERESTING_THRESHOLD = 7.5 # Interesting threshold. | |
| DISINTERESTING_THRESHOLD = 2.0 # Disinteresting threshold. | |
| r = re.compile("(.*)\n(\d*.\d*) hrs on record") # Regex for name/hours | |
| Game = namedtuple('Game', 'name, hours') # Namedtuple for easy record access. |
| #!/usr/bin/env coffee | |
| ### | |
| Copyright (c) 2015, Reilly Tucker Siemens <[email protected]> | |
| Permission to use, copy, modify, and/or distribute this software for any | |
| purpose with or without fee is hereby granted, provided that the above | |
| copyright notice and this permission notice appear in all copies. | |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| alias roulette='for i in {0..5}; do echo -e "import random as rand; import webbrowser as wb; import string as s; import urllib.request as req\ntry:\n\tu = \"https://bit.ly/%s\" % \"\".join(rand.choice(s.ascii_letters+s.digits) for _ in range(0, 6))\n\tr = req.urlopen(u)\n\tprint(\"BANG!\")\n\twb.open(u)\nexcept:\n\tprint(\"click\")" | python3; done' |
| #!/bin/sh | |
| FACULTYWEB='https://facultyweb.cs.wwu.edu/' | |
| PROF_DIRECTORY='https://cs.wwu.edu/faculty' | |
| USERNAME_PATTERN='<h2 class="title no-margin"><a href="/\K\w+' | |
| PROFS=$(curl -s ${PROF_DIRECTORY} | grep -oP "${USERNAME_PATTERN}") | |
| PADDING=$(for p in $PROFS; do echo $p | wc -c; done | sort | tail -1) | |
| red () { | |
| printf "\e[0;31m${1}\e[0;0m" |