Skip to content

Instantly share code, notes, and snippets.

View kaznishi's full-sized avatar

kaznishi kaznishi

View GitHub Profile
from dotenv import load_dotenv
load_dotenv()
import os
import openai
import time
openai.api_key = os.getenv("AZURE_OPENAI_KEY")
openai.api_base = os.getenv("AZURE_OPENAI_ENDPOINT")
openai.api_type = 'azure'
from dotenv import load_dotenv
load_dotenv()
import os
import openai
import time
openai.api_key = os.getenv("OPENAI_API_KEY")
model_name = "gpt-3.5-turbo"
version: '3'
services:
cadvisor:
image: google/cadvisor:latest
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
@kaznishi
kaznishi / CfnVPC
Last active August 31, 2018 05:54
VPC Template For Multi-AZ
Description:
This template deploys a VPC, with a pair of public and private subnets spread
across two Availability Zones. It deploys an Internet Gateway, with a default
route on the public subnets. It deploys a pair of NAT Gateways (one in each AZ),
and default routes for them in the private subnets.
Parameters:
EnvironmentName:
Description: An environment name that will be prefixed to resource names
Type: String
<?php
phpinfo();
$form = $this->createForm();
@kaznishi
kaznishi / sublime text key binding for ctrl+hjkl
Created September 12, 2015 06:22
sublime text key binding for ctrl+hjkl
[
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "characters", "forward": true } },
{ "keys": ["ctrl+h"], "command": "move", "args": {"by": "characters", "forward": false } },
{ "keys": ["ctrl+k"], "command": "move", "args": {"by": "lines", "forward": false } },
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "lines", "forward": true } }
]
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
<p>現在時刻は<?php echo date("H時i分"); ?>です</p>
</body>
<?php
/*
class一覧
Human系
└Human(Abstract)
 └Japanese 日本人クラス。cm,kgで身長体重を入出力
 └American 米国人クラス。ft,lbで身長体重を入出力
 └English 英国人クラス。ft,stで身長体重を入出力
 └Hyde ハイドクラス。hyde,kgで身長体重を入出力