This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(','), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.mine { | |
width: 24pt; | |
height: 24pt; | |
background-color: #fff; | |
border-radius: 2pt; | |
text-align: center; | |
font-size: 16pt; | |
font-weight: bold; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var plugin = { | |
name: 'shortly.me', | |
name_ko: '나를 짧게', | |
name_jp: '私を短く', | |
author: 'admin@tnraro.com', | |
version: '0.1.0', | |
description: '나를 짧게 해줍니다.', | |
alias: ['짧게'], | |
depends: ['Command'], | |
init: init, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Tile(type) { | |
this.type = type; | |
} | |
function TileMap(w, h, initial) { | |
this._width = w; | |
this._height = h; | |
this.rotation = 0; | |
this.reset(initial); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { // 서버에서 데이터가 들어왔을때 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |