Skip to content

Instantly share code, notes, and snippets.

View tsukumijima's full-sized avatar
📺
DTV

tsukumi tsukumijima

📺
DTV
View GitHub Profile
@Rendez
Rendez / pip.d.ts
Last active June 14, 2025 08:59
TypeScript types for the Picture-in-Picture feature of the Document and the video tag
interface PictureInPictureResizeEvent extends Event {
readonly target: PictureInPictureWindow;
}
interface PictureInPictureWindow {
readonly width: number;
readonly height: number;
onresize(this: PictureInPictureWindow, ev: PictureInPictureResizeEvent): void;
addEventListener(
type: 'resize',
@kai2nenobu
kai2nenobu / embed_jscript.ps1
Created March 23, 2021 02:28
JScriptにPowershellスクリプトを埋め込む
function // { # Define a nop function
param($nop)
{ // } > $null
return
}
// <# Call an embedded powershell from JScript
function escape(arg) {
return '"' + arg + '"';
}
@kawaz
kawaz / superInterval.js
Last active June 5, 2024 08:41
タブがバックグラウンドになってもサボらない setInterval
const superInterval = (cb, interval=1000, ...args) => {
try {
const code = `self.addEventListener('message', msg=>{setInterval(()=>self.postMessage(null), msg.data)})`
const w = new Worker(`data:text/javascript;base64,${btoa(code)}`)
w.onmessage = () => cb(...args)
w.postMessage(interval)
return {stop:()=>w.terminate()}
} catch(_){
// 実装の問題またはCSPによる拒否などで Worker が使えなければ普通の setInterval を使う
const id = setInterval(cb, interval, ...args)
@ZipFile
ZipFile / README.md
Last active November 9, 2025 17:04
Pixiv OAuth Flow

Retrieving Auth Token

  1. Run the command:

    python pixiv_auth.py login

    This will open the browser with Pixiv login page.

@voluntas
voluntas / webrtc_turn.rst
Last active October 8, 2025 04:14
WebRTC で利用されいる TURN プロトコルの解説

WebRTC で利用されいる TURN プロトコルの解説

日時:2021-01-29
作:@voluntas
バージョン:2021.2
url:https://voluntas.github.io/

@K0lb3
K0lb3 / Twitter Guest Search.py
Last active May 3, 2025 17:03
public Twitter search as json
import requests
import re
class Twitter:
def __init__(self):
self.s = requests.Session()
self.get_tokens()
def get_tokens(self):
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.9.119 Kernel Configuration
#
CONFIG_ARM64=y
@book000
book000 / amazon.co.jp-stylus.user.css
Last active August 12, 2021 00:49
Chrome/Firefoxの拡張機能であるStylusを使用して、Amazon上に表示される「住所情報」と「登録名情報」を表示させないCSS
/* ==UserStyle==
@name Delete "Address" and "Name" from Amazon.co.jp
@namespace tomacheese.com
@version 1.0.2
@updateURL https://gist.github.com/book000/37d74006dbffc88f69cd87a8c686518b/raw/amazon.co.jp-stylus.user.css
@description Chrome/Firefoxの拡張機能であるStylusを使用して、Amazon上に表示される「住所情報」と「登録名情報」を表示させないCSS
@author Tomachi (book000)
==/UserStyle== */
@-moz-document domain("amazon.co.jp") {
#nav-global-location-slot {
## Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
reserving fdt memory region: addr=0 size=30000
reserving fdt memory region: addr=1f000 size=1000
reserving fdt memory region: addr=30000 size=d0000
reserving fdt memory region: addr=3200000 size=b800000
reserving fdt memory region: addr=1b00000 size=400000
reserving fdt memory region: addr=2600000 size=c00000
reserving fdt memory region: addr=1ffe000 size=4000
reserving fdt memory region: addr=11000000 size=9200000
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.1.17 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24