Skip to content

Instantly share code, notes, and snippets.

Robert Roskam raiderrobert

Block or report user

Report or block raiderrobert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
raiderrobert /
Created Dec 18, 2018
Dictionary Setup Comparison
markdown_document = dict(
header = list(()),
sales = list(()),
project = list(()),
leads = list(()),
devinf = list(()),
qa = list(()),
implementor = list(()),
support = list(()),
footer = list(())
View gist:b61112b8396c02717e0f765f5106b122
### Keybase proof
I hereby claim:
* I am raiderrobert on github.
* I am rroskam ( on keybase.
* I have a public key ASCAOSwOMPAyDWbbfpR8VEe9xoFmduUms_JE5QqbI4sLkAo
To claim this, I am signing this object:
raiderrobert /
Last active May 3, 2018
Pattern Matching Straw Man
# Simple pattern matching
x = 1
number = match x:
1 => "one"
2 => "two"
3 => "three"
10 => "ten"
_ => "anything"
raiderrobert / pytn2018-hands-on-machine-learning-with-scikit.txt
Created Feb 11, 2018
PyTenneesse 2018 - Hands on Machine Learning with Scikit-Learn by John Berryman 1pm Saturday
View pytn2018-hands-on-machine-learning-with-scikit.txt
Hands on Machine Learning with Scikit-Learn by John Berryman 1pm Saturday
Twitter - @JnBrymn
Slides -
Hands-On Machine Learning with Scikit-Learn & TensorFlow
Types of Machine Learning
- Supervised
- Unsupervised
raiderrobert / pytn2018-testing-the-infrastructure.txt
Last active Feb 10, 2018
PyTenneesse 2018 - Testing the Infrastructure by Sean Marlow
View pytn2018-testing-the-infrastructure.txt
Testing the Infrastructure by Sean Marlow, 10:15am Saturday
Verifying the state of IaC and public cloud images with Python
slides here:
(so fewer notes than I would do otherwise)
We have a bunch of tools that make it easier to deploy now rapidly
But now we can propogate a typo quickly
Our infrastructure is code. All code deserves tests.
raiderrobert / pytn2018-opening-keynote.txt
Last active Feb 10, 2018
PyTenneesee 2018 - Opening Keynote by Safia Abdalla
View pytn2018-opening-keynote.txt
615-873-0382 - Code of Conduct Violations
Keynote - Safia Abdalla, @captainsafia
- 10 days to submit 1st PR on Github: 1 char change on pandas
Open Source is the sum of small parts
You're one degree away from someone who can help you do something great
The best mentorship relationships are actually really good friendships.
- Being a human being in technology matters
raiderrobert /
Created Jan 31, 2018
DEP - Temporary Table

CREATE TEMPORARY TABLE cross_inventory AS SELECT * FROM inventory WHERE /* complex clause here */;

CREATE INDEX cross_inv_sku ON cross_inventory(sku);

raiderrobert /
Last active Feb 17, 2018
DEP Draft - Django Forms API Rewrite
Proposed New Forms API, not currently possible in Django Forms API (as of 2.0)
from django.forms import ModelForm, ModelFormListField
from .models import Author, Book
# Make this work like serailization relationships in Django Rest Framework
# or relationships in WTForms
The world is a horrible place.
Let's make it more pythonic
many ideas borrowed from Raymond Hettinger and Python Anti-Patterns
# timeit is a Python built in that can test small snippets very quickly
# by default it'll run the code snippet 1 million times
# -*- coding: utf-8 -*-
Created on Wed May 24 14:40:50 2017
1. Read URL
2. Loop function to crawl through the following pages after the first page in the data catalogue
2. For every data node, go inside and crawl the resource links
3. Test each link for 404 errors
4. Return result into a pandas dataframe
You can’t perform that action at this time.