Skip to content

Instantly share code, notes, and snippets.

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

kil9 kil9

🏠
Working from home
View GitHub Profile
; AutoHotKey script by kil9 <krieiter@gmail.com>
#SingleInstance
A_MaxHotkeysPerInterval := 1000
; for normal keyboard
CapsLock::Ctrl
+Capslock::CapsLock
; Media Keys
; AutoHotKey script by kil9 <krieiter@gmail.com>
#SingleInstance
A_MaxHotkeysPerInterval := 1000
#Include %A_ScriptDir%/config.ahk
#Include %A_ScriptDir%/eng-on-esc.ahk
; ! = Alt key, + = Shift Key, ^ = Ctrl Key, # = Windows Key
#!/usr/bin/env python3
trans_dict = {
'な': 'na',
'に': 'ni',
'か': 'ka',
'し': 'si',
'こ': 'ko',
#!/bin/sh
# source function library
. /etc/init.d/functions
APP_NAME='app-server-go'
APP_HOME="`dirname "$0"`/.."
APP_HOME=`cd "${APP_HOME}" > /dev/null; pwd`
cd ${APP_HOME}
import random
import requests
import time
#url = 'http://tgpu102.imgr.nhnsystem.com:30001/darknet1.search?worker_id=1'
url = 'http://tgpu102.imgr.nhnsystem.com:41901'
IMAGE = 'dog{}.jpg'
@kil9
kil9 / remote_trailling_whitespaces.sh
Created March 24, 2016 07:59
remote_trailling_whitespaces.sh
# can be dangerous especially for .git directory
sed "s/[ \t]\+$//g" -i `find . -name *.scala -or -name *.java`
@kil9
kil9 / index.html
Created March 3, 2016 03:02
민영화 방식과 경제력 집중 관련 제반 변수들 간의 관계도
<!DOCTYPE html>
<meta charset="utf-8">
<head><title>민영화 방식과 경제력 집중 관련 제반 변수들 간의 관계도</title></head>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 1024px;
height: 1000px;
position: relative;
}
@kil9
kil9 / dereste.py
Last active October 1, 2015 05:41
dereste gacha simulator
#!/usr/bin/env python3
import sys
from functools import reduce
# 단차에서 SSR이 나올 확률
P_SSR = 0.015
# 단차에서 SR이나 R이 나올 확률(플래티넘이므로 R 이상 고정)
P_SR_R = 1 - P_SSR
@kil9
kil9 / car_accident.ipynb
Created June 6, 2015 11:16
규정속도와 교통사고 사망률
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kil9
kil9 / scala-assign.ipynb
Last active August 29, 2015 14:22
scala의 assign에 대하여
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.