This file contains 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 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 |
This file contains 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
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') |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
const re = /billionaire/gi; | |
const replacer = (match) => { | |
if(match === "Billionaire") { | |
return "Oligarch"; | |
} | |
else if(match === "BILLIONAIRE") { | |
return "OLIGARCH"; | |
} | |
else { |
This file contains 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
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') |
OlderNewer