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
raiderrobert / main.py
Created Dec 18, 2018
Dictionary Setup Comparison
View main.py
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 (https://keybase.io/rroskam) on keybase.
* I have a public key ASCAOSwOMPAyDWbbfpR8VEe9xoFmduUms_JE5QqbI4sLkAo
To claim this, I am signing this object:
@raiderrobert
raiderrobert / match.py
Last active May 3, 2018
Pattern Matching Straw Man
View match.py
# Simple pattern matching
x = 1
number = match x:
1 => "one"
2 => "two"
3 => "three"
10 => "ten"
_ => "anything"
@raiderrobert
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 - http://slides.com/johnberryman/deck-10/fullscreen#/
Hands-On Machine Learning with Scikit-Learn & TensorFlow
Types of Machine Learning
- Supervised
- Unsupervised
@raiderrobert
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: https://smarlowucf.github.io/presentations/testing_infra/
(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
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
PYTN2018
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
raiderrobert / readme.md
Created Jan 31, 2018
DEP - Temporary Table
View readme.md

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

CREATE INDEX cross_inv_sku ON cross_inventory(sku);

@raiderrobert
raiderrobert / forms.py
Last active Feb 17, 2018
DEP Draft - Django Forms API Rewrite
View forms.py
"""
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
# http://www.django-rest-framework.org/api-guide/relations/
# or relationships in WTForms
# http://wtforms-alchemy.readthedocs.io/en/latest/relationships.html#one-to-many-relations
View pythonic.py
"""
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
View scraper.py
# -*- coding: utf-8 -*-
"""
Created on Wed May 24 14:40:50 2017
Requirements:
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.