Skip to content

Instantly share code, notes, and snippets.

View drepram's full-sized avatar
🌊
Di pantai pasir berdesir gelombang

Andre Pramaditya drepram

🌊
Di pantai pasir berdesir gelombang
View GitHub Profile
@drepram
drepram / index.js
Last active November 10, 2020 14:29
A script utilized to process data (in the form of comma-separated-values) as part of the Pengantar Sains Data (Intro to Data Science) class at the Faculty of Mathematics and Natural Science of the University of Indonesia (FMIPA UI). Its efficiency and functionality is a work in progress, pardon me.
// Pemrograman dan instruksi komputasi ini ditulis oleh Andre Christoga Pramaditya (drepram.com) dengan NPM 2006570006.
// Mohon maaf jika ada komen-komen dalam kode yang membingungkan dikarenakan script ini melewati iterasi yang cukup banyak.
// Kami (Kelompok A PSD) melakukan memproses data Excel dalam bahasa JavaScript dengan bantuan library CSV-Parser.
// Saya harap file data `parmalim.csv` tidak mengandung file yang sensitif, saya hendak menambahkanya pada GitHub Gist ini untuk menambahkan konteks jikalau ada yang membaca.
// Dengan adanya file tersebut, pembaca dapat melihat variasi data dan pada index apa data tersebut berada.
// Disclaimer: terjadi glitch pada Timestamp ketika mengconvert xlsx ke csv. Untungnya hal tersebut tidak mempengaruhi finalisasi komputasi.
// To be quite honest, there are numerous ways I could improve the efficiency/functionality of this code, but there is a deadline.
// Hence, all I was looking for was the minimum viable solution to the problem I was faced with. And this i
@drepram
drepram / 10-matematika.js
Created April 30, 2020 05:23
The problem with JavaScript Object Field escape characters
let objek = {
"subjek": "10mat",
"10mat1": {
"id": "10mat1",
"noPertanyaan": 1,
"pertanyaan": "",
"jawaban": {
"a": "$ b - a < x - y < a - b $",
"b": "$ a - b < x - y < b - a $",
"c": "$ \frac {1}{2}\\ (b-a) < x - y < \frac {1}{2}\\ (a-b) $",

Keybase proof

I hereby claim:

  • I am drepram on github.
  • I am drepram (https://keybase.io/drepram) on keybase.
  • I have a public key whose fingerprint is 7B07 C98B 0603 5116 19FB 169F 47CC DD13 8FBC 491B

To claim this, I am signing this object: