Skip to content

Instantly share code, notes, and snippets.

View tkojitu's full-sized avatar

aka. bakaiku or @gdgdiler tkojitu

View GitHub Profile
@tkojitu
tkojitu / j2toj1.html
Last active December 13, 2023 06:27
2023年明治安田生命J2リーグ最終戦で清水、磐田、ヴェルディが自動昇格枠に入れる確率
<html>
<head>
<script>
class J2ToJ1 {
constructor() {
this.points = [0, 1, 3];
this.results = [];
this.shimizu = 0;
this.iwata = 0;
this.verdy = 0;
@tkojitu
tkojitu / decision-making.md
Last active July 13, 2023 02:41
意思決定できる人の手順の型

https://konifar-zatsu.hatenadiary.jp/entry/2023/07/12/220422

  • 最後は決めるだけだという考えを持つ
  • 目的や満たしたいことを明確にする
  • 最終的な決め方や期日を明確にする
  • 選択肢を広げて考える
  • 今は意思決定しない、という意思決定も選択肢に入れる
  • 意思決定の軸を明確にする
  • 軸をもとに定量/定性データを集める
  • 軸をもとに選択肢を評価する
@tkojitu
tkojitu / MyWnd.cpp
Last active November 20, 2023 04:51
SetWindowRgn
#include "stdafx.h"
#include "MyWnd.h"
static CString s_wndclazz;
IMPLEMENT_DYNAMIC(MyWnd, CWnd)
BEGIN_MESSAGE_MAP(MyWnd, CWnd)
ON_WM_CREATE()
ON_WM_PAINT()
@tkojitu
tkojitu / PopupDemoApp.cpp
Last active July 14, 2022 05:57
How to hook EVENT_SYSTEM_FOREGROUND
#include "pch.h"
#include "framework.h"
#include "PopupDemo.h"
#include "MyWnd.h"
#include "PopupDemoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#include "pch.h"
#include "framework.h"
#include "ChildProc.h"
#include "ChildProcDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CChildProcApp, CWinApp)
using System;
using System.Timers;
using System.Threading;
public class Example
{
private System.Timers.Timer aTimer;
private int count = 0;
private Thread thread = Thread.CurrentThread;
@tkojitu
tkojitu / planning.md
Last active August 24, 2022 03:14
プランニングについて

ソフトウェア開発の特徴(未知なものを作る)

ソフトウェア開発は、今まで作ったことのないソフトウェアを作る仕事なんだね。要望が変わらなければ同じソフトウェアをコピーして渡せばいい。ソフトウェアはコピーしても劣化しないからね。そこが普通の工業生産品と違うところ。コピーしてちょっと改造して渡すのはカスタマイズといって開発とはいわない。

今まで作ったことのないソフトウェア、つまり未知を相手にするのがソフトウェア開発の特徴の1つというわけ。

プランニング

未知なものを作るわけだから「作ったほうが早い」じゃ上手くいかないことが多い。未知だからこそ計画を立てておかないとすぐに迷走してしまう。つまり、計画を立てるのは自分の現在位置を把握するためなんだね。

#include "pch.h"
#include "StringPipe.h"
#define ERR_EXIT(msg) do { \
OutputDebugStringA(msg); \
exit(1); \
} while (0);
CStringPipe::CStringPipe() {
InitSecAttr();
#include "pch.h"
#include "framework.h"
#include "DoubleBuffering.h"
#include "DoubleBufferingDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CDoubleBufferingApp, CWinApp)
#include "pch.h"
#include "framework.h"
#include "ModelessDialogDemo.h"
#include "ModelessDialogDemoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CModelessDialogDemoApp, CWinApp)