Skip to content

Instantly share code, notes, and snippets.

View mjhea0's full-sized avatar

Michael Herman mjhea0

View GitHub Profile
@mjhea0
mjhea0 / criteria.txt
Last active October 31, 2015 16:07 — forked from gigamonkey/criteria.txt
Hiring criteria: looking for the ability to …
Write a program that does what it’s supposed to do
Write idiomatic code
Debug a program that you wrote
Debug a program someone else wrote
Debug the interaction between a system you wrote and one you didn’t
File a good bug report
Modify a program you didn’t write
Test a program you wrote
Test a program you didn’t write
Learn a new programming language

CSS

Group

  • Have each table summarize the blog post.
  • Watch video.
  • After video Have each table chose a website and seperate it's homepage into these 3 things.

Base

  • Core styles for site
@mjhea0
mjhea0 / SimpleHTTPServerWithUpload.py
Created November 10, 2015 05:02 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@mjhea0
mjhea0 / packt_scraper.py
Created February 4, 2016 01:00 — forked from TrishGillett/packt_scraper.py
Checking the Packt Publishing free ebook of the day with Selenium
# -*- coding: utf-8 -*-
"""
author: Trish Gillett (discardthree@gmail.com, @discardthree on github)
Basic scraper to check the Packt Publishing Free ebook of the day.
This version uses selenium because when I tried getting the source via the
requests package it sometimes seemed to return the source for a version of
the website that was different from the one that was live.
Adapted from this code which was used by Estela Alvarez (supita@gmail.com)
to demo webscraping at a Montreal Pyladies meeting:
@mjhea0
mjhea0 / comprehensions.md
Created March 27, 2016 14:23 — forked from bearfrieze/comprehensions.md
Comprehensions in Python the Jedi way

Comprehensions in Python the Jedi way

Beautiful is better than ugly. Explicit is better than implicit.

-- The Zen of Python

I frequently deal with collections of things in the programs I write. Collections of droids, jedis, planets, lightsabers, starfighters, etc. When programming in Python, these collections of things are usually represented as lists, sets and dictionaries. Oftentimes, what I want to do with collections is to transform them in various ways. Comprehensions is a powerful syntax for doing just that. I use them extensively, and it's one of the things that keep me coming back to Python. Let me show you a few examples of the incredible usefulness of comprehensions.

All of the tasks presented in the examples can be accomplished with the extensive standard library available in Python. These solutions would arguably be more terse and efficient in some cases. I don't have anything against the standard library. To me there is a certain

Introduction to Data Structures


Standards

  • Implement, evaluate, and use some common data structures
  • Identify and diagram common data structures
  • Determine the correct data structure for interview-style problems
@mjhea0
mjhea0 / README.md
Created July 3, 2016 19:27 — forked from alextucker/README.md
Installing Dokku and Deploying a Django App
<style type="text/css"> section, p, h1, h2, h3 { text-align: left; } </style>

Intro to JS


@mjhea0
mjhea0 / search-bash-zsh-history.md
Created July 12, 2016 14:47 — forked from nepsilon/search-bash-zsh-history.md
Searching bash or zsh history — First published in fullweb.io issue #55

Searching bash or zsh history

More often than not, you already typed yesterday the commands you’re about to use today. Wouldn’t it be handy to be able to retrieve the long command instead of typing them yet another time?

Hit Ctrl+R, you’ll see:

(reverse-i-search)`':
@mjhea0
mjhea0 / promises-faq.md
Created August 21, 2016 14:38 — forked from joepie91/promises-faq.md
The Promises FAQ - addressing the most common questions and misconceptions about Promises.