Skip to content

Instantly share code, notes, and snippets.

View orange-in-space's full-sized avatar
💭
🍊

orange orange-in-space

💭
🍊
View GitHub Profile
@orange-in-space
orange-in-space / Daltonizer.cs
Last active May 28, 2025 12:41
Color Blindness Simulator(public domain by ChatGPT), ChatGPT 4oさんが書いてくれた色覚異常シミュレーションコード><
using System;
using System.Drawing;
namespace Daltonization
{
// Color Blindness Simulator
// This code was generated by ChatGPT and is in the public domain.
//
// ChatGPT 4oさんが書いてくれた色覚異常シミュレーションコード><
//
// How to use:
@orange-in-space
orange-in-space / SimpleSendCpKey.cpp
Created May 22, 2025 04:03
Simple Send Copilot Key(Copilotキーを送出するだけのやつ><)
// Simple Send Copilot Key
//
// (c) orange_in_space, 2018,2025
// Licence: CC0
//
// HowToUse:
// Simply executing this will send out a Copilot key.
//
// Build:
// VC++2017 or later. "/SUBSYSTEM:WINDOWS"
@orange-in-space
orange-in-space / Convert-LineEndings.ps1
Last active May 17, 2025 02:53
改行コードをCR+LFにするPowerShellスクリプト><(ChatGPTが作ってくれたやつ)
# 改行コードをCR+LFにするやつ
# Generated by ChatGPT-4o. No copyright.
#
# 使い方
# .\Convert-LineEndings.ps1 "sample.txt"
#
param (
[Parameter(Mandatory = $true)]
[string]$InputFile
@orange-in-space
orange-in-space / ToggleCapsLock.bat
Last active December 20, 2024 06:40
ToggleCapsLock. CSharp and Windows-batch Combined file. (CapsLockを切り替えるアプリを作れるやつ><)
/*
@echo off
@goto bat_part
ToggleCapsLock. CSharp and Windows-batch Combined file.
(CapsLockを切り替えるアプリを作れるやつ><)
Please be sure to set line breaks
@orange-in-space
orange-in-space / OrangeTrigonometry.il
Created May 8, 2024 06:01
Calculate Trigonometry DLL, written in CIL practice(練習で書いた、自前でサインとコサインを計算するDLL><)
.assembly extern mscorlib {}
.assembly OrangeTrigonometry {}
// Code to calculate Trigonometry DLL, written in CIL practice
//(C) orange_in_space
//MIT License
//
//This code is just for practice for me><;
// Assemble
@orange-in-space
orange-in-space / cs_bat_combined.bat
Created January 7, 2022 14:55
self compile .bat .cs combined file. Windowsバッチファイル 兼 C# ソースコードで、自分でcsc.exeを探してコンパイルできるやつ><
/*
@echo off
setlocal
for /f "usebackq delims=" %%A in (`dir /s /b %WINDIR%\Microsoft.NET\CSC.EXE`) do set CSCFULLPATH=%%A
echo csc fullpath is %CSCFULLPATH%
@echo on
%CSCFULLPATH% /platform:x64 /target:exe %~n0.bat
@orange-in-space
orange-in-space / Ews.cs
Created June 3, 2021 03:26
EmptyWorkingSetCommand This is the so-called Memory Cleaner. コマンドラインなメモリクリーナー><
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
namespace EmptyWorkingSetCommand
{
class Program
@orange-in-space
orange-in-space / LpstrFilter.cs
Created December 11, 2019 13:54
C# File Common Dialogs Filter Support Class(OpenFileDialogとかのフィルターの文字列ってエレガントじゃないので直接書かないでいいように作った微妙なクラス><)
using System.Collections.Generic;
namespace Orange.Fragment
{
//
// File Common Dialogs Filter Support Class !><;
// (C) orange_in_space
// Licence: CC0
//
// OpenFileDialogとかのフィルターの文字列ってエレガントじゃないので直接書かないでいいように作った微妙なクラス><
@orange-in-space
orange-in-space / RefCounterModoki.cs
Last active November 29, 2019 19:20
C# 用参照カウンタのようなもの><
using System;
namespace RefCounterModokiDev
{
public interface IRefCounterInterface
{
@orange-in-space
orange-in-space / ClipboardTextWin32.cs
Last active August 10, 2020 17:33
C# Win32apiでクリップボードにテキスト送るライブラリ的な><(System.Clipboardが使えない場面用><)
using System;
using System.Runtime.InteropServices;
namespace Orange.Fragment
{
//please give it a name you like to namespace><;
//a kind of Clipboard.SetText(), Win32API version
//(C) orange_in_space