This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum RequirementTypes { | |
collection = "collection", | |
course = "course", | |
section = "section", | |
major = "major", | |
minor = "minor", | |
exam = "exam", | |
gpa = "gpa", | |
hours = "hours", | |
consent = "consent", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 12-15-2022 - lazy attempt at yeeting a quizlet deck into a format i can import into anki :) | |
// to use, copy this into your browser's console and run it. | |
// as soon as you run it, be sure to focus the tab so the copy to clipboard actually works | |
// then paste output into a text file and profit | |
setTimeout(() => navigator.clipboard.writeText(Array.from(document.getElementsByClassName("SetPageTerm-content")).reduce((acc, curr)=>{ | |
const [qEl, aEl] = curr.children | |
acc += `${qEl.innerText}; "${aEl.innerHTML.replaceAll('"', '""')}" | |
` | |
return acc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printWidth": 90, | |
"tabWidth": 4, | |
"useTabs": true, | |
"semi": true, | |
"singleQuote": false, | |
"trailingComma": "none", | |
"bracketSpacing": false, | |
"arrowParens": "always", | |
"requirePragma": false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fgh __complete "" | |
export var completionSpec: Fig.Spec = { | |
name: "fgh", | |
description: "Automate the lifecycle and organization of your cloned GitHub repositories" | |
subcommands: getCmds('fgh complete ""'), | |
args: getCmds('fgh complete --') | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// note to all who see this - i haven't tested this yet so I have no idea if it works yet | |
const puppeteer = require('puppeteer') | |
const browser = await puppeteer.launch(); | |
const color = "#00ff00" | |
const width = 1920 | |
const height = 1080 | |
const page = await browser.newPage(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run 'npm i serialport terminal-overwrite' before running this! | |
const SerialPort = require('serialport') | |
const Readline = require('@serialport/parser-readline') | |
const terminalOverwrite = require('terminal-overwrite'); | |
const BAUD_RATE=9600 | |
const PORT="ENTERYOURPORTHERE" | |
const port = new SerialPort(PORT, { baudRate: BAUD_RATE }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap'); | |
:root { | |
--background: linear-gradient(145deg, #198dd2, #1ea8f9); | |
} | |
#__next { | |
background-color: #1c9de9; | |
font-family: 'Lato', sans-serif; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a quick script I wrote to find if a string is a palindrome. | |
# I feel like there's probably a more efficient way of doing this, but it works. To my credit, I did this in about 45 minutes. | |
x = "20200202" | |
def isPalindrome(str=""): | |
if str=="": | |
return -1 | |
elif str[::1] == str: | |
return True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hey(viewer): | |
if viewer.isCool == True: | |
print('Go to my scrapbook, powered by hackclub/summer-scrapbooks!') | |
print('https://scrapbook.jasonaa.me') | |
else: | |
viewer.isCool = True | |
hey(viewer) | |
# Be cool. https://scrapbook.jasonaa.me |