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
@clouedoc
clouedoc / Migrating from Arc to Zen Browser.md
Created September 20, 2024 08:57
Migrating from Arc to Zen Browser

A guide to leaving Arc for Zen Browser

The problem with Arc is that it doesn't allow exporting data (history, bookmarks) to a file natively.

One way to do this is to use a script but that only exports Bookmarks and not the history.

I don't really use the bookmarks feature that much; what I really liked about Arc was that it was really easy to navigate to somewhere I already visited.

So, if you're like me, follow this guide and you'll be able to import your browsing history into Zen browser!

@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 December 11, 2024 16:22
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 September 30, 2025 18:24
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 October 23, 2025 06:26
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 October 22, 2025 12:20
The introduction to Reactive Programming you've been missing