start new:
tmux
start new with session name:
tmux new -s myname
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install python | |
pip3 install ipython[notebook] | |
ipython notebook | |
http://127.0.0.1:8888 |
import threading | |
import time | |
def rate_limited(max_per_second): | |
lock = threading.Lock() | |
min_interval = 1.0 / max_per_second | |
def decorate(func): | |
last_time_called = time.perf_counter() |
import time | |
def retry(error_condition=lambda err: True, | |
retry_count=10, retry_timeout=1, progressive_timeout=True): | |
"""Decorator for retrying function call in case of exception | |
You could decorate any function or method with this if you need to | |
repeatedly call this method a couple of times with an increasing interval | |
in case of some error raised during the method call. |
<p> | |
<img src="https://i.imgur.com/LBkONfA.png" style="height: 165px; width: 275px; margin: -15px -15px 0;"> | |
</p> | |
<p> | |
<span class="label label-success" style="width: 51%; position: relative; top: -10px;" role="button"><strong>p.p.p.n. € 165</strong></span> | |
</p> | |
<h2 style="margin-bottom:15px; color:rgba(86,61,124,0.8); margin-top: 2px; font-weight: bold; font-size: 16px; text-align:right;">Executive Room</h2> | |
<p style="padding-bottom: 10px; text-align:justify;"> | |
With a spacious living area, these rooms are equipped to meet the needs of the modern traveller. | |
</p> |
<div id="carousel-culloden" class="carousel slide" data-ride="carousel" style="margin:-15px -15px 40px;"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
<li data-target="#carousel-culloden" data-slide-to="0" class="active"></li> | |
<li data-target="#carousel-culloden" data-slide-to="1"></li> | |
</ol> | |
<!-- Wrapper for slides --> | |
<div class="carousel-inner"> | |
<div class="item active activepurple"> | |
<img src="https://i.imgur.com/ba97uFo.png" alt="Image 0" style="height:145px; width: 275px;"><div class="carousel-caption" style="width: 100% !important; right: 0 !important; left: 0 !important; padding-bottom: 5px! important; bottom: 0 !important; padding-top: 5px !important; background: rgba(86,61,124,0.8) !important;"> |
### Keybase proof | |
I hereby claim: | |
* I am sintezcs on github. | |
* I am aminakov (https://keybase.io/aminakov) on keybase. | |
* I have a public key ASCq--kQrWDkQ9GrZPpfzxmZK8qMMHxqvlGbp47EjBeCaAo | |
To claim this, I am signing this object: |