Skip to content

Instantly share code, notes, and snippets.

View colemanja91's full-sized avatar
🏠
Working from home

Allie Coleman colemanja91

🏠
Working from home
View GitHub Profile
@colemanja91
colemanja91 / allie_nord_sbg_2023_incentives.md
Last active November 16, 2023 12:29
allie_nord_sbg_2023_incentives.md

Always-On

  • $10 - Eat a small Ghost Pepper Chip
  • $50 - 5 "Hot Ones" sauces in a row
  • $125 - All 10 "Hot Ones" sauces in a row

Mario Maker

  • $3 - Jump into the next spike
  • $13 - Play the game upside-down for 5 minutes

Documentation

What triggers documentation?

  • Processes/systems have a tendancy to go un-documented, sometimes for a long time, until some precipitating event causes a team to say "Hey, we should make sure this is documented"
    • Typically, this precipitating event is a key player either being on vacation or leaving
  • Items that do get documented tend to be straightforward:
    • Dealing with events that happen with predictable regularity
    • Outlining the expected/trivial cases
  • When teams start to worry about documentation, there's usually a focus on items that are less directly tangible:

This is my header!

Hello! This section is a sub-header

Here is some text. We should also add italics. What about bold? I'd like to add a [link][https://first/io].

@colemanja91
colemanja91 / s3_athena_restricted_lambda.py
Created April 11, 2018 22:14
Sample Athena S3 results tagging via AWS Lambda
"""
Lambda invocation to set security tags on Athena output; triggered by S3 Object
events
"""
import logging
import boto3
LOGGER = logging.getLogger()
@colemanja91
colemanja91 / s3_athena_restricted_policy.json
Last active June 14, 2018 03:20
Sample Athena Results S3 Policy for Restricted Data
{
"Version": "2012-10-17",
"Id": "Policy1523289797898",
"Statement": [
{
"Sid": "DenyRestrictedResultsAccess",
"Effect": "Deny",
"NotPrincipal": {
"AWS": [
"arn:aws:iam::{{ aws_account_id }}:user/{{ aws_user_name }}"
@colemanja91
colemanja91 / cheesecake.md
Created December 13, 2017 01:16
Cheesecake

My other favorite recipe!

Pre-prep

  • Set cream cheese out to soften (up to 45 min in advance)
  • Preheat oven to 375 F

Crust

Ingredients

  • 1 1/2 cup graham cracker crumbs
  • 1/4 cup sugar
@colemanja91
colemanja91 / pbcookies.md
Created December 13, 2017 01:04
Peanut Butter Cookies

This is my favorite recipe - I've been using it since I was 5 (so, 22 years), and it has never let me down! Best part is, the dough is completely safe to eat!

Makes 2.5 dozen (given how tasty the dough is, I usually come out with just under 2 dozen...)

Ingredients

  • 2/3 cup smooth peanut butter (JIF or Peter Pan work best)
  • 1 14.oz can sweetened condensed milk (Borden brand works best; store brands tend to dry out quicker)
  • 2 cups Jiffy baking mix
  • Small bowl of granulated sugar
@colemanja91
colemanja91 / pyeloqua_activity_export_example.py
Created November 18, 2017 13:45
Example showing Eloqua activity exports with PyEloqua
""" export clickthrough data - example """
from json import dump
from pyeloqua import Bulk
bulk = Bulk(username='xxx', password='xxx', company='xxx')
bulk.exports('activities', act_type='EmailClickthrough')
bulk.add_fields() # this will add all fields, or you can specify as listed in the documentation
# Field lists located here: https://github.com/colemanja91/pyeloqua/blob/master/pyeloqua/system_fields.py
@colemanja91
colemanja91 / pyeloqua_contact_import_example.py
Last active February 10, 2023 13:47
Basic pyeloqua import
"""
NOTICE: I no longer support pyeloqua-related code, I have not worked in Eloqua since 2017 and the APIs have likely changed since then
Import a small set of contacts to Eloqua
"""
from os import environ
from pyeloqua import Bulk
# Initialize Bulk object
# Here I pass environment variables which contain the necessary information
@colemanja91
colemanja91 / geoprofiling_w_map.R
Created December 1, 2012 20:15
geoprofiling_w_map.R
# Geographic profiling
# Methodology developed by Kim Rossmo
# R program by Jeremy Coleman
library(maps)
library(grDevices)
### Define the geoprofiling function
geo.prob <- function(xi, yi, xn, yn, B, phi, f, g){