Skip to content

Instantly share code, notes, and snippets.

View GlistenSTAR's full-sized avatar
Fantastic speed

Glisten STAR GlistenSTAR

Fantastic speed
View GitHub Profile
function reverseInteger(input) {
let number = Math.abs(input); // holds a new copy of the absolute value of the input integer
let result = 0; // creates a result variable to hold the aggrigate of our while loop
while (number > 0) { // while the number is greater than 0 (simplified way of saying less than or equal to 1)
const lastDigit = number % 10; // each iteration runs modulo 10 on the number variable giving us the last digit
result = result * 10 + lastDigit; // sets result equal to itself multiplied by 10 plus the last digit
number = Math.floor(number / 10); // removes the last number for the next iteration
}
@GlistenSTAR
GlistenSTAR / main.py
Created October 29, 2021 13:16 — forked from Lauszus/main.py
Siglent SDS2000X plus hack
import hashlib
SCOPEID = '0000000000000000'
Model = 'SDS2000X+'
# Note that 'AWG' should be used for the 'FG' option
# If you have the 100 MHz model, then first upgrade it to 200 MHz, then 350 MHz and finally 500 MHz
bwopt = ('25M', '40M', '50M', '60M', '70M', '100M', '150M', '200M', '250M', '300M', '350M', '500M', '750M', '1000M', 'MAX', 'AWG', 'WIFI', 'MSO', 'FLX', 'CFD', 'I2S', '1553', 'PWA')
hashkey = '5zao9lyua01pp7hjzm3orcq90mds63z6zi5kv7vmv3ih981vlwn06txnjdtas3u2wa8msx61i12ueh14t7kqwsfskg032nhyuy1d9vv2wm925rd18kih9xhkyilobbgy'