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
#!/usr/bin/env python | |
from os import walk, chdir, mkdir | |
from os.path import join, splitext | |
from subprocess import call | |
from shutil import copyfile, rmtree | |
from random import seed, randint | |
from uuid import uuid4 | |
# Batches ffmpeg commands to make GIFs. | |
# Install https://ffmpeg.org/ |
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
{"item 1 todo": | |
{"c": ["saa", "asa", "a"], | |
"d": null, | |
"p": 4, | |
"cats": "saa, asa, a, ", | |
"t": "20120505175158", | |
"time": "2012 - 5 - 4" | |
}, | |
"item 2": | |
{"c": ["rgrgr", "wfgw", "hh"], |
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 os | |
dir = "blog" | |
# Walk from a dir returning the results of function. | |
# The path below the dir should be set out in date format. | |
# path example: /YYYY/MM/DD/file.ext | |
# path example: /2012/01/30/file.txt | |
def walk_dates_and_apply( dir, function, desc ): | |
for walking in os.walk( dir, topdown = desc ): |
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 xml.dom.minidom | |
import datetime | |
import time | |
import os | |
import urllib | |
import sys | |
def filterName( node, name ): | |
return node.nodeType == node.ELEMENT_NODE and node.localName == name |