- Wayland
- GNOME 41 以上
-
- Ubuntu 23.04
- Wayland
- GNOME 44.0
try: | |
from ctypes import windll, wintypes, byref | |
def enableEscapeSequence(): | |
INVALID_HANDLE_VALUE = -1 | |
STD_INPUT_HANDLE = -10 | |
STD_OUTPUT_HANDLE = -11 | |
STD_ERROR_HANDLE = -12 | |
ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004 | |
ENABLE_LVB_GRID_WORLDWIDE = 0x0010 |
import glob | |
import locale | |
import os | |
import sys | |
from datetime import datetime, timedelta, timezone | |
from typing import Optional | |
from pyexiv2 import Image | |
TZ_JST = timezone(timedelta(hours=9)) |
# -*- coding: utf-8 -*- | |
""" | |
ファイル名が同じJPEG/HEICファイルを抽出して別ディレクトリに移動する | |
https://qiita.com/shamoji/items/cd5736649b577a756926 をもとに作成しました | |
""" | |
from datetime import datetime, timedelta, timezone | |
import itertools | |
import os |
<?php | |
switch ($_SERVER["REQUEST_METHOD"]) { | |
case "GET": | |
header("Access-Control-Allow-Origin: *"); | |
header("Content-Type: application/json; charset=utf-8"); | |
header("Cache-Control: no-store"); | |
$remote_addr = $_SERVER["REMOTE_ADDR"]; | |
$remote_host = $_SERVER["REMOTE_HOST"]; | |
if ($remote_host === $remote_addr) { |
const zeroPadding = (number, digits) => (Array(digits).fill("0").join("") + number.valueOf()).substr(-digits); |
/** | |
* UUIDv4を作成 | |
* | |
* @see {@link https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript/2117523#2117523} | |
* @returns {string} UUIDv4の文字列 | |
*/ | |
var generateUUIDv4 = function () { | |
var uuid = ''; | |
for (var i = 0; i < 36; i++) { | |
if (i === 8 || i === 13 || i === 18 || i === 23) { |
#!/usr/bin/env ruby | |
# JKCommentGetter (https://github.com/ACUVE/JKCommentGetter) の | |
# JKComment.rbをこのスクリプトと同一のディレクトリに置いて下さい | |
### Settings ### | |
EMAIL = nil # EMAIL = '[email protected]' | |
PASSWORD = nil # PASSWORD = 'hogefuga' |
#!/usr/bin/env python3 | |
import argparse | |
import re | |
import sys | |
def main(): | |
parser = argparse.ArgumentParser(description="mode2の出力をパースし、LIRCのRaw Code形式に変換して出力します") | |
parser.add_argument("fh", nargs="?", type=argparse.FileType("r"), default=sys.stdin) | |
args = parser.parse_args() |
{ | |
"chinachu": { | |
"base_url": "http://<chinachu-address:port>/" | |
}, | |
"mirakurun": { | |
"base_url": "http://<mirakurun-address:port>/" | |
} | |
} |