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 flask import Flask, send_file, send_from_directory | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
import os | |
NBCONVERT_PATH = '../nbconvert/nbconvert.py' | |
TARGET_IPYNB = 'presentation.ipynb' | |
TARGET_HTML = 'presentation_slides.html' | |
def nbconvert(): |
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
/* SETTINGS */ | |
var l=''; | |
var p=''; | |
var area = 'https://www.ingress.com/intel?ll=35.5841133,139.4988137&z=14'; | |
var v = 20000; //Delay between capturing screenshots, in milliseconds (1000 ms = 1 s) | |
var reloadtime = 60000 * 120; | |
var width = 900; //Picture width | |
var height = 500; //Picture height | |
var folder = './'; //Folder where to save screenshots, with / (or \) on the end. '.' means current folder. | |
phantom.injectJs('settings.js'); |
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
#!/bin/bash | |
# TODO: skip tiny files (so small they couldn't be photos) | |
# TODO: make sure sym links and other file system oddities are handled | |
# TODO: look at paralellization for perf boost | |
# | |
# Constants | |
# | |
CHAR_COUNT=12 | |
BLOCK_COUNT=6 |