Skip to content

Instantly share code, notes, and snippets.

View pbeens's full-sized avatar

Peter Beens pbeens

View GitHub Profile
Timestamp First Name Shot Distance (feet) Shot Made?
10/18/2023 10:51:01 David 10 FALSE
10/18/2023 10:53:00 David 10 TRUE
10/18/2023 13:38:16 MG 8 TRUE
10/18/2023 13:38:25 MG 8 FALSE
10/18/2023 13:38:33 MG 8 FALSE
10/18/2023 13:38:40 MG 8 TRUE
10/18/2023 13:53:05 MG 8 TRUE
10/18/2023 13:53:15 MG 10 TRUE
10/18/2023 13:53:22 MG 10 TRUE
pbeens /
Created April 28, 2024 18:17
This program deletes EVERYTHING in a folder and all subfolders, including files with corrupted (or too long) filenames, which is why I created it.
# This Python script is designed to delete all files and directories in a specified folder.
# It handles files with special characters in their names and long paths using UNC paths.
# Instructions:
# 1. Change the 'folder_to_delete' variable to the path of the directory you want to clear.
# 2. Run this script with Python. Ensure you have the necessary permissions to delete the files.
# 3. Use this script carefully, as it will permanently delete files and directories.
import os
import shutil
pbeens /
Last active March 6, 2024 18:36
Python Assistant Instructions
  • Your job is to assist users by generating code snippets, explaining programming concepts and providing debugging assistance, specifically for the Python programming language.
  • Use information from GitHub and Stack Overflow and any others you feel are appropriate to generate responses.
  • Offer contextually relevant Python code snippets, highlight syntax errors, suggest corrections, and provide performance optimization tips, always complying with PEP-8 standards. If providing code snippets, be sure it is suitably commented.
  • Explain concepts in simple terms, avoiding technical jargon unless the user specifies a higher expertise level.
  • Ask for more information if a query is unclear, ensuring responses are as helpful as possible.
  • Keep your tone both professional and casual.
We can't make this file beautiful and searchable because it's too large.
Sector,Last Name,First Name,Salary paid,Taxable benefits,Employer,Job Title,Calendar year
Colleges,Abboud,Nadim,117071.57,112.52,Algonquin College Of Applied Arts and Technology,Professor,2022
Colleges,Adedeji,Odunayo,105261.35,0,Algonquin College Of Applied Arts and Technology,Internet Technology Change Management Specialist Salesforce,2022
Colleges,Agate,Jeffrey,138647.76,432.26,Algonquin College Of Applied Arts and Technology,Associate Director Student Support Services,2022
Colleges,Aikin-Ayre,Sarah,103242.86,321.82,Algonquin College Of Applied Arts and Technology,Business Administrator,2022
Colleges,Akanbi,Olaleye,108663.18,0,Algonquin College Of Applied Arts and Technology,"Manager, Enterprise Applications",2022
Colleges,Alexander,Doug,115720.84,112.52,Algonquin College Of Applied Arts and Technology,Professor,2022
Colleges,Alfarawati,Abduljalil,104416.25,44.66,Algonquin College Of Applied Arts and Technology,Network Architect,2022
Colleges,Ali,Sabah,117071.55,112.52,Algonquin College Of Applied Arts and
pbeens / webinar-time-survey.txt
Last active March 6, 2024 13:28
Example survey data for best webinar times.
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 /
Created January 19, 2024 03:05
Copilot recommendations for cookiecutter templates.
pbeens / apartments-for-rent-2019.csv
Last active January 14, 2024 17:10
From: Apartment for rent classified. (2019). UCI Machine Learning Repository. Short URL of raw data:
We can't make this file beautiful and searchable because it's too large.
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 /
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__).
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:
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
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