###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 <reilly.siemens@gmail.com> | |
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' |
These files are web applications that generate PNGs on request containing a friendly greeting with the IP address of the requester.
The PHP was originally written by Andrew Kvalheim
probably around 2010. Its filename at that time was avatar.png
, so as to
give the illusion that it was a static file.
I wrote the Python many years later in an attempt to understand what Andrew had
#!/bin/sh | |
: ${MINECRAFT_WORLD="survival"} | |
src="/srv/${MINECRAFT_WORLD}/world" | |
dst="/var/games/minecraft/${MINECRAFT_WORLD}.txz" | |
send_command() { | |
world=$1 | |
cmd=$2 |