Skip to content

Instantly share code, notes, and snippets.

View refeed's full-sized avatar
🉐
maximizing human potential

Rafid Aslam refeed

🉐
maximizing human potential
View GitHub Profile
@refeed
refeed / zulip-archive proposal: Jinja2 templating as configuration.md
Last active July 8, 2022 10:53
zulip-archive proposal: Jinja2 templating as configuration

Zulip-archive proposal - Use jinja2 templating as config instead of telling the user to edit the internal code

The problem

  • Currently the way of how zulip-archive's users to change the looks of their website is to fork the project then change the internal library, especially lib/website.py
  • I think it would be better to give the responsibility of handling the rendering part to a more reliable and mature library (such as Jinja2) rather than managing the implementation ourselves as zulip-archive becoming a more complex project.

Proposed solution

  • Use templating library like jinja2 to handle how the page wi
@refeed
refeed / jam_bantu_simaster_kkn.js
Last active January 18, 2024 14:13
hitung jam bantu simaster
// Guide:
// 1. Pergi ke simaster > kkn > rpp
// 2. Buka salah satu rpp proker sehingga terlihat proker bantu
// 3. Tekan F12 untuk memunculkan console, lalu paste script di bawah ini
// - Jika script tidak berjalan, bisa ketik: `allow pasting` terlebih dahulu (terkhusus untuk chrome)
(function payingkeyen() {
// change this when the ui is updated
const TABLE_JAM_BANTU = $("#subcontent-element > div:nth-child(8) > div.panel-body > div > table");
import random
import pdb
import sys
import traceback
def calculate_average(values):
# BUG: Tidak handle jika list kosong, akan raise ZeroDivisionError
return sum(values) / len(values)
def process_data(data):
@refeed
refeed / gsoc.txt
Created December 19, 2025 23:49
GSoC JogjaDevs 2025 resource links
2026 GSoC: https://opensource.googleblog.com/2025/12/shape-future-with-google-summer-of-code.html
# Ismail Sunni
https://ismailsunni.medium.com/tips-mengikuti-google-summer-of-code-cab68a04c1d7
# Sage Muhammad Abdullah @ Django
https://www.youtube.com/watch?v=qFUQO8HUdIQ
https://www.youtube.com/watch?v=-WjT4LhqcuU
https://www.youtube.com/watch?v=w6CmKc2h4ME
https://www.youtube.com/watch?v=o9Zb1RmS8vk