ctrl+b |
プレフィックス | ||
基本 | session | ||
? |
キー一覧 | s |
一覧選択 |
: |
コマンド | d |
デタッチ |
& |
名前変更 | ||
window | pane | ||
c |
新規作成 | % |
左右分割 |
This file contains hidden or 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
from google import genai | |
from google.genai import types | |
from PIL import Image | |
from io import BytesIO | |
import os | |
import subprocess | |
import tempfile | |
from global_config import global_config | |
from loguru import logger as log |
This file contains hidden or 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
EXECUTABLE=executable-name | |
WINDOWS=$(EXECUTABLE)_windows_amd64.exe | |
LINUX=$(EXECUTABLE)_linux_amd64 | |
DARWIN=$(EXECUTABLE)_darwin_amd64 | |
VERSION=$(shell git describe --tags --always --long --dirty) | |
.PHONY: all test clean | |
all: test build ## Build and run tests |
更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
This file contains hidden or 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
# Python http.server that sets Access-Control-Allow-Origin header. | |
# https://gist.github.com/razor-x/9542707 | |
import os | |
import sys | |
import http.server | |
import socketserver | |
PORT = 8000 |
This file contains hidden or 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
import org.apache.commons.math3.distribution.ChiSquaredDistribution; | |
import org.apache.commons.math3.stat.inference.ChiSquareTest; | |
import org.hamcrest.BaseMatcher; | |
import org.hamcrest.Description; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* カイ二乗検定を用いた検証を行う BaseMatcher 継承クラスです。 |
This file contains hidden or 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
# 少し凝った zshrc | |
# License : MIT | |
# http://mollifier.mit-license.org/ | |
######################################## | |
# 環境変数 | |
export LANG=ja_JP.UTF-8 | |
# 色を使用出来るようにする |
This file contains hidden or 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
from flask import make_response | |
from reportlab.pdfgen import canvas | |
# ... | |
@app.route('/pdf') | |
def pdf(): | |
import cStringIO | |
output = cStringIO.StringIO() |