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
@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 / 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 / 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>...
ms = readRDS("mission-statements.rds")
glimpse(ms)
mscorp = corpus(ms$mission)
metadoc(mscorp, "unitid") = ms$unitid
ndoc(mscorp)
sum(ntoken(mscorp))
hist(ntoken(mscorp))
kwic(mscorp, "education", window=3)
msdfm = dfm(mscorp,
stem = T,
@Btibert3
Btibert3 / README.md
Last active February 16, 2021 00:03

Title

Header 2

H3

h4

  • Item 1
  • Item 2
  1. This is item 1
  2. This is item 2
// const reqParent = document.getElementById("tfa_430");
const birthDateString = document.getElementById("tfa_327");
console.log(birthDateString);
const birthDate = Date(birthDateString);
console.log(birthDate);
const compareDate = Date();
if (birthDate > compareDate) {
console.log("test compare is true");
document.getElementById("tfa_430").checked = true;
}
@Btibert3
Btibert3 / README.md
Last active October 12, 2020 15:41
take input from a user

About this code snippet

I am looking for some help or I want to remember how I solved a certain problem.