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
import os | |
import sys | |
import tempfile | |
import argparse | |
import subprocess | |
NATURAL_FPS = 30. | |
# Formats convertible by imagemagick: | |
CONVERTIBLE_EXTENSIONS = ['png', 'jpeg', 'jpg', 'pdf', 'pgm', 'bmp'] |
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/local/bin/python | |
import os | |
import sys | |
import shutil | |
import datetime | |
WORKLOG_DIR = 'Worklogs' | |
datetime_fmt = '%Y %m %d %I.%M%p' # eg: "2014 01 03 11.45AM" |
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
uint8_t ComputeMax(const uint8_t* image, size_t width, size_t height, size_t stride) { | |
uint8_t m = 0; | |
for (int i = 0; i < height; i++) { | |
const uint8_t* p = &image[i*stride]; | |
for (int j = 0; j < width; j++) { | |
if (*p > m) { | |
m = *p; | |
} | |
p++; |
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
/** | |
* Author: [email protected] | |
* Date: December 16, 2012 | |
* | |
* A google apps script that reminds me that I have a package delivery. It | |
* schedules an SMS for the time I arrive home (about 6:30pm) on any day when | |
* I receive an email with a certain label. | |
*/ | |
//////////////////////////////////////////////////////////////////////////////// |
NewerOlder