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}秒ズレています。`; |
' 複数のセル範囲を結合する | |
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)) |
javascript:(()=>{ | |
const orders = Array.from(document.querySelectorAll('#ordersContainer > .order')); | |
let records = orders.flatMap(order => { | |
const id = order.querySelector('.yohtmlc-order-id .value').textContent.trim(); | |
const date = order.querySelector('.a-span3 .value').textContent.trim(); | |
const total = order.querySelector('.yohtmlc-order-total .value').textContent.trim(); | |
const itemTitles = Array.from( | |
order.querySelectorAll('.yohtmlc-item > .a-row:nth-child(1)')). | |
map(e => e.textContent.trim()); |