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
| include header path: /usr/include/GraphicsMagick/ | |
| boost lib: boost_python | |
| library path: /usr/lib64/libGraphicsMagick++ | |
| GraphicsMagick version: 1.3.23 | |
| running install | |
| running bdist_egg | |
| running egg_info | |
| creating pgmagick.egg-info | |
| writing pgmagick.egg-info/PKG-INFO | |
| writing top-level names to pgmagick.egg-info/top_level.txt |
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/env python | |
| import sys | |
| import re | |
| import argparse | |
| RE_STARTLINE = re.compile("[0-9]? @ 0x") | |
| RE_STACKINFO_LINE = re.compile("#\t0x") | |
| GOROUTINE_NUM_COLOR = 11 | |
| COLOR_LEVELS = [196, 202, 208, 214, 248, 250, 252] |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/credentials" | |
| "github.com/aws/aws-sdk-go/service/cloudfront" | |
| ) |
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 os | |
| from fnmatch import fnmatch | |
| import autopep8 | |
| root = '.' | |
| cmd_args = ['dummy', '-d'] | |
| args = autopep8.parse_args(cmd_args) | |
| for dirname, dirs, files in os.walk(root): | |
| print(dirname, dirs, files) |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/credentials" | |
| "github.com/aws/aws-sdk-go/service/s3" |
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 pgmagick as pg | |
| def gen_line_png(line_width): | |
| img = pg.Image(pg.Geometry(200, 200), "white") | |
| img.type(pg.ImageType.TrueColorMatteType) | |
| coords = pg.CoordinateList() | |
| drawables = pg.DrawableList() | |
| blankColor = pg.Color() |
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
| #include <stdio.h> | |
| #include <Magick++.h> | |
| using namespace Magick; | |
| void gen_line_png(float line_width) | |
| { | |
| Image image = Image(Geometry(200, 200), Color("white")); | |
| char filename[50]; | |
| CoordinateList coords; |
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
| // | |
| // ## reverse-reverse-proxy | |
| // This is reverse(rotate) image proxy server. | |
| // This is my toy Go project:-) | |
| // | |
| // ``` | |
| // +-----------+ request +--------------+ request +-------------+ | |
| // | client |----------->| rrp |----------->| target host | | |
| // | (browser) |<-----------| |<-----------| | | |
| // +-----------+ response +--------------+ response +-------------+ |
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 slowfast | |
| N = 5000000 | |
| setup = """\ | |
| t = 11 | |
| tt = [22, 11, 55] | |
| """ | |
| one = """\ | |
| if not (t in tt): |
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
| ===== ===== | |
| (slow) 0.481754[sec] | |
| math.pow(13 * 0.3, 2) | |
| math.pow(2 * 1, 0.5) | |
| math.pow(0.2 * 0.2, 0.5) | |
| (fast) 0.026431[sec] | |
| (13 * 0.3) ** 2 | |
| (2 * 1) ** 0.5 |