Skip to content

Instantly share code, notes, and snippets.

View shibukawa's full-sized avatar

Yoshiki Shibukawa shibukawa

View GitHub Profile
package main
import (
"log"
"math/rand"
"runtime"
"time"
"sync/atomic"
)
% go run -race test.go
==================
WARNING: DATA RACE
Write at 0x00c00009c000 by goroutine 7:
main.main.func2()
/Users/shibukawa/test.go:15 +0x7e
Previous write at 0x00c00009c000 by goroutine 6:
main.main.func1()
/Users/shibukawa/test.go:12 +0x7e
スピーカー: 赤x27 https://gakken-mall.jp/ec/mirai/proSet/2/6072103011S
スタッフ: 藤x25 https://gakken-mall.jp/ec/mirai/proSet/2/6072103020S
参加者: 水x130 https://gakken-mall.jp/ec/mirai/proSet/2/6072103014S
スカラシップ: 緑x15 https://gakken-mall.jp/ec/mirai/proSet/2/6072103013S
スポンサー: 桃x21 https://gakken-mall.jp/ec/mirai/proSet/2/6072103017S
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "The Root Schema",
"required": [
"name",
"author",
"version",
"handlers"
diff --git a/http/response.py b/http/response.py
index f7d248e..dbd1c34 100644
--- a/http/response.py
+++ b/http/response.py
@@ -16,7 +16,7 @@ from django.core.serializers.json import DjangoJSONEncoder
from django.http.cookie import SimpleCookie
from django.utils import timezone
from django.utils.encoding import iri_to_uri
-from django.utils.http import http_date
+from django.utils.http import http_date, is_new_redirect_supported
package main
import (
"github.com/NYTimes/gziphandler"
//"github.com/shibukawa/brbundle/brhttp"
"log"
"net/http"
)
func main() {
package crlite
import (
"database/sql"
"fmt"
"io"
"os/exec"
"syscall"
"time"
@shibukawa
shibukawa / main_test.go
Last active May 7, 2019 00:57
pure go compression benchmark
package main
import (
"bytes"
"compress/flate"
"github.com/golang/snappy"
"github.com/pierrec/lz4"
"io"
"io/ioutil"
"testing"
@shibukawa
shibukawa / headhunting.txt
Created April 12, 2019 07:59
違う人向けのメッセージがきた
はじめまして、私はジーニアス株式会社の佐藤朋美と申します。
当社はヘッドハンティングを専門としております。
(link: https://www.genius-japan.com/) genius-japan.com
突然のご連絡となりますが、お返事頂ければ大変うれしく思います。
先日、不躾ながら、Kurotaki様へお手紙をお送りさせて頂きました。
お手元に届いているかと存じますが、念のためメールでもご連絡させて頂きました。
現在弊社では、自動運転技術において日本最高峰の企業から依頼を受け、サービスを推進しプロジェクトを統括できるシニアエンジニアを探しております。