One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| class Pipe(object): | |
| def __init__(self, func): | |
| self.func = func | |
| def __ror__(self, other): | |
| def generator(): | |
| for obj in other: | |
| if obj is not None: | |
| yield self.func(obj) | |
| return generator() | 
| #!/usr/bin/env python | |
| # coding=utf8 | |
| # author=evi1m0 | |
| # website=linux.im | |
| ''' | |
| 12306 Captcha Picture: | |
| author: Evi1m0@20150316 | |
| 1. Download Captcha | |
| 2. Pic Conver Text | 
| operator infix => { associativity left } | |
| func => <K : Hashable, V>(key: K, value: V) -> (K, V) { | |
| return (key, value) | |
| } | |
| let pairs: (String, Int)[] = [ | |
| "e" => 10, | |
| "t" => 7, | |
| "i" => 2 | |
| ] | 
| #!/bin/bash | |
| iterations=10 | |
| # ----------------------------------------------------------------------------- | |
| # Create array of results | |
| declare -a results | |
| for i in $(seq 1 $iterations); | 
| #!/usr/bin/env python | |
| """ | |
| # Version | |
| 2021-08-31 | |
| # Tested on | |
| Python 3.9 | 
| import json, sys, numpy as np | |
| from scipy import misc, signal | |
| from PIL import Image | |
| infile, outfile, modelpath = sys.argv[1:] | |
| model = json.load(open(modelpath)) | |
| im = Image.open(infile).convert("YCbCr") | |
| im = misc.fromimage(im.resize((2*im.size[0], 2*im.size[1]), resample=Image.NEAREST)).astype("float32") | |
| planes = [np.pad(im[:,:,0], len(model), "edge") / 255.0] | |
| for step in model: | |
| o_planes = [sum([signal.convolve2d(ip, np.float32(kernel), "valid") | 
| module Printf | |
| %default total | |
| -- Formatting AST. | |
| data Format | |
| = FInt Format | |
| | FString Format | |
| | FOther Char Format | |
| | FEnd | 
Based on the example file from the announcement blog post http://sketchplugins.com/d/87-new-file-format-in-sketch-43
type UUID = string // with UUID v4 format
type SketchPositionString = string // '{0.5, 0.67135115527602085}'
type SketchNestedPositionString = string // '{{0, 0}, {75.5, 15}}'