Skip to content

Instantly share code, notes, and snippets.

@litiblue
litiblue / first.py
Created August 7, 2018 04:55
first.py
if __name__ == '__main__':
print('hello first')
@litiblue
litiblue / NiFi.md
Created January 21, 2017 04:26
NiFi
  • 데이터 분산, 처리 시스템
  • 이종 시스템 간의 데이터 흐름 자동화 플랫폼
  • (서로 다른 포멧, 프로토콜, ...)
@litiblue
litiblue / BishopMove.py
Created August 8, 2014 12:40
BishopMove
class BishopMove(object):
def howManyMoves(self, r1, c1, r2, c2):
if (r1 + c1) % 2 != (r2 + c2) % 2:
res = -1
else:
res = 2
if r1 + c1 == r2 + c2:
res -= 1
if r1 - c1 == r2 - c2: