Skip to content

Instantly share code, notes, and snippets.

@wacotaqo
wacotaqo / commandline.py
Created September 20, 2017 09:18 — forked from opie4624/commandline.py
Base Python Command Line template
#!/usr/bin/env python
#
# import modules used here -- sys is a very standard one
import sys, argparse, logging
# Gather our code in a main() function
def main(args, loglevel):
logging.basicConfig(format="%(levelname)s: %(message)s", level=loglevel)
@wacotaqo
wacotaqo / pyscript.py
Created September 17, 2017 22:23 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python
"""A simple python script template.
"""
from __future__ import print_function
import os
import sys
import argparse
Python Challenge #8
http://www.pythonchallenge.com/pc/def/integrity.html
Title: Working hard
Image of a bee
Caption: where is the missing link?
Bee has a map link to ../return/good.html ==>
http://www.pythonchallenge.com/pc/return/good.html
Python Challenge #7
===================
URL: http://www.pythonchallenge.com/pc/def/oxygen.html
The toughest and in my opinion silliest one yet.
I couldn't not do this alone and relied heavily on the forum.
Should perhaps have gone quicker to think of using PIL and then did not catch onto the 7th interval till pretty late.
Python Challenge #6
===================
URL: http://www.pythonchallenge.com/pc/def/channel.html
Title: Now there are pairs
Going to http://www.pythonchallenge.com/pc/def/jeans.html
Reply: Zoom in
Python Challenge #5
===================
URL: http://www.pythonchallenge.com/pc/def/peak.html
Peak hell.. what?
Tried to search for python functions on google with peak or hell and happened to see a solution for the puzzle with the word "Pickle"... shucks. Wanted to ponder a little longer on that.
Source code had a link to: http://www.pythonchallenge.com/pc/def/banner.p
Python Challenge #4
===================
URL: http://www.pythonchallenge.com/pc/def/linkedlist.html
is referred to:
URL: http://www.pythonchallenge.com/pc/def/linkedlist.php
Title: Follow the chain
Image: Wooden stone sawing figures
Python Challenge #3
===================
URL: http://www.pythonchallenge.com/pc/def/equality.html
Title: re
Image: Candles
Caption: One small letter, surrounded by EXACTLY three big bodyguards on each of its sides.
Tip: To see the solutions to the previous level, replace pc with pcc, i.e. go to: http://www.pythonchallenge.com/pcc/def/equality.html
Python Challenge #2
===================
URL: http://www.pythonchallenge.com/pc/def/ocr.html
Image of open book with blur texts.
Caption: recognize the characters. maybe they are in the book,
but MAYBE they are in the page source.
Page Source: Message to "Find rare characters in the mess below" and then a jumble of characters.
Python Challenge #1
===================
http://www.pythonchallenge.com/pc/def/map.html
Image: Notebook K-->M, O-->Q, E-->G
Caption: everybody thinks twice before solving this.
Note: g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.