Skip to content

Instantly share code, notes, and snippets.

View ryo-rm's full-sized avatar

ryo kishida ryo-rm

View GitHub Profile
@ryo-rm
ryo-rm / app.py
Created June 21, 2023 09:59
ESMで動作確認用の画面を作るやつ
from flask import (
Flask,
request,
)
app = Flask(__name__)
@app.route("/chat", methods=["POST"])
def chat_post():
args = request.json
question = args["question"]
#!/usr/bin/env python3
import sys
import magic
from PIL import Image
from inky.inky_uc8159 import Inky
from flask import Flask, request, Response
@ryo-rm
ryo-rm / react-native-repro.d.ts
Last active March 1, 2021 08:52
TypeScript types for react-native-repro
declare module 'react-native-repro' {
export const GENDER_OTHER = 'other';
export const GENDER_FEMALE = 'female';
export const GENDER_MALE = 'male';
/**
* @see https://docs.repro.io/en/dev/sdk/user-id.html#set-app-user-id
*/
export function setUserID(user_id: string): void;