Skip to content

Instantly share code, notes, and snippets.

View ikura1's full-sized avatar
😱
umm

Yuki Okuda ikura1

😱
umm
View GitHub Profile
@ikura1
ikura1 / default.md
Created March 20, 2023 01:20
ChatGPT: Template

命令書

あなたは、プロの編集者です。 以下の制約条件と入力文をもとに、最高の要約を出力してください。

制約条件

  • 文字数は300文字程度
  • 小学生にもわかりやすく
  • 重要なキーワードを取り残さない
(async function showDuplicateLikes() {
const _sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const loadingAll = async () => {
const loadingButtonSelector =
"#l_page_bookmark > div > div.c_list_basket.-bookmark.is-campaignBalloon > div:nth-child(3) > p > button";
let loadingButton = document.querySelector(loadingButtonSelector);
while (loadingButton) {
loadingButton = document.querySelector(loadingButtonSelector);
if (!loadingButton) {
def is_alive(a, b, c):
alives = [[0, 0, 1], [0, 1, 0], [0, 1, 1], [1, 0, 0]]
return [a, b, c] in alives
def automaton(cells):
for _ in range(len(cells)):
print(cells)
for i, c in enumerate(cells):
if i == 0:
@ikura1
ikura1 / lifegame.py
Created September 10, 2020 18:39
pyxel-lifegame
from random import randint
import numpy as np
import pyxel
WIDTH = 128
HEIGHT = 128
class World:
@ikura1
ikura1 / untar.py
Last active November 29, 2019 06:30
open tar
from pathlib import Path
import tarfile
PATH = Path("./data/hoge.tar.gz")
def main():
with tarfile.open(PATH, "r:*") as tar:
tar.extractall(PATH.stem)
@ikura1
ikura1 / .bash_profile
Last active September 25, 2019 10:07
sh周りの設定とか
echo "bash_profile load"
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export PATH="$HOME/.poetry/bin:$PATH"
@ikura1
ikura1 / classic.py
Created September 25, 2019 09:36
bulletを試してみる
from bullet import Bullet
from bullet import colors
cli = Bullet(
prompt="Please choose a fruit: ",
choices=["apple", "banana", "orange", "watermelon", "strawberry"],
indent=0,
align=5,
margin=2,
shift=0,
@ikura1
ikura1 / Pipfile
Last active September 25, 2019 09:27
htmlの構造検査できるのかな?というやつ
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
black = "*"
[packages]
online-w3c-validator = "*"
@ikura1
ikura1 / Pipfile
Created September 25, 2019 08:32
GoogleHome話させるやつ
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
prospector = "*"
black = "*"
[packages]
@ikura1
ikura1 / Pipfile
Created September 25, 2019 08:19
スクリーンショット撮るやつ
# -*- encoding: utf-8 -*-
import os
import json
import asyncio
from pyppeteer import launch
from pyppeteer.errors import NetworkError, TimeoutError, PageError
import argparse
import traceback