Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Naohiro Heya SyureNyanko

😀
View GitHub Profile
View test_main.py
from fastapi.testclient import TestClient
from main import app
client = TestClient(app)
def test_user_main():
test1 = {
"id": 1,
"name": "natsumi",
}
View main.py
# https://stackoverflow.com/questions/63400683/python-logging-with-loguru-log-request-params-on-fastapi-app
# https://github.com/tiangolo/fastapi/issues/394
import sys
from fastapi import FastAPI, Request
from pydantic import BaseModel
from typing import List
from loguru import logger
View aggr.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SyureNyanko
SyureNyanko / InfiniteLoaderExample.tsx
Last active Apr 20, 2021
InfiniteLoader with Grid using react-virtualized
View InfiniteLoaderExample.tsx
// Copyright (c) 2015 Brian Vaughn
// modified by SyureNyanko
//https://github.com/bvaughn/react-virtualized/tree/master/source/InfiniteLoader
// https://github.com/bvaughn/react-virtualized/issues/516
import * as React from "react";
import { InfiniteLoader, AutoSizer, MultiGrid } from "react-virtualized";
// cssのインポート方法
import * as styles from "./style.css";
View main4.go
package main
import (
"bufio"
"fmt"
"math"
"os"
)
func main() {
View main.go
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
View main.go
package main
import (
"fmt"
"log"
"net/http"
"net/http/httptest"
"net/http/httputil"
"net/url"
"os/exec"
View main.go
package main
import (
"fmt"
"log"
"net/http/httptest"
"net/http/httputil"
"net/url"
"github.com/aws/aws-sdk-go/aws"
View main.go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
View main.go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {