Skip to content

Instantly share code, notes, and snippets.

View Btibert3's full-sized avatar

Brock Tibert Btibert3

View GitHub Profile
---
title: "A Basic HTML Report that accepts params"
format:
html:
embed-resources: true
---
```{python}
#| tags: [parameters]
#| echo: false
---
title: "Diamonds Dataset Analysis"
format:
revealjs:
embed-resources: true
---
```{python}
#| echo: false
###############################################################################
# Author: @BrockTibert
# Purpose: Collect Historical NHL Skater Stats 1960 - 2011 (in progress)
# Date: February 2011
#
# Used: R Version 2.12.1, Windows 7 Pro, StatET Plugin for Eclipse
#
# # Copyright (c) 2011, under the Simplified BSD License.
# For more information on FreeBSD see: http://www.opensource.org/licenses/bsd-license.php
# All rights reserved.
@Btibert3
Btibert3 / docker-compose.yml
Created August 3, 2023 23:09
Neo4j 5.10 Docker Compose with APOC and GDS
version: '3.8'
services:
neo4j:
# modified from: https://github.com/neo4j-examples/nlp-knowledge-graph/blob/master/docker-compose.yml
image: neo4j:5.10.0-enterprise
container_name: "neo4j-5.10"
# https://stackoverflow.com/questions/75018323/problem-installing-a-plugin-in-docker-container-of-neo4j
volumes:
- ./neo4j/data:/data
@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 / moneypuck-pandas.py
Created January 18, 2022 00:53
Moneypuck dataset import using python for RapidMiner
# SOURCE (and adapted from): https://stackoverflow.com/a/46676405/155406
import requests, zipfile, io
import pandas
# use requests to get the dataset, get the zipfile, and use pandas to read the csv
# the site blocks certain requests, but ironically allows wget from Google Colab
def rm_main():
# get the data
URL = ("https://peter-tanner.com/moneypuck/downloads/shots_2021.zip")
r = requests.get(URL)
@Btibert3
Btibert3 / rmongodb-tutorial.md
Last active November 8, 2021 01:13
Basic Overview of using the rmongodb package for R.

rmongodb Tutorial

This is a quick document aimed at highlighting the basics of what you might want to do using MongoDB and R. I am coming at this, almost completely, from a SQL mindset.

Install

The easiest way to install, I believe, is

@Btibert3
Btibert3 / Cluster NHL Players.R
Created February 6, 2011 18:57
Pull in Web data, and cluster them based on performance
###############################################################################
# Author: @BrockTibert
#
# Used: R Version 2.12.1, Windows 7 Pro, StatET Plugin for Eclipse
#
#
###############################################################################
#-----------------------------------------------------------------------
# set up script level basics
@Btibert3
Btibert3 / README.md
Last active September 19, 2021 23:40
MySQL 5 docker-compose

Steps

  1. Open up the terminal
  2. Make sure you go to the home directory via: cd ~
  3. Create a new folder called sfdc via: mkdir sfdc
  4. Change into that directory via : cd sfdc
  5. Copy the contents of the file into docker-compose.yml into that directory. In the terminal, ls should print out docker-compose.yml
  6. Make sure the docker app is running on your machine
  7. In the terminal, run the command docker-compose up
# challenge from charlie
#-----
# Write a function called "reconcileHelper" that processes two arrays of integers.
# Each array passed in will have only distinct numbers (no repeats of the same integer in
# the same array), and the arrays are not sorted.
# Your job is to find out which numbers are in array a, but not array b,
# and which numbers are in array b, but not in array a.
# Your function should return a string formatted as so:
# "Numbers in array a that aren't in array b:
# <num1> <num2> <num3>...