Skip to content

Instantly share code, notes, and snippets.

View rnazali's full-sized avatar
🏡
Working remotely from my okayest hometown

Rahmat Nazali Salimi rnazali

🏡
Working remotely from my okayest hometown
View GitHub Profile
const fs = require('fs');
let data = fs.readFileSync('IRONCLAD.autosave.json', 'utf8');
const out = [];
for (let i = 0; i < data.length; i++) {
const key = 'key';
out.push(data.charCodeAt(i) ^ key.charCodeAt(i % key.length));
}
@rnazali
rnazali / terbilang.py
Last active July 26, 2024 09:34 — forked from sugiana/terbilang.py
Update to classmethod
# tested on python 3.11, but should work on 3.8+
class SaidIndonesian:
unit = ['', 'satu', 'dua', 'tiga', 'empat', 'lima', 'enam', 'tujuh', 'delapan', 'sembilan', 'sepuluh', 'sebelas']
@classmethod
def from_integer(cls, number: int) -> str:
if number is None:
return ''
@rnazali
rnazali / my_first_gist.py
Created April 6, 2018 09:31
My first gist
print("hello to my first gist!")