Skip to content

Instantly share code, notes, and snippets.

View PyYoshi's full-sized avatar
🌍
Working from The World

MISAWA Yoshihiro PyYoshi

🌍
Working from The World
View GitHub Profile
@PyYoshi
PyYoshi / _.md
Last active October 9, 2015 03:25

GZip圧縮したものをうまいことGoogle Cloud Storageにアップロードできなかったので調べた結果,

ContentTyperインタフェースのメソッドを実装することによって解決できることがわかったので そのためのコードを残しておく.

以下サンプル

import (
...
 "google.golang.org/api/storage/v1"
extension Alamofire.Request {
public func responseObject<T: Decodable where T == T.DecodedType>(completionHandler: Response<T, NSError> -> Void) -> Self {
let responseSerializer = ResponseSerializer<T, NSError> { request, response, data, error in
guard error == nil else { return .Failure(error!) }
let JSONResponseSerializer = Request.JSONResponseSerializer(options: .AllowFragments)
let result = JSONResponseSerializer.serializeResponse(request, response, data, error)
switch result {
case .Success(let value):
package main
import "fmt"
func 後藤(i int) {
fmt.Println("Q: 後藤さんは何匹でしょう?")
if i == 1 {
goto STATUS1
} else if i == 2 {
goto STATUS2
py -3.4-32 -m pip install -U pip cython wheel
py -3.4-x64 -m pip install -U pip cython wheel
py -2.7-32 -m pip install -U pip cython wheel
py -2.7-x64 -m pip install -U pip cython wheel
py -3.4-32 setup.py bdist_wheel
py -3.4-x64 setup.py bdist_wheel
py -2.7-32 setup.py bdist_wheel
py -2.7-x64 setup.py bdist_wheel
@PyYoshi
PyYoshi / _results.txt
Last active August 3, 2018 08:47 — forked from maxpert/results.txt
JSON vs MsgPack using Gzip + LZ4
---------- RAW ----------
JSON 34291 byte(s)
MsgPack 26364 byte(s)
---------- GZIP ---------
JSON 05986 byte(s)
MsgPack 06198 byte(s)
---------- LZ4 ----------
JSON 09758 byte(s)
MsgPack 08548 byte(s)
@PyYoshi
PyYoshi / run.sh
Last active April 25, 2016 12:55 — forked from matope/string_join_benchmark.go
Golang string join benchmark
#!/bin/bash
go version
go test -benchmem -bench .

uname -a

Linux MBA62-LNX 3.19.0-23-generic #24-Ubuntu SMP Tue Jul 7 18:52:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 15.04
Release:	15.04
Codename:	vivid
@PyYoshi
PyYoshi / info.md
Created July 10, 2015 13:38
web application framework benchmarks

revision

231fdbc9b7f815abd7ff95d32d3576cb78afb91c

Host

lsb_release -a

Distributor ID:	Ubuntu
--without-pear
--with-gd
--enable-sockets
--with-jpeg-dir=/usr
--with-png-dir=/usr
--enable-exif
--enable-zip
--with-zlib
--with-zlib-dir=/usr
--with-kerberos