This file contains hidden or 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
@font-face { | |
font-family: "Fira Code NF"; | |
font-style: normal; | |
font-weight: 200; | |
src: url('https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/FiraCode/Light/complete/Fura%20Code%20Light%20Nerd%20Font%20Complete%20Mono.ttf' format('truetype')); | |
} | |
@font-face { | |
font-family: "Fira Code NF"; |
This file contains hidden or 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 __future__ import print_function | |
from datetime import datetime | |
import pytz | |
epoch_time = 1493307387 | |
dt1 = datetime.fromtimestamp(epoch_time) | |
print("Local time:", dt1) | |
print("Not tz aware:", dt1.tzinfo) | |
print() |
This file contains hidden or 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 os | |
import random | |
import threading | |
import uuid | |
from persistent_queue import PersistentQueue | |
random.seed(5) | |
filename = '{}'.format(str(uuid.uuid4()).replace('-', '')) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
#!/usr/bin/env python | |
import re | |
import operator | |
import re | |
RE_REF = "\\[(.+?)\\]:\\s*(\\S+(\\s+?\".*\")?)\\s*" | |
RE_LINK = "\\((https?://(.+?))\\)" | |
This file contains hidden or 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
#!/usr/bin/env python | |
import re | |
from datetime import datetime | |
# <COMPOUND_STATEMENT> : <STATEMENT> (and <COMPOUND_STATEMENT>)* | |
# <STATEMENT> : <ABS_TIME> to <ABS_TIME> (<REL_OPERATOR> <REL_TIME>)* | |
# <REL_OPERATOR> : -, + | |
# <ABS_TIME> : XX:XX AM|PM | |
# <REL_TIME> : X+ min|hour|mins|hours |
This file contains hidden or 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
#!/usr/bin/env python | |
import re | |
import urllib | |
import requests | |
import random | |
import operator | |
_VERSION_ = 1.6 |
This file contains hidden or 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
#!/bin/python | |
import os | |
directory = '/Users/philiplundrigan/Dropbox/Journal_dayone/entries' | |
src_directory = '/Users/philiplundrigan/Documents/Journal Backups/Journal Backup (2012)/Journal Backup (2012)'.replace(' ', '\ ').replace('(', '\(').replace(')', '\)') | |
def getDate(file): | |
for line in open(directory + '/' + file): |
This file contains hidden or 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 optparse import OptionParser | |
from HTMLParser import HTMLParser | |
import os | |
import glob | |
import sys | |
import re | |
class Entry(): | |
def __init__(self): | |
self.tags = [] |