This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pscp -P <port_number> -i <path_to_ppk_key> <user_name>@<server_url>:<path_to_remote_file> <path_to_local_file> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
렉서스, 인피니티, 혼다, 도요타, 캐논, 니콘, 우르오스 남성화장품, 아사히맥주,기린맥주, 시세이도 염색약, 화장품, DHC, 키스미, 케이트, 안나수이, SK2, 오르비스 화장품, 구몬 학습지, 야쿠르트, 오로나민씨, 포카리스웨트, 바디피트 생리대, 소피한결 생리대, 아식스 스포츠브랜드, 미즈노 축구화, 데쌍트, 유니클로 옷, 르꼬끄, 무인양품, 에고이스트, 나이스크랍, OZOC옷, 아이깨끗해 세정제, 비트 세제, 참그린 세제, 닥터세닥, 시스테마 치약, 토레타 음료, 조지아 커피, 린나이 보일러, ABC마트 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ralamb(Optimizer): | |
def __init__(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8, weight_decay=0): | |
defaults = dict(lr=lr, betas=betas, eps=eps, weight_decay=weight_decay) | |
self.buffer = [[None, None, None] for ind in range(10)] | |
super(Ralamb, self).__init__(params, defaults) | |
def __setstate__(self, state): | |
super(Ralamb, self).__setstate__(state) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo ufw status verbose | |
Status: active | |
Logging: on (low) | |
Default: deny (incoming), deny (outgoing), disabled (routed) | |
New profiles: skip | |
To Action From | |
-- ------ ---- | |
53 ALLOW OUT Anywhere | |
80/tcp ALLOW OUT Anywhere |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Union | |
import torch | |
import numpy as np | |
def percentile(t: torch.tensor, q: float) -> Union[int, float]: | |
""" | |
Return the ``q``-th percentile of the flattened input tensor's data. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xmltodict | |
import pandas as pd | |
with open("full_database.xml") as db: | |
doc = xmltodict.parse(db.read()) | |
values = [] | |
for item in doc['drugbank']['drug']: | |
logp = None | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, time, sys, subprocess | |
if len(sys.argv) == 2: | |
time.sleep(5) | |
print 'track end' | |
if sys.platform == 'darwin': | |
subprocess.Popen(['say', 'hello']) | |
else: | |
print 'main begin' | |
subprocess.Popen(['python', os.path.realpath(__file__), '0'], close_fds=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install docker.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import traceback | |
from functools import wraps | |
from multiprocessing import Process, Queue | |
def processify(func): | |
'''Decorator to run a function as a process. | |
Be sure that every argument and the return value |