Skip to content

Instantly share code, notes, and snippets.

View cameronbrill's full-sized avatar
🙃
having fun

Cameron Brill cameronbrill

🙃
having fun
View GitHub Profile
@samarthdave
samarthdave / quizlet.js
Last active April 19, 2021 03:44
Get total quizlet card count on a user's profile
// requires jQuery
var items = $(".SetPreview-cardBylineWrapper");
function parseStr(strr) {
var num = strr.split(" ")[0];
return parseInt(num);
}
var total = 0;
for (var i = 0; i < items.length; i++) {
@cameronbrill
cameronbrill / quizlet.js
Last active April 19, 2021 03:43
get total number of quizlet cards made by user
z=0;
document.getElementsByClassName("SetPreview-cardBylineTermsCount").forEach(val => {z+=parseInt(val.innerText.split()[0])});
console.log(z);
@samarthdave
samarthdave / box.gif
Last active December 17, 2020 16:57
📦 Quarantine Care Package 📦
box.gif
@tigerhawkvok
tigerhawkvok / poetry-convert.py
Last active May 6, 2024 06:18
Convert a requirements.txt file to a Poetry project
#!python3
"""
Convert a requirements.txt file to a Poetry project.
Just place in the root of your working directory and run!
"""
sourceFile = "./requirements.txt"
import re
import os
@sevkin
sevkin / url_open.go
Last active April 11, 2024 08:20
golang open url in default browser
// https://stackoverflow.com/questions/39320371/how-start-web-server-to-open-page-in-browser-in-golang
// open opens the specified URL in the default browser of the user.
func open(url string) error {
var cmd string
var args []string
switch runtime.GOOS {
case "windows":
cmd = "cmd"
args = []string{"/c", "start"}
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 6, 2024 07:22
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@staltz
staltz / introrx.md
Last active May 9, 2024 07:59
The introduction to Reactive Programming you've been missing