This file contains 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
# This is a simple example to connect and receiver packet | |
# from the Zephyr BioHarness 3.0 device via Bluetooth. | |
# use of PyBlueZ | |
import bluetooth | |
socket = bluetooth.BluetoothSocket( bluetooth.RFCOMM ) | |
try : | |
# Replace the MAC address |
This file contains 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 guidata.qt.QtGui import QWidget, QMainWindow, QVBoxLayout, qApp | |
from guidata.qtwidgets import DockableWidget | |
from guidata.qt.QtCore import Qt, QThread | |
from guiqwt.plot import CurveWidget, CurvePlot | |
from guiqwt.builder import make | |
from guiqwt.config import _ | |
APP_NAME = _("Very simple Qwt dockable widget with PyQt") | |
class DockablePlotWidget( DockableWidget ): |
This file contains 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 os, time, signal, sys | |
from Adafruit_ADS1x15 import ADS1x15 | |
import RPi.GPIO as GPIO | |
from datetime import datetime | |
import subprocess | |
import argparse | |
import requests | |
import json |
This file contains 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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:614bf52063d113273a52054f6235b357b200120c8546564c4c6b6be5499f22da" | |
}, |
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# IQ Measurements" | |
] | |
}, | |
{ |
This file contains 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 numpy as np | |
import pandas as pd | |
from scipy.stats import beta as beta_distribution | |
def ParkMillerRNG(seed, start, end): | |
"""Park and Miller Random Number Generator""" | |
m = 2**31 - 1 | |
a = (end-start)/m | |
b = start |