#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/my_lib:$LD_LIBRARY_PATH
exec /usr/bin/my_program $*
/api/auth
принимает {"login":"user", "password":"qwerty"}
возвращает {"session_id":"UUID:4545633896344"}
class ClassName(object):
def public_method(self):
pass
def _protected_method(self):
pass
def __private_method(self):
pass
import time
repeat_interval = 5
waiting_interval = 2
destination = time.time() + repeat_interval
for x in xrange(100000000):
# Your code here
time.sleep(0.001)
now = time.time()
if now > destination:
destination += repeat_interval
print('Go sleeping')
time.sleep(waiting_interval)
print('Waking up')