Skip to content

Instantly share code, notes, and snippets.


Taisuke Fukuno taisukef

View GitHub Profile
taisukef / geo3x3.sls
Last active Feb 25, 2021 — forked from SaitoAtsushi/geo3x3.sls
Geo3x3 in Scheme (R6RS)
View geo3x3.sls
(library (geo3x3)
(export encode decode)
(import (rnrs))
(define (encode lat lng level)
(assert (real? lat))
(assert (real? lng))
(assert (integer? level))
(assert (> level 0))
View pdf2png.m
/* * complie
gcc --std=c99 -Wall -g -o pdf2png pdf2png.m -framework Cocoa
#import <Cocoa/Cocoa.h>
static NSString* dumpPNG(CGPDFPageRef page, NSURL* outDir) {
size_t num = CGPDFPageGetPageNumber(page);
assert(num > 0);