Skip to content

Instantly share code, notes, and snippets.

View csvoss's full-sized avatar

Chelsea Sierra Voss csvoss

View GitHub Profile
@csvoss
csvoss / stable.js
Last active August 22, 2022 19:15
fork of roam/sr
/* roam/sr - Spaced Repetition in Roam Research
Author: Adam Krivka
v1.0.1
https://github.com/aidam38/roamsr
*/
var VERSION = "v1.0.1";
if (!window.roamsr) window.roamsr = {};
#!/usr/bin/env python3
"""
Modded by Chelsea to accept filenames instead of paragraphs.
"""
import fire
import json
import os
import numpy as np
// ==UserScript==
// @name Slack De-distracter
// @namespace https://*.slack.com/*
// @version 0.1
// @description Swap out the Slack icon so I never see a red badge, and make asterisks no longer interesting
// @author Chelsea
// @match https://*.slack.com/*
// @grant none
// ==/UserScript==
@csvoss
csvoss / init.coffee
Last active May 11, 2018 21:43
Atom: Merge and close panes
# Derived from the solutions discussed at github.com/atom/atom/issues/380. In
# particular, I converted one of the Javascript solutions to Coffeescript and
# added my own modifications to ensure that panes get closed on deletion.
atom.commands.add "atom-workspace", "custom:pane-merge", ->
panes = atom.workspace.getCenter().getPanes()
firstPane = panes.shift()
for pane in panes
@csvoss
csvoss / BetterGitHubHomepage.js
Last active January 8, 2020 21:29
csvoss's GitHub Homepage++
// ==UserScript==
// @name GitHub Homepage ++
// @namespace
// @version 0.1
// @description Inject any PRs with reviews requested from me & any PRs waiting on me into the GitHub main page
// @author Chelsea Voss
// @match https://github.com/
// @grant none
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am csvoss on github.
  • I am csvoss (https://keybase.io/csvoss) on keybase.
  • I have a public key whose fingerprint is 3AC2 E93D C316 D7A5 C6D1 4593 FFAA D633 42A4 1361

To claim this, I am signing this object:

@csvoss
csvoss / extract.py
Created November 6, 2015 04:09
Convert a URL to text
"""
Parse out text, links, images, and more from an HTML file.
Modified from extract.py in https://github.com/fephsun/dialup.
For example:
import extract
e = extract.ParsedWebpage("http://en.wikipedia.org/wiki/Frog")
print e.title
print e.text
@csvoss
csvoss / english_to_tengwar.py
Last active September 18, 2023 09:48
English to Tengwar transliterator
#!/usr/bin/env python3
"""
This file converts English text to Tengwar, using my own personal preferences for
transliterating Tengwar (as extracted from the Tengwar Textbook).
Currently, the output that is created is intended for use with the Tengwar Annatar font
and related font families.
Warning: this code is extremely messy, as I basically hacked it up over the course
of a few hours between midnight and 3am one day.