Skip to content

Instantly share code, notes, and snippets.

View glenkusuma's full-sized avatar

Glen Kusuma glenkusuma

View GitHub Profile
@glenkusuma
glenkusuma / install-zsh-windows-git-bash.md
Last active March 25, 2024 13:47 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@glenkusuma
glenkusuma / igracias_edom.js
Last active December 31, 2023 06:44
igrasias edom script - feelin lazy pressin all the input form in igracias edom? just copy and paste this javascript into your dev tool console! let the javascript magic do it's thing and voilà✨
// igrasias edom script version 18/01/23
// presses all radio button inputs with a value of 'Sangat Puas'
var opt = document.getElementsByClassName("opt");
for(var i = 0; i < opt .length; i++){
if(opt [i].parentElement.nextElementSibling.innerHTML === 'Sangat puas'){
opt [i].click();
}
}
// if there is a text field, gives the text field value with invisible space
if (document.querySelector('textarea')) {
@glenkusuma
glenkusuma / LKG.py
Created October 23, 2022 08:16
Lipat Kertas Gambar GemasTIK XIV (2021)
# Lipat Kertas Gambar GemasTIK XIV (2021)
# ini adalah fungsi untuk menghitung jumlah lipatan kertas gambar
def lkg(N,jumlahKertas):
i = 1
while i <= jumlahKertas:
n = N[i-1]
m = n[2]
j = 1
# melipat sisi kertas yang paling besar
while j <= m:
@glenkusuma
glenkusuma / permutasi-dan-kombinasi.md
Last active April 7, 2022 07:12 — forked from andrijunaedi/permutasi-dan-kombinasi.md
Permutasi dan Menghitung Kombinasi

Permutasi & Minghitung Kombinasi

Creator

Soal

Tentukan jumlah susunan yang akan diperoleh, jika hendak menghabiskan uang sejumlah $100 untuk tepat membeli 100 ayam, kriteria jenis ayam dan harganya ditentukan berikut: