This file has been truncated, but you can view the full file.
This file contains 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
F2 L2 B2 D2 B2 L2 F2 | |
R2 F2 B2 U2 B2 R2 D2 L2 F2 | |
F2 L2 F2 L2 D2 F2 L2 U2 F2 R2 | |
F2 D2 B2 R2 D2 L2 B2 | |
R2 U2 R2 F2 B2 R2 D2 | |
R2 U2 F2 R2 D2 B2 L2 U2 R2 | |
R2 F2 L2 D2 R2 L2 F2 L2 B2 | |
B2 L2 B2 L2 D2 F2 L2 D2 F2 L2 U2 | |
D2 F2 R2 F2 R2 L2 D2 B2 R2 | |
B2 R2 U2 B2 L2 D2 L2 F2 U2 |
This file contains 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
# Slackのアーカイブ中のトークンの付いたURLをダウンロードする。 | |
# python3 slack_download.py 'xxx Slack export mmm dd yyyy - mmm dd yyyy/' out/ 'xoxe-...' | |
import sys | |
import os | |
import json | |
import urllib.parse | |
import urllib.request | |
indir = sys.argv[1] |
This file contains 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
TOKEN='...' | |
ZONE_ID='...' | |
DNS_RECORD_ID='...' | |
DOMAIN='hoge.example.com' | |
IP=$(curl https://checkip.amazonaws.com/) | |
curl \ | |
--request PUT \ | |
--url "https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records/${DNS_RECORD_ID}" \ |
This file contains 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
#include <iostream> | |
#include <cstdint> | |
#include <string> | |
#include <vector> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <algorithm> | |
#include <functional> | |
using namespace std; |
This file contains 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
#include <iostream> | |
#include <cstdint> | |
#include <string> | |
#include <vector> | |
#include <unordered_map> | |
#include <unordered_set> | |
#include <algorithm> | |
#include <functional> | |
using namespace std; |
This file contains 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
T = int(input()) | |
for t in range(T): | |
D = list(map(int, input().split())) | |
N = int(input()) | |
S = set() | |
for i in range(N): | |
s = input() | |
s = "".join(str(D[ord(c)-ord("A")]) for c in s) | |
S.add(s) | |
if len(S)==N: |
This file contains 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 random | |
# ババ抜きをシミュレート | |
# n: 人数 | |
# s: 配り始める人 | |
def simulate(n, s): | |
C = [0] | |
for i in range(1, 14): | |
C += [i]*4 | |
random.shuffle(C) |
This file contains 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 os | |
import sys | |
import random | |
import json | |
import time | |
import urllib.request | |
import urllib.error | |
from copy import deepcopy | |
# ゲームサーバのアドレス / トークン |
This file contains 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 fractions import Fraction | |
import math | |
import random | |
# 内積 | |
def prod(u, v): | |
return sum(x*y for x, y in zip(u, v)) | |
# Gram-Schmidtの直交化 | |
# GSOベクトルのノルムの2乗 [|b0|^2, |b1|^2, ...] とGSO係数 mu を返す。 |
This file contains 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
Wordle 386 4/6 | |
⬜⬜⬜⬜⬜ | |
🟨🟩🟩⬜⬜ | |
⬜⬜⬜⬜🟩 | |
🟩🟩🟩🟩🟩 | |
Wordle 387 4/6 | |
🟨⬜🟩⬜⬜ |
NewerOlder