Skip to content

Instantly share code, notes, and snippets.

@syan
syan / logging.conf
Created June 20, 2012 02:55
python logging sample
[loggers]
keys=root,simpleExample
[handlers]
keys=consoleHandler
[formatters]
keys=simpleFormatter
[logger_root]
<?xml version="1.0"?>
<root>
<item>
<name>[all] KANA/EISUU + H/J/K/L move cursor</name>
<appendix>かなキー/英数キー + H/J/K/Lキーでカーソル移動</appendix>
<item>
<name>EISUU to ModifierFlag::EXTRA1</name>
<identifier>remap.app_all_eisuu_extra</identifier>
<autogen>__KeyOverlaidModifier__ KeyCode::JIS_EISUU, KeyCode::VK_MODIFIER_EXTRA1, KeyCode::JIS_EISUU</autogen>
</item>
PUT /company
{
"mappings": {
"country": {},
"branch": {
"_parent": {
"type": "country"
}
},
Resources:
RDSClusterParameter:
Type: AWS::RDS::DBClusterParameterGroup
Properties:
Description: !Sub "${StackName} DB Cluster Parameter"
Family: "aurora-postgresql13"
Parameters:
timezone: JAPAN
AWSTemplateFormatVersion: 2010-09-09
Description: |
RDBTest
Parameters:
StackName:
Type: String
ParamUser:
Type: String
ParamPassword:
import datetime
import csv
def conv(s):
dt = datetime.datetime.fromtimestamp(s/1000)
return dt.strftime('%H:%M:%S')
def main(args):
with open(args[1], newline='') as f :
import asyncio
import logging
import concurrent.futures as furures
import boto3
from timeit import default_timer as timer
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(thread)s - %(name)s - %(levelname)s - %(message)s")
COPY_MAX = 10
def hasFile(bucket, path):
@syan
syan / SearchOperation.cls
Created October 13, 2025 12:53
SearchMarkRowRange
Option Explicit
Public dstRow As Long
Public srcRange As Range