Skip to content

Instantly share code, notes, and snippets.

View bestpika's full-sized avatar

観月唯 bestpika

  • やりたい事しかできない
View GitHub Profile
@bestpika
bestpika / draggable-absolute-dialog.js
Created November 8, 2025 01:27 — forked from Sighery/draggable-absolute-dialog.js
Make a dialog box that has position absolute draggable
function dragElement(element) {
// Source: https://www.w3schools.com/howto/howto_js_draggable.asp
// Requisites: Dialog element must be position absolute.
// Usage: dragElement(document.getElementById("mydiv"));
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
// Try to automatically find a header by searching the direct children for
// an id with "header" in it
if (element.id !== "") {
@bestpika
bestpika / python-string-format.js
Created November 8, 2025 01:26 — forked from Sighery/python-string-format.js
Implement a format function similar to Python's in JavaScript
// Check if it's not implemented first. Source: https://stackoverflow.com/a/4673436
if (!String.prototype.format) {
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != 'undefined'
? args[number]
: match
;
});
// ==UserScript==
// @name HiNet modem QR Code Bypass
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Bypass HiNet modem QR Code 2FA when login as Engineering mode
// @author G36maid
// @match http://192.168.1.1/*
// @match https://192.168.1.1/*
// @grant none
// @run-at document-start
@bestpika
bestpika / agent loop
Created March 10, 2025 13:33 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@bestpika
bestpika / submit.md
Created October 6, 2023 01:52 — forked from tanaikech/submit.md
Checking Exchange Rate using GOOGLEFINANCE with Google Apps Script

Checking Exchange Rate using GOOGLEFINANCE with Google Apps Script

This is a sample script for checking the exchange rate using GOOGLEFINANCE with Google Apps Script.

Recently, I have published a report of "Report: Obtaining Values from GOOGLEFINANCE using Google Apps Script". Ref In this post, I would like to introduce a sample script for checking the exchange rate using Google Apps Script.

Sample script

@bestpika
bestpika / gist:0c8a0a44e2cd42e03cf0b68a39896207
Created January 22, 2023 09:38 — forked from uhfx/gist:3922268
Twitter公式/非公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg