Skip to content

Instantly share code, notes, and snippets.

View shibukawa's full-sized avatar

Yoshiki Shibukawa shibukawa

View GitHub Profile
package main
import (
"context"
"fmt"
"os"
"strings"
"github.com/billziss-gh/cgofuse/fuse"
"gocloud.dev/blob"
function download() {
console.log("start downloading");
const contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
const wb = XLSX.utils.book_new();
const ws = XLSX.utils.aoa_to_sheet([
["みずほ銀行", "0001"],
["三菱UFJ銀行", "0005"],
["三井住友銀行", "0009"],
["りそな銀行", "0010"],
["埼玉りそな銀行", "0017"],
sudo apt install libsoup2.4-1
sudo apt install libarchive13
sudo apt install libglu1-mesa
sudo apt install libgtk-3-0
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