Skip to content

Instantly share code, notes, and snippets.

@Noleli
Noleli / simplenote-to-bear.py
Created April 24, 2023 12:37
Simplenote to Bear converter
from subprocess import run
import os
import json
from datetime import datetime
# path to input JSON
in_path = os.path.join(os.environ['HOME'], 'Downloads/notes/source/notes.json')
# path to output directory. it must exist.
out_path = os.path.join(os.environ['HOME'], 'Downloads/for-bear')
@Noleli
Noleli / replace.js
Created March 7, 2022 00:43
Billionaire-to-oligarch browser extension
const re = /billionaire/gi;
const replacer = (match) => {
if(match === "Billionaire") {
return "Oligarch";
}
else if(match === "BILLIONAIRE") {
return "OLIGARCH";
}
else {
@Noleli
Noleli / rosh_hashana_weekdays.ipynb
Created October 1, 2020 23:13
Rosh Hashana occurences by day of the week
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Noleli
Noleli / days between chanukahs.ipynb
Created December 22, 2019 18:10
Sure seems like it’s been a while since Chanukah, doesn’t it.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Noleli
Noleli / shabbos rosh khodesh khanuka occurences.ipynb
Created December 9, 2018 17:45
How often is Shabbos Khanuka Rosh Khodesh?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Noleli
Noleli / vowel search.ipynb
Created December 10, 2017 18:41
Searching for a pasuk with all the vowels
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Noleli
Noleli / nvalttobear.py
Created March 22, 2017 21:53
A Python script to add Notational Velocity/nvALT tags as hashtags for Bear
from subprocess import check_output
import re
import os
from shutil import copy2 as copy
# adjust paths to your liking
path = os.environ['HOME'] + '/Dropbox/Preferences/Notational Data/'
outpath = os.environ['HOME'] + '/Desktop'
os.mkdir(outpath + '/export')
@Noleli
Noleli / omer.py
Created May 23, 2016 01:56
Omer counter
import math
import datetime
pesach = datetime.date(2016,4,22)
today = datetime.date.today()
totaldays = (today - pesach).days
weeks = int(math.floor(totaldays/7.0))
days = totaldays % 7
<html>
<body>
<h3>hi<br>
<h3>hi<br>
<h3>hi<br>
<h3>hi<br>
<h3>hi<br>
<h3>hi</h3>
</h3>
</h3>

Keybase proof

I hereby claim:

  • I am noleli on github.
  • I am noleli (https://keybase.io/noleli) on keybase.
  • I have a public key whose fingerprint is B3F0 0376 0B06 7743 1F3C 7A2B CC42 8A9B 4F6F 0712

To claim this, I am signing this object: