判明している音素バランス文の元ネタを集めた。
「マルサの女 撮影日記」(伊丹十三)(文藝春秋 1987 年 2 月)(c03、g01 と同一)
| #@~^AQAAAA==~IAAAAA==^#~@ function toPSString(str) { return "'" + str.replace(/%/g, '"%"').replace(/'/g, "''") + "'"; } /* -*- mode: powershell;-*- | |
| <#*/ var command = 'param($Test)' | |
| + '; $_PSCommandPath = ' + toPSString(WSH.ScriptFullName) | |
| + '; Invoke-Expression (Get-Content ' + toPSString(WSH.ScriptFullName) + ' -Encoding UTF8 -Raw)'; | |
| var namePattern = /^-(?!(?:b(?:and|or|xor|not)|sh[lr]|[ic]?(?:eq|ne|gt|ge|lt|le|(?:not)?(?:like|match|contains|in)|replace|split)|join|is(?:not)?|as|and|or|not|f)$)[0-9a-z]+$/i; | |
| var args = ''; for (var i = 0; i < WSH.Arguments.Length; i++) { | |
| var arg = WSH.Arguments(i); args += ' ' + (namePattern.test(arg) ? arg : toPSString(arg)); } | |
| WSH.CreateObject('WScript.Shell').Run('PowerShell -NoExit -Command &{' + command + '}' + args); /*#> | |
| #Requires -Version 5.0 | |
| using namespace System.Windows.Forms |
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/arm64 4.9.119 Kernel Configuration | |
| # | |
| CONFIG_ARM64=y | |
| CONFIG_64BIT=y | |
| CONFIG_ARCH_PHYS_ADDR_T_64BIT=y | |
| CONFIG_MMU=y | |
| CONFIG_DEBUG_RODATA=y | |
| CONFIG_ARM64_PAGE_SHIFT=12 |
| $remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport = $matches[0]; | |
| } else{ | |
| echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
| exit; | |
| } |
CompositionEvent はIMEモードが有効の状態で文字列入力時を検出するイベントです。
IMEモード切替を検出しているわけではない為、[半角/全角] キーの検出は出来ません。
| // ==UserScript== | |
| // @name Figma Mouse Wheel Speed Fix | |
| // @namespace https://adam.nels.onl | |
| // @match https://www.figma.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| // Mouse wheel scrolling in Figma on Firefox + Linux is unbearably slow. | |
| // | |
| // This script catches all mouse wheel events on the main canvas, |
| if (!window.OffscreenCanvas) { | |
| window.OffscreenCanvas = class OffscreenCanvas { | |
| constructor(width, height) { | |
| this.canvas = document.createElement("canvas"); | |
| this.canvas.width = width; | |
| this.canvas.height = height; | |
| this.canvas.convertToBlob = () => { | |
| return new Promise(resolve => { | |
| this.canvas.toBlob(resolve); |
This is a simple wrapper for the FileReader API. It allows converting a Blob (and therefore a File as well) to either a plain text string, a data URL or an ArrayBuffer with a nice and clean Promise API.
This is the TypeScript signature of the readBlob function:
/**
* Read a blob or file and convert it to another data typeNote: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !