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
jordi@ThinkSpoon:~/Downloads$ ./sigrok-cli-NIGHTLY-x86_64.AppImage -d korad-kaxxxxp:conn=/dev/ttyACM0 --scan -l 5 | |
sr: [00:00.000001] log: libsigrok loglevel set to 5. | |
sr: [00:00.001406] backend: libsigrok 0.6.0-git-3f48ab0/4:0:0. | |
sr: [00:00.001497] backend: Libs: glib 2.48.2 (rt: 2.62.4/6204:4), libzip 1.0.1, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0 1.0.23.11397 API 0x01000104, hidapi 0.8.0-rc1, bluez 5.37, libftdi 1.2. | |
sr: [00:00.001505] backend: Host: x86_64-pc-linux-gnu, little-endian. | |
sr: [00:00.001509] backend: SCPI backends: TCP, RPC, serial, USBTMC. | |
sr: [00:00.001511] backend: Firmware search paths: | |
sr: [00:00.001524] backend: - /root/.local/share/sigrok-firmware | |
sr: [00:00.001526] backend: - /home/jenkins_slave/sr/share/sigrok-firmware | |
sr: [00:00.001528] backend: - /tmp/.mount_sigrok5z2EPG/usr/share/sigrok-firmware |
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
#!/usr/bin/python | |
import urllib2 | |
from HTMLParser import HTMLParser | |
def getPage(drugId): | |
url = "http://www.genome.jp/dbget-bin/get_linkdb?-t+8+dr:"+drugId | |
req = urllib2.Request(url) | |
response = urllib2.urlopen(req) | |
return response.read() |
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 sys | |
import threading | |
import time | |
class cSpinner(threading.Thread): | |
""" | |
Print things to one line dynamically | |
""" | |
chars = ["\\","|","/","-"] | |
index = 0 |