Skip to content

Instantly share code, notes, and snippets.

View BlueBeret's full-sized avatar
⚰️
dead

click_here BlueBeret

⚰️
dead
View GitHub Profile
@BlueBeret
BlueBeret / open-hotfix.zsh
Created May 21, 2025 11:10
Script to open hotfixes PR
#!/bin/zsh
# CONFIG
REPO_BASE_URL="https://github.com/StackGuardian/dashboard" # Change this to your repo
CODE_EDITOR="code" # or "code", "vim", etc.
PR_TEMPLATE_FILE="/tmp/pr_template.md" # Temporary file for PR template
DASH_BASE_BRANCH="develop" # Change as needed
PROD_BASE_BRANCH="main" # Change as needed
# REQUIRED COMMANDS CHECK
@BlueBeret
BlueBeret / Rieman.py
Created April 3, 2023 15:49
A simple implementation of a function to calculate definite integral with Rieman sum method
from math import exp
def fx(x):
return (x+7) * exp(x)
def jumlahanRiemanKiri(function, a, b, n = 10e7):
"""
Fungsi untuk menghitung integral tentu menggunakan metode jumlah rieman kiri
Parameters