Skip to content

Instantly share code, notes, and snippets.

@hrsano645
hrsano645 / 2023-07-07.md
Last active August 8, 2023 05:20
fujishi-gender_kaigi_2022-2023

‎‎​

@hrsano645
hrsano645 / shizuhack2023.md
Last active June 4, 2023 09:45
shizuhack2023
marp
true

#Shizuhack 2023

2023-06-02 ~ 2023-06-04


@hrsano645
hrsano645 / 7zcmd.md
Last active May 1, 2023 07:58
7zコマンドでファイル解凍をする方法

7zで解凍するコマンド

条件としては、拡張子は関係ない、適当なディレクトリ名の中で解凍される

7z x -o<解凍先ディレクトリ> <解凍対象ファイル>

import asyncio
from pyppeteer import launch
from pathlib import Path
# ref:https://qiita.com/horikeso/items/69528c2b21ede15a56ee
download_path = Path("./download")
async def main():
import asyncio
from pyppeteer import launch
from pathlib import Path
import time
# ref:https://qiita.com/horikeso/items/69528c2b21ede15a56ee
download_path = "./download"
function createWebhook(){
// プロパティを設定してから必要な情報を取り出す
// 参考:https://qiita.com/0Delta/items/7d8303eebbff4062069e
var scriptProp = PropertiesService.getScriptProperties().getProperties();
var trelloKey = scriptProp.TRELLO_API_KEY;
var trelloToken = scriptProp.TRELLO_TOKEN;
// Trello WebhookへCallback URLを登録する手順
// 1. 登録用のURL生成のために、GASのWEBアプリケーションの公開を以下のように変更してURLを生成する
@hrsano645
hrsano645 / dyndns_route53.py
Created May 15, 2018 05:44 — forked from mariocesar/dyndns_route53.py
Update a Route53 Record if your public IP changes. Like DynDNS
"""
Requeriments:
$ sudo pip install boto dnspython
Edit ~/.boto to use your AWS credentials
"""
import time
import sys
#define BLYNK_USE_DIRECT_CONNECT
#define BLYNK_PRINT Serial
#include <BlynkSimpleSerialBLE.h>
#include <Adafruit_BLE.h>
#include <Adafruit_BluefruitLE_SPI.h>
#include <SPI.h>
#include <OneWire.h>
#include <DallasTemperature.h>
import subprocess
import datetime
from pprint import pprint
ROUTER = ""
NW = ""
RUN_COUNT = 2
speedtest_command = "speedtest-cli --server 15047".split(" ")
@hrsano645
hrsano645 / nihongo_greeting
Created December 8, 2017 02:43
python3の日本語でクラスを作った話
class 日本語挨拶:
def __init__(self, 名前):
self.名前 = 名前
def 朝(self):
print("{}さん おはようございます".format(self.名前))
def 昼(self):
print("{}さん こんにちは!".format(self.名前))
def 晩(self):
print("{}さん こんばんは".format(self.名前))
def はまちちゃん(self):