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
# input and DC coupling | |
V0 1 0 Vin | |
Pgain 0 2 1 100000 | |
Cdc 2 3 1e-6 | |
R100k 3 4 100000 | |
R1k 4 0 1000 | |
Oamp 4 5 5 # buffer | |
R33k 5 6 33000 |
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
#include <vector> | |
#include <string> | |
#include <cstdio> | |
#include <cmath> | |
// set to 1 to make LU factorization show pivots | |
#define VERBOSE_LU 0 | |
// gMin for diodes etc.. | |
static const double gMin = 1e-12; |
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
# Untar this in current dir | |
# https://github.com/alandefreitas/matplotplusplus/releases/download/v1.1.0/matplotplusplus-1.1.0-Linux.tar.gz | |
LDFLAGS = lib/libmatplot.a lib/Matplot++/libnodesoup.a -lpng -lz -ltiff -ljpeg | |
CXXFLAGS = -std=c++17 -I../chowdsp_wdf/include -Iinclude | |
SRC = main.cpp | |
OUT = main | |
$(OUT): $(SRC) |
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
diff --git a/Makefile b/Makefile | |
index 74044665..9f048f58 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -106,7 +106,7 @@ cleandep: | |
$(MAKE) -C dep clean | |
run: $(STANDALONE_TARGET) | |
- ./$< -d | |
+ valgrind --track-origins=yes ./$< -d |
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
const int numLEDS = 4; | |
const int LEDs[numLEDS] = {5, 6, 3, 9}; | |
int binaryVariable = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
for (int k = 0; k < numLEDS; k++) { | |
pinMode(LEDs[k], OUTPUT); | |
analogWrite(LEDs[k], 0); |
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
// ==UserScript== | |
// @name Add proper Wanikani links to Jisho | |
// @version 1 | |
// @grant none | |
// @include https://jisho.org* | |
// ==/UserScript== | |
var aTags = document.getElementsByTagName("a"); | |
var searchText = "wanikani"; |
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
<div id="card-front"> | |
<div id="quest"> | |
<div id="quest-display"> | |
{{Characters}} | |
</div> | |
<div id="quest-name"></div> | |
<div class="input"> | |
{{type:Do_Not_Modify}} | |
</div> | |
</div> |
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 os | |
import numpy as np | |
from pathlib import Path | |
import tensorflow as tf | |
print("tensorflow version: ", tf.__version__) |
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/env python | |
from scipy import optimize | |
from scipy import integrate | |
import numpy as np | |
import sys | |
l, L = 0.02, 1 | |
N = 128 |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai] | |
"Colour21"="255,255,255" | |
"Colour20"="245,222,179" | |
"Colour19"="200,240,240" | |
"Colour18"="0,217,217" | |
"Colour17"="179,146,239" | |
"Colour16"="174,129,255" | |
"Colour15"="122,204,218" |
NewerOlder