Skip to content

Instantly share code, notes, and snippets.

View Avery2's full-sized avatar

Avery Chan Avery2

View GitHub Profile
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Justin \"Avery\" Chan",
"label": "Programmer",
"image": "face.png",
"email": "justinaverychan@gmail.com",
"phone": "(734) 418-3290",
"url": "https://www.averychan.site/",
"summary": "A programmer.",
🌞 Morning 3.6% ▊░░░░░░░░░░░░░░░░░░░░
🌆 Daytime 36.2% ███████▌░░░░░░░░░░░░░
🌃 Evening 36.8% ███████▋░░░░░░░░░░░░░
🌙 Night 23.3% ████▉░░░░░░░░░░░░░░░░
.DS_Store
import os
from os import listdir
from os.path import isfile, join
mypath = "."
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
onlypdf = [f for f in onlyfiles if f.split('.')[1] == "pdf"]
# os.system("ls *.pdf")
# print(onlyfiles)
@Avery2
Avery2 / gist:942228c46f3fe43b446cb31f212d6460
Last active October 23, 2021 22:33
sequence of list comprehension
goo = []
for x in range(5):
a = []
for y in range(5):
b = []
for z in range(5):
b.append((x+y+z, x+y-z))
a.append(b)
goo.append(a)
import requests
import json
import os
from dotenv import load_dotenv
load_dotenv()
my_key = os.getenv("MY_SECRET_KEY")
request_url = ""
@Avery2
Avery2 / puppy.html
Created November 28, 2021 02:59 — forked from jffry/puppy.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>puppy.jpg</title>
<style>
/* nothing to see here */
img {
width: 300px;
@Avery2
Avery2 / 🐍
Last active December 1, 2021 05:17
Python scripts
https://github.com/Avery2/EmailScraper
https://github.com/Avery2/things3notionscript
https://github.com/Avery2/try-GPT
x = [i*"hi" for i in range(1, 10)]
print(x)
# print(x[0], x[1])
# print(*x)
print(*x, sep="\n", end="\n"*2)
print(*x, sep="\n", end="\n"*2)
print(*x, sep="\n", end="\n"*2)
@Avery2
Avery2 / refresh.yml
Created January 13, 2022 15:19
Workflow for GitHub actions to trigger page rebuild. Token with repo access required.
name: Refresh
on:
workflow_dispatch:
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- name: Trigger GitHub pages rebuild