Windows 10の電卓アプリで1+1=
を記録してみる
MMV(1038,913,203)
MMV(1040,913,15)
MMV(1046,913,15)
const status_id = BigInt(prompt('Input Status Id', '')); | |
const timestamp = Number((status_id >> 22n) + 1288834974657n); | |
const s = new Date(timestamp).toLocaleString(); | |
console.log(s); |
javascript:(()=>{ | |
const eVideo = document.querySelector('video.video-stream'); | |
const eProgressBar = document.querySelector('.ytp-progress-bar'); | |
const eMessage = document.createElement('div'); | |
eMessage.style.cssText = 'color: red; font-size: 16px;'; | |
const eContainer = document.querySelector('#chat-container'); | |
eContainer.parentNode.insertBefore(eMessage, eContainer.nextSibling); | |
const makeLagMessage = (s) => `リアルタイムから${s}秒ズレています。`; |
# @name get_termsize.rb | |
# @desc 端末のサイズ(列数,行数)を取得 | |
=begin | |
man | |
http://linuxjm.sourceforge.jp/html/LDP_man-pages/man4/tty_ioctl.4.html | |
/usr/include/sys/termios.h |
Sub 指定したシートにジャンプ() | |
Dim SheetPattern As String | |
Dim s As Variant | |
SheetPattern = LCase(InputBox("シート名を入力", "指定したシートにジャンプ", "")) | |
If SheetPattern = "" Then | |
Exit Sub | |
End If | |
For Each s In ActiveWorkbook.Sheets |
' 複数のセル範囲を結合する | |
Function JoinRanges(ParamArray rs() As Variant) | |
Dim c As Long | |
Dim i As Long | |
Dim k As Long | |
Dim r As Variant | |
Dim z() As Variant | |
c = 0 |
' 2つのセル範囲を結合する | |
Function JoinRange(x As Range, y As Range) | |
Dim xCnt As Long | |
Dim yCnt As Long | |
Dim i As Long | |
Dim z() | |
xCnt = x.Count | |
yCnt = y.Count |
javascript:(()=>{ | |
const namedItems = Array.from(document.querySelectorAll('#issue-form [name]')) | |
.filter(e => e.value) | |
.filter(e => ! e.type?.match(/^(hidden|submit|button)$/) | |
.filter(e => ! e.name.match(/^issue\[(project_id|status_id|priority_id|start_date)\]$/) | |
; | |
const search = namedItems | |
.map(e => `${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`) | |
.join('&') |
def print_attrs(value): | |
from functools import reduce | |
mro = type(value).mro() | |
attrsets = [set(dir(x)) for x in mro] + [set()] | |
ownattrsets = [x - attrsets[i+1] for i,x in enumerate(attrsets) if i < len(mro)] | |
for type_, ownattrset in zip(mro, ownattrsets): | |
print(type_.__name__) | |
print(' ', list(ownattrset)) |