'2017/07'에 해당되는 글 6건

  1. 2017.07.27 무료 에디터 1
  2. 2017.07.22 [GIT] 특정 폴더만 받아오기
  3. 2017.07.13 Quick sort
  4. 2017.07.08 [Python] 날짜 시간 출력 하기
  5. 2017.07.08 [Python] Sleep
  6. 2017.07.07 Kool tool
Coding/좋은 사이트2017. 7. 27. 00:20

https://notepad-plus-plus.org/

 

개인적으로 생각하는 최고의 무료 에디터 이다.

 

 


 

https://code.visualstudio.com/

https://github.com/Microsoft/vscode

 

요즘 즐겨 사용하는 에디터

 

 

'Coding > 좋은 사이트' 카테고리의 다른 글

함수의 그래프를 그려주는 사이트  (0) 2018.03.03
[UML] Plantuml  (0) 2016.12.27
추천 사이트 모음  (4) 2010.03.16
Posted by chobocho
Coding/Tip2017. 7. 22. 04:18

[ 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

'Coding > Tip' 카테고리의 다른 글

사무직을 위한 Git 활용 법  (0) 2018.10.27
Windows 10에서 글자가 사라지는 현상  (0) 2017.06.15
[Android] ADB로 전화 걸기  (0) 2017.06.15
Posted by chobocho
Coding/CPP 삽질기2017. 7. 13. 01:09

#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;

}



'Coding > CPP 삽질기' 카테고리의 다른 글

[C] Binary search  (0) 2020.12.06
Bit 연산 정리  (0) 2016.08.20
가장 넓은 직사각형 구하는 알고리즘 ( O(MN) )  (0) 2016.04.13
Posted by chobocho
Coding/Python 삽질기2017. 7. 8. 01:19

날짜 시간 출력 하기



  1. 날짜 시간 출력 하기



import datetime


today = datetime.datetime.now()

print today

print today.strftime("%Y.%m.%d")

print today.strftime("%Y.%m.%d %H:%M:%S")



2017-07-08 01:07:53.874000

2017.07.08

2017.07.08 01:07:53



'Coding > Python 삽질기' 카테고리의 다른 글

Python으로 만든 File manager  (0) 2017.08.20
[Python] Sleep  (0) 2017.07.08
[Python] Thread example  (0) 2017.06.30
Posted by chobocho
Coding/Python 삽질기2017. 7. 8. 01:18

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


'Coding > Python 삽질기' 카테고리의 다른 글

[Python] 날짜 시간 출력 하기  (0) 2017.07.08
[Python] Thread example  (0) 2017.06.30
Python으로 마우스 제어하기  (0) 2017.06.22
Posted by chobocho
My Life/version 17 (2017)2017. 7. 7. 00:36


샾에서 보고 마음에 들어서 하나 구매했다

'My Life > version 17 (2017)' 카테고리의 다른 글

2018년 지름 정리  (0) 2019.01.05
한국사능력시험 1급 합격  (0) 2017.09.05
Galaxy S8 Ostrich  (0) 2017.03.31
Posted by chobocho