Skip to content

Instantly share code, notes, and snippets.

View Muntasir2001's full-sized avatar
⌨️
Busy smashing the keyboard!

Muntasir2001

⌨️
Busy smashing the keyboard!
View GitHub Profile
function Decoder(request) {
var payload = JSON.parse(request.body);
var sensor_data;
//refer page 3 for Lightricity data types and assigned numbers
var Lightricity_data = [
'Vendor ID', //0
'Sensor ID',
'Beacon Counter',
'MAC Address',
'TX Power',
@Muntasir2001
Muntasir2001 / caesar_converter.py
Last active June 1, 2022 08:53
Caesar Cipher Encoder
def convert_to_caesar():
sentence = input('Enter your sentence to be encrypted:').upper().replace('.', 'X').replace(' ', '')
shift = int(input('Enter the shift value (integers only):'))
encrypt = ""
# basic algorithm
# c = (x + n) % 26
# Where c is the encoded character, x is the actual character, and n is the number of positions we want to shift the character x by. We’re taking mod with 26 because there are 26 letters in the English alphabet.
@Muntasir2001
Muntasir2001 / README.md
Last active May 31, 2022 21:26
Args explanation for Oranginio

Now that you have created hero file with hero function inside it, let me tell you the main goal of all this:

  1. Its for you to understand how arguments work.
  2. Its for you to understand how to make the help command you were talking about.
  3. Its for you to understand how importing and exporting in JS work and the meaning of it.

What we are trying to achieve here is:

  1. Set an argument to trigger your hero function/file (I believe you know the meaning of argument by now).
  2. Use the hero function/file to send a message in discord.
@Muntasir2001
Muntasir2001 / README.md
Created October 19, 2021 13:37
RS186 sensor decoder code