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
| /** | |
| * @file: inheritance.c | |
| * @name: Luke Gary | |
| * @company: <company> | |
| * @date: 2023/11/22 | |
| ******************************************************************************** | |
| * @copyright | |
| * Humanity | |
| ******************************************************************************** | |
| * @brief: practice for oop inheritance in c |
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
| :: power shell only | |
| :: chocolatey | |
| Set-ExecutionPolicy AllSigned; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
| :: scoop | |
| iex (new-object net.webclient).downloadstring('https://get.scoop.sh') | |
| :: general programs |
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
| @page { | |
| size: 210mm 297mm; /* A4-sized pages in portrait orientation; default is US letter */ | |
| margin-top: 2.54cm; | |
| margin-bottom: 2.54cm; | |
| margin-left: 1.27cm; | |
| margin-right: 1.27cm; | |
| } | |
| body,p,li,td,table,tr,.bodytext,.stepfield { | |
| font-size: 15px; |
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 <stdio.h> | |
| #include <stdint.h> | |
| /** This is fun... | |
| * Trigraph Replaces | |
| * | |
| * ??( [ | |
| * ??) ] | |
| * ??< { | |
| * ??> } |
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
| // test | |
| // https://paiza.io/projects/gckklFp-m9gy5nT3pGsFKw | |
| // stack overflow source | |
| // https://stackoverflow.com/questions/400951/does-c-have-a-foreach-loop-construct | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #define COUNTOF(x) (sizeof(x) / sizeof(x[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
| """ | |
| test file for mso-x 3032T oscilloscope | |
| """ | |
| from instruments.instrument import Instrument | |
| from instruments.oscilloscope import * | |
| from time import sleep | |
| import scipy.signal as sig | |
| import scipy.fft as fft |
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 instruments.instrument import Instrument | |
| from pyvisa import (VisaIOError, InvalidSession, VisaIOWarning, log_to_screen, ResourceManager) | |
| import pprint as pp | |
| import numpy as np | |
| class OscilloscopeModels: | |
| """ | |
| This class describes oscilloscope models. | |
| """ |
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
| """ | |
| Generic VISA Intrument interface | |
| """ | |
| import time | |
| from datetime import datetime | |
| from typing import List | |
| import pprint as pp | |
| from pyvisa import (VisaIOError, InvalidSession, VisaIOWarning, log_to_screen, ResourceManager) |
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
| // https://paiza.io/projects/OrgoRimpHHbdu59tfAsmoQ | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #define ADC_MAX_CODE (0x0FFFu) | |
| static float convert_to_normalized(uint16_t sample); | |
| static float convert_to_normalized(uint16_t sample) | |
| { | |
| return (((2.0f)/(float)ADC_MAX_CODE) * (float)sample) - 1.0f; | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder