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 <SoftwareSerial.h> | |
SoftwareSerial esp8266(4, 5); | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Arduino...OK"); | |
esp8266.begin(115200); | |
// esp8266.write("AT+UART_DEF=9600,8,1,0,0\r\n"); | |
delay(1500); |
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 <iostream> | |
#include <iomanip> | |
#include <fstream> | |
#include <sys/time.h> | |
#include "ap.h" | |
#include "linalg.h" | |
using namespace std; | |
using namespace alglib; |
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
#ifndef GSLSINGULARVALUEDECOMPOSITION_H | |
#define GSLSINGULARVALUEDECOMPOSITION_H | |
#include <gsl/gsl_matrix.h> | |
#include <gsl/gsl_vector.h> | |
#include <gsl/gsl_blas.h> | |
#include <gsl/gsl_linalg.h> | |
#include <gsl/gsl_errno.h> | |
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 <stdio.h> | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <iomanip> | |
#include <sys/time.h> | |
#include <gsl/gsl_vector.h> | |
#include "gsl_SVD.h" |
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
#define EIGEN_USE_MKL_ALL | |
#define EIGEN_VECTORIZE_SSE4_2 | |
#include <bits/stdc++.h> | |
#include <sys/time.h> | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <exception> |
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
# Define base image | |
# FROM nvidia/cuda:11.3.0-runtime-ubuntu20.04 | |
# FROM nvidia/cuda:11.3.0-cudnn8-runtime-ubuntu20.04 | |
# FROM nvidia/cuda:11.3.0-cudnn8-devel-ubuntu20.04 | |
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04 | |
ENV PATH="/root/miniconda3/bin:${PATH}" | |
ARG PATH="/root/miniconda3/bin:${PATH}" | |
RUN sed -i 's/http:\/\/archive.ubuntu.com\/ubuntu/http:\/\/free.nchc.org.tw\/ubuntu/g' /etc/apt/sources.list |
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
% Clear all text from the Command Window. | |
clc; clear all; close all; | |
fprintf('SVD -- start calculating...\n'); | |
tic % 開始計時 | |
% data importing | |
% data = 'LBPhistogram_BGC_20220609.csv'; | |
% data = 'LBPhistogram_BRGC_20220609.csv'; |
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 <bits/stdc++.h> | |
#include <sys/time.h> | |
#include <iostream> | |
#include <ctime> | |
#include <fstream> | |
#include <vector> | |
#include <sstream> | |
#include <map> | |
#include <algorithm> | |
#include <cmath> |
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
/* | |
ESP8266 Blink by Simon Peter | |
Blink the blue LED on the ESP-01 module | |
This example code is in the public domain | |
The blue LED on the ESP-01 module is connected to GPIO1 | |
(which is also the TXD pin; so we cannot use Serial.print() at the same time) | |
Note that this sketch uses LED_BUILTIN to find the pin with the internal LED | |
*/ |
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
# Tools | |
import time | |
import board | |
import neopixel | |
dup = 37 # hyphen | |
# include audio libraries |
NewerOlder