Skip to content

Instantly share code, notes, and snippets.

View otya128's full-sized avatar
:atom:

otya otya128

:atom:
  • Japan
  • 07:26 (UTC +09:00)
View GitHub Profile
@otya128
otya128 / .gitignore
Last active August 29, 2015 13:57
ANATA
*.html
@otya128
otya128 / README.md
Last active August 29, 2015 13:57
watch

Watch

プロセスを監視する<●><●>

build

gcc watch.c -o watch

@otya128
otya128 / Exec
Last active August 29, 2015 14:05
Exec
@otya128
otya128 / HageMod.java
Last active March 22, 2016 11:23
hagemod
package com.example.hagemod;
import com.google.gson.Gson;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import ibxm.Player;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
@otya128
otya128 / README.md
Last active January 1, 2016 05:39
🐫
@otya128
otya128 / FIZZBUZZ.TXT
Last active February 4, 2016 10:23
MML
{PRTFIZ=G70.G73.G90.G90.}
{PRTBUZ=G66.G85.G90.G90.}
{FIZBUZ=
{SAVEREG}
BA_A##3
CA_A##5
{LOOP_D}
{PRINTINT}
DG
{LEND}
@otya128
otya128 / midi2mp3.cs
Last active December 21, 2017 15:41
MIDI+SF2=>MP3
using System;
using System.Collections.Generic;
using System.Linq;
using Un4seen.Bass.AddOn.Midi;
using Un4seen.Bass;
using static Un4seen.Bass.AddOn.Midi.BassMidi;
using static Un4seen.Bass.Bass;
using NAudio.Lame;
using NAudio.Wave;

センター自己採点

科目 得点 備考
英語(筆記) 161/200 英語全体を200点換算して146.6(かなしい)
英語(リスニング) 22/50
国語 173/200 現文97 古文32 漢文44
地理B 90/100 過去最高得点
数学IA 96/100
数学IIB 97/100
物理 96/100
@otya128
otya128 / mvwintst.c
Last active September 4, 2018 14:39
#undef _UNICODE
#include <windows.h>
HINSTANCE hInstance;
BOOL init;
LRESULT CALLBACK WndProc(HWND hwnd , UINT msg , WPARAM wp , LPARAM lp)
{
HWND child;
PAINTSTRUCT ps;
HDC hdc;
switch (msg)
@otya128
otya128 / BindHttpClient.cs
Created February 20, 2021 04:07
HttpClient bind
using System.Net.Http;
var handler = new SocketsHttpHandler
{
};
handler.ConnectCallback = async (context, cancellationToken) =>
{
var socket = new Socket(SocketType.Stream, ProtocolType.Tcp) { NoDelay = true };
socket.Bind(endPoint);
await socket.ConnectAsync(context.DnsEndPoint, cancellationToken).ConfigureAwait(false);