Skip to content

Instantly share code, notes, and snippets.

@ten9miq
ten9miq / share
Last active December 20, 2024 07:12
def recursive_vars(obj, depth=0):
indent = ' ' * depth
if hasattr(obj, '__dict__'):
print(f"{indent}{obj.__class__.__name__} object at {hex(id(obj))}:")
for key, value in vars(obj).items():
print(f"{indent} {key}:")
recursive_vars(value, depth + 2)
elif isinstance(obj, list):
print(f"{indent}List:")
for index, item in enumerate(obj):
param (
[string]$inputFile
)
# 入力ファイルの存在を確認
if (-Not (Test-Path $inputFile)) {
Write-Host "Error: ファイル $inputFile が見つかりません。" -ForegroundColor Red
exit 1
}
Sub SendHttpPost()
Dim xmlHttp As Object
Set xmlHttp = CreateObject("MSXML2.XMLHTTP")
Dim url As String
url = "ここに送信先のURLを入力" ' 送信先のURL
Dim postData As String
postData = "ここに送信するデータを入力" ' 送信するデータ
xmlHttp.Open "POST", url, False
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
ChatGPT end tone
// UTF-8の範囲内で、特定の開始コードポイントから終了コードポイントまでの文字を生成する関数
function generateUTF8CharactersInRange($startCodePoint, $endCodePoint) {
$utf8Characters = '';
for ($codePoint = $startCodePoint; $codePoint <= $endCodePoint; $codePoint++) {
$utf8Characters .= mb_convert_encoding('&#' . $codePoint . ';', 'UTF-8', 'HTML-ENTITIES');
}
return $utf8Characters;
}
// UTF-8のすべての文字を生成
(()=>{
/**
* http://www.openjs.com/scripts/events/keyboard_shortcuts/
* Version : 2.01.B
* By Binny V A
* License : BSD
*/
const shortcut = {
'all_shortcuts':{},//All the shortcuts are stored in this array
'add': function(shortcut_combination,callback,opt) {
@ten9miq
ten9miq / make_current_arm64_rpi_kernel_debs.sh
Created October 15, 2021 12:43 — forked from satmandu/make_current_arm64_rpi_kernel_debs.sh
Make arm64 deb packages for the offical Raspberry Pi Foundation arm64 kernels + NOW INSTALLS headers package too.
#!/bin/bash -x
# make_arm64_rpi_kernel_debs.sh
# Builds arm64 debian packages from the CURRENT rpi firmware repository kernel which is installed by:
# sudo rpi-update
# This runs on an arm64 host with arm64 compilation tools...
# or with some sort of cross-compilation setup.
# Debs are put in $workdir/build
#
# This will NOT work in Raspbian unless you have an arm64 compilation
# environment setup. Appears to work on
// ==UserScript==
// @name LinkBot ver.UserScript
// @namespace https://github.com/PaeP3nguin/LinkBot
// @version 0.6
// @description Removed linkBot from Chrome Web store. https://chrome.google.com/webstore/detail/chnfcfcbnhloogdohcmjogkklghefofm
// @author ten9miq
// @match http*://*/*
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAiZJREFUOE+VlEtIVGEUx3/nPiYxIiGYikgKimgjBUWUK4OghbQoiGhRLoqYuRW9hB4StigJogKdubiyrRVkghuFWhbVpgcY9KaFLsQgkNS5M/+4k4+RxmH8Vh/nO+fHOf9zzmdUOF6oi8A5RB3iRhTYncXcbVFORps84z1QM+sTiXoC+1kuZlGQ36kdcnm9IEjsjQJ7viQQD+W6Y3wy2DgTOBxNsJNWm1gaKPbuVr2X5ztgFrEtd9beLl2jedA3wHHF5qnAPlcNqgm1IYJ1FDA51Jl4GoMELSa+4CBPjEym7WspdE5sN6ODZrQB2yuNRMnbsIxr+ZQ9iW1FkJ/ReRm3SltdJQwzzuRS1mV+l3bJYQhYAbxCXI6meMlyorKw3yS82mLW1zH2AX8wms3P6oHgOPAuStDECRuvKptu1Xp5XgANQJ95WY0Aa0xcyAV2L5FVg6C1AI/yaesvhbqhDjsFDjjQHnfQz6hFRk+cVQyajmUSNOfTNjCj111gMEqxHzPNwrysHgOHEG1RYDe9jJowngGKS/shqAeuRmnroF0JL8klx+ifTtmHBWXe12rf50gOegls1A91WqITGDU3VI+JF
@ten9miq
ten9miq / Text2Link.js
Last active November 15, 2023 03:56 — forked from draqoon/Text2Link.js
Convert URL text to link for Tampermonky