* Reference
http://sdkman.io/install.html
https://kotlinlang.org/docs/tutorials/command-line.html
'Coding > JVM 삽질기' 카테고리의 다른 글
| [groovy] 50! (0) | 2016.09.24 |
|---|---|
| Groovy 설치( Mac ) (0) | 2014.11.11 |
| Pocket PC를 위한 JVM (0) | 2005.09.28 |
* Reference
http://sdkman.io/install.html
https://kotlinlang.org/docs/tutorials/command-line.html
| [groovy] 50! (0) | 2016.09.24 |
|---|---|
| Groovy 설치( Mac ) (0) | 2014.11.11 |
| Pocket PC를 위한 JVM (0) | 2005.09.28 |
| Evernote 템플릿 공유 (0) | 2018.09.29 |
|---|---|
| [Evernote 활용] 바코드 모으기 (0) | 2017.04.30 |
| Evernote Atlas 기능 (0) | 2014.11.20 |
| Rename (0) | 2017.11.24 |
|---|---|
| [Python] 날짜 시간 출력 하기 (0) | 2017.07.08 |
| [Python] Sleep (0) | 2017.07.08 |
https://notepad-plus-plus.org/
개인적으로 생각하는 최고의 무료 에디터 이다.
https://code.visualstudio.com/
https://github.com/Microsoft/vscode
요즘 즐겨 사용하는 에디터
| 함수의 그래프를 그려주는 사이트 (0) | 2018.03.03 |
|---|---|
| [UML] Plantuml (0) | 2016.12.27 |
| 추천 사이트 모음 (4) | 2010.03.16 |
[ Using a sparse-checkout to clone speical folder only ]
mkdir paperjs
cd paperjs
git init
git remote add origin https://github.com/paperjs/paperjs.github.io.git
git config core.sparsecheckout true
echo "examples/*" >> .git/info/sparse-checkout
# Tip!!
# Windows power shell에서는 하기와 같이 하여야 함
# 그렇지 않으면
# error: Sparse checkout leaves no entry on the working directory 에러 메시지가 보임
# echo "examples/*"| out-file -encoding ascii .git/info/sparse-checkout
#
git pull --depth=2 origin master
* 참고 사이트 : https://stackoverflow.com/questions/23289006/on-windows-git-error-sparse-checkout-leaves-no-entry-on-the-working-directory
| 사무직을 위한 Git 활용 법 (0) | 2018.10.27 |
|---|---|
| Windows 10에서 글자가 사라지는 현상 (0) | 2017.06.15 |
| [Android] ADB로 전화 걸기 (0) | 2017.06.15 |
#include <iostream>
using namespace std;
class CPoint {
public:
void set(int a_, int b_) { a = a_; b = b_; }
bool small(const CPoint &p) {
unsigned long long int la = b;
unsigned long long int lb = p.a;
unsigned long long int lb2 = p.b;
unsigned long long int l = la * lb + lb2;
la = p.b;
lb = a;
lb2 = b;
unsigned long long int r = la * lb + lb2;
return l < r;
}
bool big(const CPoint &p) {
unsigned long long int la = b;
unsigned long long int lb = p.a;
unsigned long long int lb2 = p.b;
unsigned long long int l = la * lb + lb2;
la = p.b;
lb = a;
lb2 = b;
unsigned long long int r = la * lb + lb2;
return l > r;
}
int a, b;
};
void qsort(CPoint* arr, int start, int end) {
CPoint p = arr[(start + end) / 2];
int s = start;
int e = end;
while (s <= e) {
while (arr[s].small(p)) { s++; }
while (arr[e].big(p)) { e--; }
if (s <= e) {
CPoint t = arr[s];
arr[s] = arr[e];
arr[e] = t;
s++;
e--;
}
}
if (start < e) {
qsort(arr, start, e);
}
if (s < end) {
qsort(arr, s, end);
}
}
CPoint p[200001];
int main()
{
int TC = 0;
cin >> TC;
for (int tc = 1; tc <= TC; tc++) {
int N = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> p[i].a >> p[i].b;
}
qsort(p, 0, N - 1);
cout << "# " << tc << " " << N << endl;
for (int i = 0; i < N; i++) {
cout << p[i].a << " " << p[i].b << endl;
}
}
return 0;
}
| [C] Binary search (0) | 2020.12.06 |
|---|---|
| Bit 연산 정리 (0) | 2016.08.20 |
| 가장 넓은 직사각형 구하는 알고리즘 ( O(MN) ) (0) | 2016.04.13 |
날짜 시간 출력 하기
날짜 시간 출력 하기
|
| Python으로 만든 File manager (0) | 2017.08.20 |
|---|---|
| [Python] Sleep (0) | 2017.07.08 |
| [Python] Thread example (0) | 2017.06.30 |
Sleep
import time beforeTime = time.time() time.sleep(3) # Sleep 3 seconds print time.time()-beforeTime beforeTime = time.time() time.sleep(0.05) # Sleep 50 ms print time.time()-beforeTime |
| [Python] 날짜 시간 출력 하기 (0) | 2017.07.08 |
|---|---|
| [Python] Thread example (0) | 2017.06.30 |
| Python으로 마우스 제어하기 (0) | 2017.06.22 |
import threading
import time
def count(s, c):
for i in range(s, c):
m = '+' + str(i)
print m
time.sleep(0.2)
def count2(s, c):
for j in range(s, c, -1):
n = '-' + str(j)
print n
time.sleep(0.1)
t1 = threading.Thread(target=count ,args=(10,100))
t2 = threading.Thread(target=count2,args=(200,101))
t1.start()
t2.start()
| [Python] Sleep (0) | 2017.07.08 |
|---|---|
| Python으로 마우스 제어하기 (0) | 2017.06.22 |
| Python for Windows Extensions (0) | 2017.06.21 |
# pymove.py
import win32api
import win32con
import sys
mVersion = "V0.627_20170622"
def clickMouseLeft(x,y):
win32api.SetCursorPos((x,y))
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
def clickMouseRight(x,y):
win32api.SetCursorPos((x,y))
win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTDOWN,x,y,0,0)
win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTUP,x,y,0,0)
def moveMouseXY(x,y):
win32api.SetCursorPos((x,y))
def readDataFile(filename):
''' Example of data file
L 1 2
R 2 3
M 3 4
'''
with open(filename, 'r') as fp:
cmdlines = fp.readlines()
return cmdlines
def parseCommand(cmdlines):
cmdlist = []
for c in cmdlines:
cmd = c.strip().split(" ")
cmdlist.append(cmd)
return cmdlist
cmdTable = {
'L':clickMouseLeft,
'R':clickMouseRight,
'M':moveMouseXY
}
def process(cmdlist):
for c in cmdlist:
cmdTable[c[0]](int(c[1]), int(c[2]))
def main(filename):
cmdlines = readDataFile(filename)
cmdlist = parseCommand(cmdlines)
process(cmdlist)
def printHelp():
print "\n[Help]"
print "Usage : pymove filename"
if __name__ == '__main__':
if (len(sys.argv) < 2) or ('-h' in sys.argv[1:]):
printHelp()
else:
main(sys.argv[1])
print mVersion
| [Python] Thread example (0) | 2017.06.30 |
|---|---|
| Python for Windows Extensions (0) | 2017.06.21 |
| [Python] 진법 변환 (0) | 2016.12.27 |