Skip to content

Instantly share code, notes, and snippets.

View cress-cc's full-sized avatar

Cress cress-cc

  • 霊長類
  • Tokyo, Japan
View GitHub Profile
@cress-cc
cress-cc / fukkatsu.py
Last active May 22, 2019 01:11
復活の呪文
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
class FukkatsuEncoder:
__USABLE_CHARS = \
'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほ' \
@cress-cc
cress-cc / TimeCounter.cls
Created May 9, 2019 02:27
VBAで処理時間を計測
Option Explicit
' システム起動後の経過時間をミリ秒で取得する関数。
' VBA標準のNow()とかだと秒までしか取れない。
Private Declare Function GetTickCount Lib "kernel32" () As Long
Public Sub Main()
Dim startTime As Long
Dim endTime As Long
@cress-cc
cress-cc / SendMessage.cls
Last active April 12, 2019 01:32
VBAでメモ帳起動して貼り付けるやつ
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
(ByVal hwndParent As Long, _
ByVal hwndChildAfter As Long, _
ByVal lpClassName As String, _