This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Giraffe Banisher | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-08 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.takaratomy.co.jp/products/wixoss/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=takaratomy.co.jp | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Redmine query trick | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-05-08 | |
// @description try to take over the world! | |
// @author You | |
// @match http://example.com/* | |
// @icon | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Wide Twitter | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-26 | |
// @description try to take over the world! | |
// @author You | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "sample" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
axum = "0.7.4" | |
http = "1.1.0" | |
tower = "0.4.13" | |
tracing-subscriber = "0.3.18" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name second redmine favicon | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-20 | |
// @description try to take over the world! | |
// @author You | |
// @match http://example.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::net::SocketAddr; | |
use std::sync::Arc; | |
use axum; | |
use axum::response::IntoResponse; | |
use axum::{routing::{get, post}, Router, response::Html, Json, http::StatusCode, extract::Form, Extension}; | |
use tower_http::trace::TraceLayer; | |
use axum::{ | |
body::{Body, Bytes}, | |
extract::Request, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Redis from "ioredis"; | |
const redis = new Redis(); | |
redis.on('message', (ch: string, mes: string): void => { | |
console.log({ | |
ch, | |
mes | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prevents additional console window on Windows in release, DO NOT REMOVE!! | |
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] | |
use axum::{routing::get, Router}; | |
use std::net::SocketAddr; | |
use std::sync::{Arc, Mutex}; | |
use axum::response::IntoResponse; | |
use tower_http::{ | |
trace::TraceLayer, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import async, {AsyncFunction, AsyncResultArrayCallback} from "async"; | |
const main = (): void => { | |
const funcs0: AsyncFunction<number, Error>[] = [1, 2, 3].map((num: number): AsyncFunction<number, Error> => { | |
return (callback: (err: Error | null, result?: number) => void): void => { | |
callback(null, num * 2); | |
} | |
}); | |
const after: AsyncResultArrayCallback<number, Error> = (errors: Error | undefined | null, results: (number | undefined)[] | undefined): void => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bl_info = { | |
"name": "Simple UV Editor Panel", | |
"author": "kotobukid", | |
"version": (1, 0), | |
"blender": (4, 0, 1), | |
"location": "UV Editor > Sidebar", | |
"description": "Adds a simple panel to the UV Editor", | |
"category": "UV", | |
} |
NewerOlder