Skip to content

Instantly share code, notes, and snippets.

@KudoLayton
KudoLayton / Balanced latin square generator.r
Created January 8, 2021 02:32
Banaced latin square generator for within subject experiment in R
library(russmisc)
a <- latinSquareDigram(1:6)
b <- latinSquareDigram(sample(6))
IME_CHECK(WinTitle)
{
WinGet,hWnd,ID,%WinTitle%
Return Send_ImeControl(ImmGetDefaultIMEWnd(hWnd),0x005,"")
}
Send_ImeControl(DefaultIMEWnd, wParam, lParam)
{
DetectSave := A_DetectHiddenWindows
DetectHiddenWindows,ON
@KudoLayton
KudoLayton / OpenCV_CUDA_Python_Optical Flow.ipynb
Created June 18, 2019 15:00
OpenCV, CUDA, python으로 windows10 위에서 optical flow 계산하는 방법입니다.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KudoLayton
KudoLayton / RainbowPointCloudBoxGenerator.py
Last active December 5, 2018 06:46
Random Point Cloud Box Generator (pts file)
import colorsys
import random
import numpy as np
inputs = 3_000_000
square = 300
length = 300
past = 0
with open('generate.pts', 'w') as outFile:
outFile.write(f'{inputs}\n')
@KudoLayton
KudoLayton / WSL_Pintos_Install.md
Created September 2, 2018 10:26
Windows Subsystem for Linux(WSL)에 Pintos 설치하기

Windows Subsystem for Linux란?

windows 10부터 적용되는 기능으로 windows에서 리눅스 프로그램을 돌릴 수 있도록 제공하는 인터페이스입니다.

  1. '제어판 -> 프로그램 -> 프로그램 기능 좌측 windows 기능 켜기/끄기'를 선택합니다
  2. Linux용 Windows 하위 시스템을 선택한 뒤 재부팅을 진행합니다.
  3. Microsoft Store에 들어가 'UBUNTU', 'openSUSE', 'Debian', 'Kali'중 원하는 것을 선택합니다. (필자는 Ubuntu 설치)

Pintos 설치하기