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 base64 | |
import json | |
import sys | |
import serial | |
import random | |
import os | |
if len(sys.argv) != 4: | |
print(f"Usage\n{sys.argv[1]} tty code.py slot") | |
exit() |
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
# Maintainer: David Runge <dvzrv@archlinux.org> | |
# Contributors: Dave Reisner <dreisner@archlinux.org> | |
# Matthias Blaicher <matthias@blaicher.com> | |
# Severen Redwood <severen@shrike.me> | |
_pkgname=capnproto | |
pkgname=capnproto-git | |
pkgver=0.8.r1.b5ab41ea | |
pkgrel=1 | |
pkgdesc="Cap'n Proto serialization/RPC system" |
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
.global Vss Vdd | |
.model digital_pulldown d_pulldown | |
.model digital_pullup d_pullup | |
Ad_pulldown Vss digital_pulldown | |
Ad_pullup Vdd digital_pullup | |
.SUBCKT __BUF_ A Y | |
.model buffer1 d_buffer |
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
using ModelingToolkit | |
using StructuralTransformations | |
using OrdinaryDiffEq | |
using IfElse: ifelse | |
using Plots | |
function NMOS_L1(Vg, Vd, Vs, Vth, W, L, uCox) | |
Vgs = Vg-Vs | |
Vds = Vd-Vs |
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
using LinearAlgebra | |
@enum Element Resistor Voltage Current | |
netlist = [ | |
(0, 1, Resistor, 4), | |
(0, 1, Current, 6), | |
(0, 2, Resistor, 6), | |
(0, 3, Resistor, 8), | |
(1, 2, Resistor, 3), |
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 selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.action_chains import ActionChains | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
driver = webdriver.Firefox() | |
driver.get("https://www.domijn.nl/mijndomijn/inloggen/") | |
assert "Domijn" in driver.title |
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
#![no_main] | |
#![no_std] | |
use panic_halt as _; | |
use stm32f407g_disc as board; | |
use crate::board::{ | |
hal::stm32, | |
hal::spi::{Mode, Phase, Polarity, Spi}, |
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 time | |
import board | |
import busio | |
import adafruit_sgp30 | |
import adafruit_dht | |
from influxdb import InfluxDBClient | |
from math import exp | |
from queue import Queue | |
from threading import Thread, Event |
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 pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates | |
#cutoff = 100 | |
def flip(name): | |
df = pd.read_csv(name) | |
del df['Lat'] |
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
(ns logicgame.core | |
(:use clojure.core.logic) | |
(:gen-class)) | |
(defne ando [a b y] | |
([1 1 1]) | |
([1 0 0]) | |
([0 1 0]) | |
([0 0 0])) |