Skip to content

Instantly share code, notes, and snippets.

View pbeens's full-sized avatar

Peter Beens pbeens

View GitHub Profile
@pbeens
pbeens / webinar-time-survey.txt
Last active February 24, 2024 12:00
Example survey data for best webinar times.
View webinar-time-survey.txt
4:00 p.m.
8:00 p.m.
7:00 p.m.
7:00 p.m.
7:00 p.m.
5:00 p.m.
8:00 p.m.
4:00 p.m.
7:00 p.m.
4:30 p.m.
@pbeens
pbeens / Cookie-cutter.md
Created January 19, 2024 03:05
Copilot recommendations for cookiecutter templates.
View Cookie-cutter.md
@pbeens
pbeens / apartments-for-rent-2019.csv
Last active January 14, 2024 17:10
From: Apartment for rent classified. (2019). UCI Machine Learning Repository. https://doi.org/10.24432/C5X623. Short URL of raw data: https://bit.ly/3O3XXK3
View apartments-for-rent-2019.csv
We can't make this file beautiful and searchable because it's too large.
id;category;title;body;amenities;bathrooms;bedrooms;currency;fee;has_photo;pets_allowed;price;price_display;price_type;square_feet;address;cityname;state;latitude;longitude;source;time
5668626895;housing/rent/apartment;Studio apartment 2nd St NE, Uhland Terrace NE, Washington, DC 20002;This unit is located at second St NE, Uhland Terrace NE, Washington, DC 20002, Washington, 20002, DCMonthly rental rates range from $790 - $1090We have studio units available for rent;null;null;0;USD;No;Thumbnail;None;790;$790;Monthly;101;null;Washington;DC;38.9057;-76.9861;RentLingo;1577359415
5664597177;housing/rent/apartment;Studio apartment 814 Schutte Road;This unit is located at 814 Schutte Road, Evansville, 47712, INMonthly rental rates range from $425 - $445We have studio - 1 beds units available for rent;null;null;1;USD;No;Thumbnail;None;425;$425;Monthly;106;814 Schutte Rd;Evansville;IN;37.9680;-87.6621;RentLingo;1577017063
5668626833;housing/rent/apartment;Studio apartment N Scott St, 14th St N, Arlington, VA 22209;Th
@pbeens
pbeens / save_in_file_dir.py
Created January 12, 2024 15:36
This Python script saves a file with the specified filename to the current working directory using the os module. The current working directory is determined by calling os.path.dirname(__file__).
View save_in_file_dir.py
import os
# Get the current working directory
current_dir = os.path.dirname(__file__)
# Create a file path that includes the current working directory
file_path = os.path.join(current_dir, "filename.txt")
# Save the file with the file path
with open(file_path, "w") as file:
View ontario-course-enrolment-en_21-22.txt
Course Code|Course Description|Grade|Pathway or Destination|Enrolment
ADA1O|Drama|Grade 9|Open (Grade 9 - 12 level)|28515
ADA2O|Drama|Grade 10|Open (Grade 9 - 12 level)|18525
ADA3M|Drama|Grade 11|University/College Preparation (Grade 11 & 12 level)|7715
ADA3O|Drama|Grade 11|Open (Grade 9 - 12 level)|1330
ADA4E|Drama|Grade 12|Workplace Preparation (Grade 11 & 12 level)|150
ADA4M|Drama|Grade 12|University/College Preparation (Grade 11 & 12 level)|4835
ADB1O|Drama - Musical Theatre|Grade 9|Open (Grade 9 - 12 level)|115
ADB2O|Drama - Musical Theatre|Grade 10|Open (Grade 9 - 12 level)|215
ADB3M|Drama - Musical Theatre|Grade 11|University/College Preparation (Grade 11 & 12 level)|375
View country-by-region-2023.csv
Country Region
Afghanistan Asia & Pacific
Aland Islands Europe
Albania Europe
Algeria Arab States
American Samoa Asia & Pacific
Andorra Europe
Angola Africa
Anguilla South/Latin America
Antarctica Asia & Pacific
View Birthnames-Canada-2022.csv
We can't make this file beautiful and searchable because it's too large.
"REF_DATE","GEO","DGUID","Sex at birth","First name at birth","Indicator","UOM","UOM_ID","SCALAR_FACTOR","SCALAR_ID","VECTOR","COORDINATE","VALUE","STATUS","SYMBOL","TERMINATED","DECIMALS"
"2022","Canada","2021A000011124","Male","AABIR","Frequency","Number","223","units","0","v1566923773","1.1.15788.1","5","","","","0"
"2022","Canada","2021A000011124","Male","AABIR","Rank","Number","223","units","0","v1566924421","1.1.15788.2","2778","","","","0"
"2022","Canada","2021A000011124","Male","AABIR","Proportion (%)","Percent","239","units","0","v1566925069","1.1.15788.3","0.0033","","","","4"
"2022","Canada","2021A000011124","Male","AADAM","Frequency","Number","223","units","0","v1491674875","1.1.2.1","7","","","","0"
"2022","Canada","2021A000011124","Male","AADAM","Rank","Number","223","units","0","v1491690662","1.1.2.2","2218","","","","0"
"2022","Canada","2021A000011124","Male","AADAM","Proportion (%)","Percent","239","units","0","v1491706449","1.1.2.3","0.0046","","","","4"
"2022","Canada","2021A000011124","Mal
@pbeens
pbeens / life-expectancy-2021.csv
Last active December 17, 2023 22:12
Life Expectancy (to 2021), Data comes from https://ourworldindata.org/life-expectancy, downloaded 2023-12-17, url='https://bit.ly/4873c3W'
View life-expectancy-2021.csv
We can't make this file beautiful and searchable because it's too large.
Entity,Code,Year,Period life expectancy at birth - Sex: all - Age: 0
Afghanistan,AFG,1950,27.7275
Afghanistan,AFG,1951,27.9634
Afghanistan,AFG,1952,28.4456
Afghanistan,AFG,1953,28.9304
Afghanistan,AFG,1954,29.2258
Afghanistan,AFG,1955,29.9206
Afghanistan,AFG,1956,30.4078
Afghanistan,AFG,1957,30.9458
Afghanistan,AFG,1958,31.5066
@pbeens
pbeens / gist:27ee7f2cc3f47ab9471a14a71aa0f45a
Last active December 17, 2023 22:13
20 Random Integers Between 1 and 10 (Inclusive), url='https://bit.ly/41GqLhD'
@pbeens
pbeens / aus_weather.csv
Created April 23, 2022 16:40
From Lighthouse Labs 21 Day Data Challenge 2022 #12 - https://data-challenge.lighthouselabs.ca/challenge/12
View aus_weather.csv
We can't make this file beautiful and searchable because it's too large.
,Date,Location,MinTemp,MaxTemp,Rainfall,Sunshine,WindSpeed9am,WindSpeed3pm,Humidity9am,Humidity3pm,Cloud9am,Cloud3pm,Temp9am,Temp3pm,RainToday,month,season
0,2008-12-01,Albury,13.4,22.9,0.6,,20.0,24.0,71.0,22.0,8.0,,16.9,21.8,No,12,summer
1,2008-12-02,Albury,7.4,25.1,0.0,,4.0,22.0,44.0,25.0,,,17.2,24.3,No,12,summer
2,2008-12-03,Albury,12.9,25.7,0.0,,19.0,26.0,38.0,30.0,,2.0,21.0,23.2,No,12,summer
3,2008-12-04,Albury,9.2,28.0,0.0,,11.0,9.0,45.0,16.0,,,18.1,26.5,No,12,summer
4,2008-12-05,Albury,17.5,32.3,1.0,,7.0,20.0,82.0,33.0,7.0,8.0,17.8,29.7,No,12,summer
5,2008-12-06,Albury,14.6,29.7,0.2,,19.0,24.0,55.0,23.0,,,20.6,28.9,No,12,summer
6,2008-12-07,Albury,14.3,25.0,0.0,,20.0,24.0,49.0,19.0,1.0,,18.1,24.6,No,12,summer
7,2008-12-08,Albury,7.7,26.7,0.0,,6.0,17.0,48.0,19.0,,,16.3,25.5,No,12,summer
8,2008-12-09,Albury,9.7,31.9,0.0,,7.0,28.0,42.0,9.0,,,18.3,30.2,No,12,summer