- Open up the terminal
- Make sure you go to the home directory via:
cd ~
- Create a new folder called sfdc via:
mkdir sfdc
- Change into that directory via :
cd sfdc
- Copy the contents of the file into
docker-compose.yml
into that directory. In the terminal,ls
should print outdocker-compose.yml
- Make sure the docker app is running on your machine
- In the terminal, run the command
docker-compose up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "A Basic HTML Report that accepts params" | |
format: | |
html: | |
embed-resources: true | |
--- | |
```{python} | |
#| tags: [parameters] | |
#| echo: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Diamonds Dataset Analysis" | |
format: | |
revealjs: | |
embed-resources: true | |
--- | |
```{python} | |
#| echo: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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>... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
NewerOlder