Skip to content

Instantly share code, notes, and snippets.

View Btibert3's full-sized avatar

Brock Tibert Btibert3

View GitHub Profile
@Btibert3
Btibert3 / stattle-neo4j-team-ranking.adoc
Last active December 31, 2015 22:12 — forked from cheerfulstoic/graph_gist_template.adoc
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments
@Btibert3
Btibert3 / Lego_sets.adoc
Created January 12, 2016 17:56 — forked from mgirardot/Lego_sets.adoc
Managing your Lego collection

Build Star Wars models with your Lego collection

Summary

Since my childhood, the countless model building with Lego bricks are fascinating me. Lego are plastic construction toys consisting of interlocking bricks that are used to construct a wide variety of models. Usually, Lego are sold as a collection of different designed pieces and an instruction book that visually describe the sequential building steps of a miniature model.

I always had a great fun using bricks to build different models that you have to imagine based on the bricks available. But this liberty to imagine new models comes with a great frustration when important pieces are missing to build it.

@Btibert3
Btibert3 / writeTDE.r
Created June 15, 2017 20:30 — forked from devmacrile/writeTDE.r
Write R data.frame to a Tableau data extract file (.tde)
# Write R data.frame to a Tableau data extract file (.tde) by building and executing
# a python script which utilizes the Tableau data extract API (a hack, yes).
#
# This, naturally, has a hard dependency on the TDE API, so is only available for
# Windows and Linux systems (unfortunately)
#
# Devin Riley
# October, 2014
@Btibert3
Btibert3 / upload_rest.py
Created June 26, 2017 15:09 — forked from wadewegner/upload_rest.py
Upload attachment to Salesforce using Python
import requests
import base64
import json
from simple_salesforce import Salesforce
userName = ''
password = ''
securityToken = ''
instance = ''
@Btibert3
Btibert3 / calc_age.r
Created July 17, 2018 02:40 — forked from mmparker/calc_age.r
Calculate years of age at a given date
# Calculate age at a given reference date
# Create an interval between the date of birth and the enrollment date;
# intervals are specific to the two dates. Periods give the actual length
# of time between those dates, so convert to period and extract the year.
calc_age <- function(birthDate, refDate = Sys.Date()) {
require(lubridate)