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
function ImageCache(cache) { | |
cache = ChunkyCache(cache || CacheService.getScriptCache()); | |
return { | |
putBlob: function (key, value, timeout) { | |
cache.put(key, Utilities.base64Encode(value.getBytes()), timeout); | |
}, | |
getBlob: function (key) { | |
var rawBytes = cache.get(key); | |
if (rawBytes) { |
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/bash | |
# Author: Rick Cogley | |
# Updated: 27 Jan 2016 | |
# Purpose: For use in a Mac OS X automator action, set to watch a screenshot folder. | |
# Assumes: | |
# GOPATH is set | |
# drive is installed (https://github.com/odeke-em/drive) | |
# there is a folder initialized with "drive init" | |
DRIVEINITPATH=$HOME/gdrive |