Skip to content

Instantly share code, notes, and snippets.

View jsoma's full-sized avatar

Jonathan Soma jsoma

View GitHub Profile
@jsoma
jsoma / lumber-prices.csv
Created December 3, 2021 15:33
Time-series lumber prices analysis for video walkthrough at https://youtu.be/4j9LcUPlKwA
open high low close date
$407.00 $424.70 $377.00 $424.70 1996-12-09T00:00:00
$426.00 $450.50 $395.00 $411.40 1997-01-02T00:00:00
$408.50 $421.50 $382.10 $383.50 1997-02-03T00:00:00
$386.00 $389.70 $355.00 $380.50 1997-03-03T00:00:00
$378.00 $417.50 $376.50 $403.10 1997-04-01T00:00:00
$401.90 $404.40 $370.10 $380.50 1997-05-01T00:00:00
$387.50 $393.10 $347.10 $378.00 1997-06-02T00:00:00
$380.60 $380.90 $332.00 $343.70 1997-07-01T00:00:00
$342.00 $365.90 $341.10 $356.70 1997-08-01T00:00:00
@jsoma
jsoma / idols.ipynb
Created December 3, 2021 15:26
Notebook and data for kpop idols analysis video https://youtu.be/XHnBUaHvbeo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsoma
jsoma / 00 - Scraping basics for Selenium.ipynb
Created December 2, 2021 01:13
Jupyter notebook of an exercise about scraping with Selenium into a pandas dataframe. YouTube video here: https://youtu.be/G2spsjuyIwE
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsoma
jsoma / Plotting data in groups and preparing data for plotting in groups.ipynb
Created June 28, 2021 14:43
Using pandas to plot grouped bar charts, and reshaping data to make it work
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsoma
jsoma / Using paginated APIs (4 ways!).ipynb
Created June 27, 2021 14:01
Paginated APIs with Python: Four ways!
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jsoma
jsoma / README.md
Last active April 25, 2024 14:57
How to use pandoc and Markdown to build a simple reveal.js presentation (and a bit about how to customize it, too)

Requirements

First you need to install pandoc.

I used brew install pandoc to install via Homebrew since I'm on a mac.

Writing your presentation

Make a slides.md for your slides (or name it whatever you want!). I put images in an /images/ folder. You can see how links and images and all of that work from this sample:

@jsoma
jsoma / CORS.json
Created November 20, 2020 19:07
CORS configuration for AWS S3 public files
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"*"
@jsoma
jsoma / CORS.json
Last active May 11, 2023 09:21
CORS public access (new JSON version)
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"PublicRead",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject","s3:GetObjectVersion"],
"Resource":["arn:aws:s3:::YOUR_BUCKET_NAME_GOES_HERE/*"]
}
@jsoma
jsoma / CORS.xml
Created September 4, 2020 21:08
CORS public access
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
</CORSRule>
</CORSConfiguration>
@jsoma
jsoma / README.md
Last active January 25, 2024 14:44
Installing R that works in Jupyter without the 1997 American adventure horror thriller film Anaconda

Installing R in Jupyter notebooks without Anaconda

You need to already have Jupyter installed! If you don't have Python+Jupyter set up, you could use Python Wrangler or you can honestly just go install Anaconda to get started more quickly.

Download R

You can find it at https://cloud.r-project.org. It’s hard to figure out where exactly to go, so here are direct links that might be out of date: