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
Verifying that "riccardo.id" is my Blockstack ID. https://onename.com/riccardo |
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 rx | |
from rx import Observable | |
import os | |
def check_changes(previous, cur): | |
current_modify_date = -1 | |
filename = previous['filename'] | |
if os.path.isfile(filename): | |
current_modify_date = os.path.getmtime(filename) |
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
Verifying that +riccardo is my blockchain ID. https://onename.com/riccardo |
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/python | |
import sys | |
import CoreGraphics | |
RESIZE_WIDTH = 100 | |
RESIZE_HEIGHT = 100 | |
def resizeimage(source_image_file, target_image_file, target_width, target_height): | |
source_image = CoreGraphics.CGImageImport (CoreGraphics.CGDataProviderCreateWithFilename(source_image_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
#! /usr/bin/python | |
# | |
import sys | |
import os | |
import tempfile | |
from Quartz.CoreGraphics import * | |
from os.path import splitext | |
from os.path import basename | |
from os.path import join |