This gist is out of date The project now has a true git repository: https://github.com/lovasoa/dezoomify
This script makes one downloadable image from an image viewable via a flash zoomify interface.
| ================================================================ | |
| 3dpf_golb1.pff 100,944 bytes | |
| ================================================================ | |
| ================================================================ | |
| (Unknown) 136 bytes | |
| ================================================================ | |
| [ 0000h ] (Unknown) 136 bytes | |
| 0000h: 00000000 00000000 0000006A 00000000 ...........j.... | |
| 0010h: 00000000 00000000 3FC90FDB 00000000 ........?É.Û.... |
This gist is out of date The project now has a true git repository: https://github.com/lovasoa/dezoomify
This script makes one downloadable image from an image viewable via a flash zoomify interface.
| This gist demonstrates how to do a map-side join, loading one small dataset from DistributedCache into a HashMap | |
| in memory, and joining with a larger dataset. | |
| Includes: | |
| --------- | |
| 1. Input data and script download | |
| 2. Dataset structure review | |
| 3. Expected results | |
| 4. Mapper code | |
| 5. Driver code |
| extern crate num; | |
| //use std::num::One; | |
| use num::traits::One; | |
| use std::cmp::PartialOrd; | |
| use std::ops::{Add, Sub}; | |
| fn fib<T>(n: T) -> T where | |
| T: One + PartialOrd + Add<Output=T> + Sub<Output=T> + Clone { | |
| if n < T::one() + T::one() { |
| /** pe | |
| * @argument f: the multiple-argument function to turn into a partially-evaluatable | |
| * @returns : A single-argument function that applies its argument as the first argument of f, and returns the partially-evaluated function | |
| * @exemple: pe((a,b)=>a+b)(9)(1) === 10 | |
| */ | |
| function pe(f, context, args) { | |
| if(!args) args = []; | |
| if (args.length === f.length) return f.apply(context, args); | |
| return function partial (a) { | |
| var args_copy = args.concat.apply(args, arguments); |
| import logging | |
| import numpy as np | |
| import tensorflow as tf | |
| from tensorflow.contrib import layers | |
| GO_TOKEN = 0 | |
| END_TOKEN = 1 | |
| UNK_TOKEN = 2 |
| import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs"; | |
| Comlink.transferHandlers.set("WORKERSQLPROXIES", { | |
| canHandle: obj => false, | |
| serialize(obj) { | |
| const { port1, port2 } = new MessageChannel(); | |
| Comlink.expose(obj, port1); | |
| return [port2, [port2]]; | |
| }, | |
| deserialize: (port) => { |
| #!/usr/bin/env bash | |
| function house_builder() { | |
| # floors,rooms,has_garage | |
| echo "0,0,0" | |
| } | |
| function set_field() { | |
| local f r g | |
| IFS=, read f r g |