Skip to content

Instantly share code, notes, and snippets.

View ifindev's full-sized avatar

Muhammad Arifin ifindev

View GitHub Profile
@ifindev
ifindev / Pathloss.py
Last active February 21, 2023 04:52
Python code to calculate path loss exponent information from path loss measurement data.
"""
Author : Muhammad Arifin
Institution : Department of Nuclear Engineering and Engineering Physics, Universitas Gadjah Mada
Initial Release : 29th April, 2020
License : MIT License
Description : This program is a direct implementation of mathematical equations
used to calculate path loss exponent information from path loss
measurement data. The implementation is based on theoritical
explanation on Andreas Goldsmith's Wireless Communications book
@ifindev
ifindev / fanGraph.py
Last active April 30, 2020 14:42
Program sederhana untuk membuat grafik eksponensial peningkatan konsentrasi CO2
"""
Author : Muhammad Arifin
Date : 30 April 2020
Deskripsi: Program sederhana untuk membuat grafik eskponensial
peningkatan konsentrasi CO2 seiring berjalannya waktu.
"""
import numpy as np
import matplotlib.pyplot as plt
"""
Author : Muhammad Arifin
Date : 1 May 2020
Description : Rewrite the implementation on this repo https://github.com/arnandprabaswara/simple_hebb_neuron/blob/master/Hebb_Rule.ipynb
"""
import numpy as np
import pandas as pd
# Inisiasi data
@ifindev
ifindev / minmax.py
Last active May 7, 2020 17:29
Min-max algorithm implementation for indoor localization process. Should be rewrite for a cleaner code.
"""
Author : Muhammad Arifin
Date : 8th May, 2020
Institution : Universitas Gadjah Mada, Department of Nuclear Engineering and Engineering Physics
Description : Very rough min-max algorithm implementation for indoor localization problem.
RSSI data is obtained from https://github.com/pspachos/RSSI-Dataset
"""
import numpy as np
import matplotlib.pyplot as plt
@ifindev
ifindev / minmax.py
Last active May 25, 2020 06:26
Trilateration and Min-Max algorithms implementation for indoor localization problems.
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import os
# def main():
# path = 'D:/Skripsweetku/FILE INTI SKRIPSI/Raw Data/Pengukuran Variasi Jarak Ulangan/'
path = 'D:/Skripsweetku/FILE INTI SKRIPSI/Raw Data/Pengukuran Variasi Jarak dan Manusia/'
@ifindev
ifindev / webserver.ino
Last active May 9, 2020 07:29
Sistem akuisisi data RSSI versi alpha. Bagian yang diubah dari kode asli adalah baris ke-95 sampai dengan baris ke-99.
/*********
Original Project by: Rui Santos
Modified by: Alvin Samuel
Complete project details at https://randomnerdtutorials.com
https://randomnerdtutorials.com/esp32-web-server-arduino-ide/
*********/
// Load Wi-Fi library
#include <WiFi.h>
@ifindev
ifindev / README.md
Last active February 4, 2021 04:17
C & C++ Exploratory Codes: Part-1

C & C++ Exploratory Codes: Part-1

These are some of my experimentation codes I made while trying to understand F-Army & Thotro Arduino Library for DWM1000 module. It might be useful for future references, I think.

@ifindev
ifindev / README.md
Last active February 4, 2021 04:22
C & C++ Exploratory Codes: Part-3

C & C++ Exploratory Codes: Part-3

These are some of my experimentation codes I made while trying to do different variable type-casting in C language. It might be useful for future references, I guess.

@ifindev
ifindev / README.md
Last active February 11, 2021 02:19
A Simple Public API for User Creation

userAPI

This simple API is a self improvement of the example given by You Don't Know Js book about closure and modules. In the closure and module section, the author made an example of a simple public API for user creation. After reading that, I was inspired to add some more publicAPI functions for more general use cases. This is the original code from the book:

function User(){
	var username, password;

	function doLogin(user,pw) {
		username = user;
		password = pw;
@ifindev
ifindev / README.md
Created February 11, 2021 15:13
Array Filtering Using Several Methods

Array Filtering Using Several Methods

In this gist, I played around with different ways for filtering an array based on objects' value. There are three different ways we can use to filter an array. Those are:

  • using normal for loop,
  • using filter method with normal callback function
  • using filter method with an arrow function as the callback.