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
| AABBCCDDEEFF [0, 2, 4] | |
| AABBCCDDEEFG [0, 2, 4] | |
| AABBCCDDEFFG [0, 2] | |
| AABBCCDDEFGG [0, 2, 4] | |
| AABBCCDDEFGH [0, 2, 4] | |
| AABBCCDEEFFG [0] | |
| AABBCCDEEFGG [0, 4] | |
| AABBCCDEEFGH [0, 4] | |
| AABBCCDEFFGG [0, 2, 4] | |
| AABBCCDEFFGH [0, 2, 4] |
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 PIL import Image, ImageDraw | |
| import math | |
| def render(name, F): | |
| size = 4096 | |
| im = Image.new("RGB", (size, size), (255, 255, 255)) | |
| draw = ImageDraw.Draw(im) | |
| def trans(x, y, z): | |
| t = math.pi*0.05 |
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
| # 0---1 | |
| # /| /| | |
| # 3---2 | | |
| # | 4-|-5 | |
| # |/ |/ | |
| # 7---6 | |
| import itertools | |
| import random |
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 itertools import permutations | |
| def normalize(s): | |
| C = [] | |
| for ud in range(2): | |
| if ud==0: | |
| ud = {"U": "U", "D": "D"} | |
| else: | |
| ud = {"U": "D", "D": "U"} | |
| for xy in range(2): |
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 itertools import permutations | |
| def normalize(s): | |
| C = [] | |
| for ud in range(2): | |
| if ud==0: | |
| ud = {"U": "U", "D": "D"} | |
| else: | |
| ud = {"U": "D", "D": "U"} | |
| for xy in range(2): |
This file has been truncated, but you can view the full file.
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
| 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 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
| # 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 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
| 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 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
| #include <iostream> | |
| #include <cstdint> | |
| #include <string> | |
| #include <vector> | |
| #include <unordered_map> | |
| #include <unordered_set> | |
| #include <algorithm> | |
| #include <functional> | |
| using namespace std; |
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
| #include <iostream> | |
| #include <cstdint> | |
| #include <string> | |
| #include <vector> | |
| #include <unordered_map> | |
| #include <unordered_set> | |
| #include <algorithm> | |
| #include <functional> | |
| using namespace std; |
NewerOlder