Skip to content

Instantly share code, notes, and snippets.

View HanChangHun's full-sized avatar
🍯

chun HanChangHun

🍯
View GitHub Profile
@conrad784
conrad784 / read_nonblocking.py
Created December 14, 2018 15:50
nonblocking read function for python, e.g. for named pipes
def read_nonblocking(path, bufferSize=100, timeout=.100):
import time
"""
implementation of a non-blocking read
works with a named pipe or file
errno 11 occurs if pipe is still written too, wait until some data
is available
"""
grace = True
@nulledge
nulledge / MPI-INF-3DHP.ipynb
Created October 29, 2018 07:49
MPI-INF-3DHP
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tigerjj
tigerjj / AndroidRPC.md
Last active January 28, 2021 11:16
Android RPC example - Client / Server with service

Android RPC example - Client / Server with service

Android의 Binder를 활용하여 RPC(Remote procedure call)을 구현하는 예제를 만들어 보았다. 본 예제에서는 Server/Client가 별도의 Application이 되며 Server의 Service에 Client의 Activity가 Bind되는 구조이다. 그리고 Client는 Server의 Service에 직접 Call을 하여 결과를 받는 예제이다.

RPC를 이해하기 위해서 우선 다음 두가지 개념을 이해해여야 한다.

  • IPC(Inter-process communication)
  • Binder
@jmnwong
jmnwong / ST2 Cycle Tabbing
Created June 28, 2013 15:24
Makes CTRL-Tab cycle tabs in order for Sublime Text.
Put in (Preferences -> Key Bindings - User):
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }