Skip to content

Instantly share code, notes, and snippets.

View dideler's full-sized avatar

Dennis Ideler dideler

View GitHub Profile
@dideler
dideler / pyhash.py
Last active March 26, 2017 17:43 — forked from jbenet/pyhash.py
Quickly hash some text with md5, sha1, or sha256. Works with piping input.
#!/usr/bin/env python2.7
#
# Install this in your PATH as `pyhash`.
# If you want more cryptographic hashing functions, try the PassLib module.
#
# Don't use this script for anything security related!
import hashlib
algorithms = dict(
@dideler
dideler / python33.txt
Created July 26, 2012 21:14 — forked from hawkz/python33.txt
Python in 33 sentences
print - lets you output numbers and characters to the console.
if - let's you choose which statements are executed if an expression is true
else - denotes the statements that execute if the expression isn't true
elif - let's you combine if statements
while - is a way of repeating statements in a loop until an expression is false.
break - is a way to jump out of the statement flow of a loop.
continue - let's you skip a cycle of the flow without ending it.
for - is used to iterate over items of a collection in the order they appear in a container
@dideler
dideler / 0_urllib2.py
Created June 7, 2012 11:25 — forked from kennethreitz/0_urllib2.py
urllib2 vs requests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
gh_url = 'https://api.github.com'
req = urllib2.Request(gh_url)
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
@dideler
dideler / about.md
Last active March 23, 2018 14:08 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.