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
| #!/bin/bash | |
| # | |
| # Build script for UHD+GnuRadio on Fedora and Ubuntu | |
| # | |
| # | |
| # | |
| # Updates: https://github.com/guruofquality/grextras/wiki | |
| # Updates: https://github.com/balint256/gr-baz.git | |
| # | |
| # |
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
| W = 500 | |
| H = 585 | |
| W1 = W - 1 | |
| H1 = H - 1 | |
| def setup | |
| @img = load_image '../scratch/girl.png' | |
| @img.filter BLUR, 3 | |
| @img.load_pixels | |
| end |
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 serial | |
| import sys | |
| import csv | |
| import pathlib | |
| from datetime import datetime | |
| def list_serial_ports(): | |
| """ Lists serial port names |
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
| void setup() | |
| { | |
| // open serial port, set the baud rate to 9600 bps | |
| Serial.begin(115200); | |
| } | |
| void loop() | |
| { | |
| float UVIndex; | |
| // Connect UV sensors to Analog 0 |
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
| Passo a passo de instalações do Python: | |
| 1 - Miniconda: https://conda.io/miniconda.html | |
| Python 3.6 -> https://repo.continuum.io/miniconda/Miniconda3-latest-Windows-x86_64.exe | |
| Na instalação, escolher colocar o caminho do Miniconda/Anaconda no PATH (garante acesso ao python e ipython via cmd) | |
| 2 - Instalar o último driver da placa de vídeo: http://www.nvidia.com.br/Download/index.aspx | |
| 3 - Instalar o CUDA Toolkit 9.0: https://developer.nvidia.com/cuda-90-download-archive |
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
| #include <AutoAnalogAudio.h> | |
| AutoAnalog aaAudio; | |
| //int32_t bufferSize = MAX_BUFFER_SIZE; | |
| int32_t bufferSize = 32; | |
| uint8_t dacChannel = 0; // Use DAC0 for output | |
| // uint8_t dacChannel = 1; // Use DAC1 for output | |
| // uint8_t dacChannel = 2; // Use both DAC0 and DAC1 |
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
| clc | |
| close all | |
| clearvars | |
| %% %% Water Dynamics | |
| %% Surface water runoff | |
| % USDA Soil Conservation Service runoff curve number |
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
| from pathlib import Path | |
| from glob import glob | |
| import os | |
| import math | |
| def batchRename(folderPath='.', preffix='p'): | |
| if isinstance(folderPath, str): | |
| folderPath = Path(folderPath) |
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
| clc | |
| clearvars | |
| close all | |
| % resistividade aparente do solo [ohm*m] | |
| rhoa = 448; | |
| % resistividade da camada superior do solo [ohm*m] | |
| rhoi = 472; |
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
| clc | |
| close all | |
| clearvars | |
| % function handles | |
| Rel = @(rho,Lh,Dh) rho./(2*pi*Lh).*log(400/2.54*Lh./Dh); | |
| Rem = @(rho,Lh,Dem) 0.183*rho./Lh.* ... | |
| log10( ((sqrt(Lh.^2+Dem.^2) + Lh).^2 - Dem.^2)./ ... | |
| (Dem.^2 - (sqrt(Lh.^2+Dem.^2) - Lh).^2)); |