https://doordash.engineering/2019/07/22/writing-delightful-http-middlewares-in-go/
This file contains 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 ( | |
"log" | |
"math/rand" | |
"runtime" | |
"time" | |
"sync/atomic" | |
) |
This file contains 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
% 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 |
This file contains 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
スピーカー: 赤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 |
This file contains 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
{ | |
"$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" |
This file contains 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
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 |
This file contains 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 ( | |
"github.com/NYTimes/gziphandler" | |
//"github.com/shibukawa/brbundle/brhttp" | |
"log" | |
"net/http" | |
) | |
func main() { |
This file contains 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 crlite | |
import ( | |
"database/sql" | |
"fmt" | |
"io" | |
"os/exec" | |
"syscall" | |
"time" |
This file contains 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 ( | |
"bytes" | |
"compress/flate" | |
"github.com/golang/snappy" | |
"github.com/pierrec/lz4" | |
"io" | |
"io/ioutil" | |
"testing" |
This file contains 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
はじめまして、私はジーニアス株式会社の佐藤朋美と申します。 | |
当社はヘッドハンティングを専門としております。 | |
(link: https://www.genius-japan.com/) genius-japan.com | |
突然のご連絡となりますが、お返事頂ければ大変うれしく思います。 | |
先日、不躾ながら、Kurotaki様へお手紙をお送りさせて頂きました。 | |
お手元に届いているかと存じますが、念のためメールでもご連絡させて頂きました。 | |
現在弊社では、自動運転技術において日本最高峰の企業から依頼を受け、サービスを推進しプロジェクトを統括できるシニアエンジニアを探しております。 |