Skip to content

Instantly share code, notes, and snippets.

View pbeens's full-sized avatar

Peter Beens pbeens

View GitHub Profile
@pbeens
pbeens / python_assistant.md
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.
@pbeens
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.
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
pbeens / Cookie-cutter.md
Created January 19, 2024 03:05
Copilot recommendations for cookiecutter templates.
@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
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__).
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
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 / gist:27ee7f2cc3f47ab9471a14a71aa0f45a
Last active December 17, 2023 22:13
20 Random Integers Between 1 and 10 (Inclusive), url='https://bit.ly/41GqLhD'
6
8
6
2
10
8
6
3
7
8