Skip to content

Instantly share code, notes, and snippets.

View supermomonga's full-sized avatar
🏠
Working from home

supermomonga supermomonga

🏠
Working from home
View GitHub Profile
@laiso
laiso / README.md
Last active June 6, 2025 12:35
Custom AI editor tool override API with OpenAI Chat Completion compatibility

This project creates a custom code generation tool API for AI editors (VS Code, Cursor). The main purpose is to override Tool Use functionality in AI editors and implement custom code generation logic, while maintaining full compatibility with Chat Completions API and Ollama API so existing editor configurations can be used as-is.

The supported environment includes VS Code and Cursor editors, with deployment capability on Cloudflare Workers. The API must support streaming=true for real-time responses. Tool Call detailed tracking and log output are provided for debugging purposes.

This code was created with reference to the Vercel V0 API design. https://vercel.com/docs/v0/api

npm create cloudflare@latest
# Rails production setup via SQLite3 made durable by https://litestream.io/
# Copy this to Dockerfile on a fresh rails app. Deploy to fly.io or any other container engine.
#
# try locally: docker build . -t rails && docker run -p3000:3000 -it rails
#
# in production you might want to map /data to somewhere on the host,
# but you don't have to!
#
FROM ruby:3.0.2
@eggplants
eggplants / DLsite_Nest_on_Wine.md
Last active May 31, 2025 09:02
DLsite Nest on Wine

DLsiteNest on Wine

環境

  • Ubuntu 25.04
  • wine-10.6
  • dlsitenest-v2.0.9

手順

@nagishin
nagishin / datautility.ipynb
Last active November 27, 2021 13:35
DataUtility.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@echo off
powercfg -devicequery wake_from_any >> devices.txt
for /f "delims=" %%a in (devices.txt) do (
powercfg /devicedisablewake "%%a"
)
pause
@nerdcave
nerdcave / environment.js
Last active May 11, 2021 12:27
PurgeCSS config for Rails 5 and Webpacker (along with Tailwind CSS and Vue.js, in this case)
// first run:
// yarn add glob-all purgecss-webpack-plugin --dev
/*
config/webpack/environment.js
PurgeCSS configuration for Rails 5 + Webpacker + Tailwind CSS + Vue.js
Optionally, put this in production.js if you only want this to apply to production.
For example, your app is large and you want to optimize dev compilation speed.
*/
@tyru
tyru / client.vim
Last active June 17, 2020 14:42
WIP: [Preview] Chrome Debugging Protocol in Vim script
" Run:
" 1. mkdir tmp
" 2. {chrome} --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir=tmp
"
" In another shell:
" 1. vim -S client.vim
"
" ref. https://developer.mozilla.org/ja/docs/Tools/Remote_Debugging/Chrome_Desktop
@mohemohe
mohemohe / kokoro.io.js
Last active October 23, 2017 13:03
こぴぺした
function checkUnread() {
const unreadsArray = document.querySelectorAll('.channel_name .badge.pull-right');
let counter = 0;
unreadsArray.forEach((value, index, array) => {
const innterString = value.innerHTML;
const parseData = parseInt(innterString, 10);
if(!isNaN(parseData)) {
counter += parseData;
}
@mohemohe
mohemohe / LICENSE
Last active October 29, 2017 16:19
心.io | require: curl, jq
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2017 mohemohe <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE