Skip to content

Instantly share code, notes, and snippets.

var Hangul = {
startChar: 'ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ'.split(''),
middleChar: 'ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ'.split(''),
endChar: ' ㄱㄲㄳㄴㄵㄶㄷㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅄㅅㅆㅇㅈㅊㅋㅌㅍㅎ'.split(''),
code: '가'.charCodeAt(0)
}
var HanConv = {
start: 'rRseEfaqQtTdwWczxvg'.split(''),
middle: 'k,o,i,O,j,p,u,P,h,hk,ho,hl,y,n,nj,np,nl,b,m,ml,l'.split(','),
@yoo2001818
yoo2001818 / index.css
Created September 20, 2015 10:58
Minesweeper
.mine {
width: 24pt;
height: 24pt;
background-color: #fff;
border-radius: 2pt;
text-align: center;
font-size: 16pt;
font-weight: bold;
}
@yoo2001818
yoo2001818 / shortly.js
Last active August 29, 2015 14:20 — forked from tnraro/shortly.js
var plugin = {
name: 'shortly.me',
name_ko: '나를 짧게',
name_jp: '私を短く',
author: 'admin@tnraro.com',
version: '0.1.0',
description: '나를 짧게 해줍니다.',
alias: ['짧게'],
depends: ['Command'],
init: init,
@yoo2001818
yoo2001818 / TileMap.js
Created April 29, 2015 07:30
TileMap rotation
function Tile(type) {
this.type = type;
}
function TileMap(w, h, initial) {
this._width = w;
this._height = h;
this.rotation = 0;
this.reset(initial);
}
var net = require('net'),
readline = require('readline'), // 콘솔에서 글자를 읽을 수 있게 해줌.
rl = readline.createInterface(process.stdin, process.stdout); // 콘솔 객체로 readline 객체를 만듬
console.log('서버에 접속하고 있습니다.');
var socket = net.createConnection(16554, 'localhost', function() { // 포트, 주소, 콜백
console.log('서버에 접속했습니다.');
});
socket.on('data', function(data) { // 서버에서 데이터가 들어왔을때
@yoo2001818
yoo2001818 / modmanager.py
Last active August 29, 2015 14:03
Civ5 Mod Manager
from os.path import expanduser
import os
import sys
import shutil
import xml.etree.ElementTree as ElementTree
home = expanduser("~")
civExp = home+"/.local/share/Steam/SteamApps/common/Sid Meier's Civilization V/steamassets/assets/dlc/expansion2/"
civMod = home+"/.local/share/Aspyr/Sid Meier's Civilization 5/MP_MODS/"
civPkg = "expansion2.civ5pkg"
if len(sys.argv) == 1: