-
pandas-gbq
should not bundlesetuptools
as a runtime dependency
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 __future__ import annotations | |
from dataclasses import dataclass, replace | |
import math | |
from numbers import Number | |
from typing import Tuple | |
NEG_INF = -math.inf | |
POS_INF = math.inf | |
@dataclass(frozen=True) |
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 unittest | |
class RandomTestLoader(unittest.TestLoader): | |
@staticmethod | |
def sortTestMethodsUsing(_a, _b): | |
from random import choice | |
return choice((-1, 0, 1)) | |
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
pbpaste | | |
ruby -r{uri,cgi} -lpe'$_=CGI.parse(URI($_).query)["pageState"][0]' | | |
nkf --url-input | | |
tr '()' '{}' | | |
jq -rc '..|strings' | | |
sed -E 's/_([[:xdigit:]]{2})/%\1/g' | | |
nkf --url-input | | |
jq '.' |
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
tr -s '[:space:]' '[-*]' |
-
adding a bot user to a channel
- hover the mouse cursor to the bot user name
@bot-user-name
. - select "Add this app to a channel…".
- select the channel from the drop-down list.
- hover the mouse cursor to the bot user name
-
adding a webhook to a channel without reinstalling
- open the app building page under https://api.slack.com/apps/
- open the webhook page; e.g.,
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
* | |
異常検知のための未来予測:オウム返し的手法からHolt-Winters | |
Methodまで | |
アイテムの種類 ウェブページ | |
著者名 たくち | |
抄録 Holt-Winters Method(別名: Triple Exponential Smoothing)とい | |
うデータの予測手法がある。これについて素晴らしい解説記事があるので読 |
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
document.querySelector`body > .versions > .list > .other > a`.click() |
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
y = 2024 | |
t0 = Time.new(y) | |
year_seconds = Time.new(y + 1) - t0 | |
c = 100 | |
c.times.map { t0 + (year_seconds / c * _1) } |
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
find ~ \ | |
-path "$HOME/.Trash" -prune -or \ | |
-path "$HOME/Library" -prune -or \ | |
-path '*/node_modules' -prune -or \ | |
-path '*/.idea/*.iml' -type f -print |
NewerOlder