Skip to content

Instantly share code, notes, and snippets.

View uluumbch's full-sized avatar
🎓

Bachrul uluum uluumbch

🎓
View GitHub Profile
@uluumbch
uluumbch / sendEmailToList.gs
Created May 21, 2024 12:16
Kirim email secara otomatis dari list di google sheets
function sendEmails() {
const sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
const dataRange = sheet.getRange("A3:B40");
const data = dataRange.getValues();
for (let i = 0; i < data.length; i++) {
const row = data[i];
const emailAddress = row[0];
const name = row[1];
const subject = `Informasi terkait Program Google Arcade Fasilitator 2024 oleh fasilitator`
@uluumbch
uluumbch / .htaccess
Created March 20, 2024 08:48
htaccess file for redirecting request to public folder. Used on Laravel project
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
@uluumbch
uluumbch / install_php_nginx.sh
Last active May 27, 2023 10:35
Cara install NGINX PHP Composer NPM dan Node JS di ubuntu
#!/bin/bash
# Update the system
sudo apt update
sudo apt upgrade -y
# Install PHP dependencies
sudo apt install -y software-properties-common
# Add the ondrej/php repository for PHP 8.2
@uluumbch
uluumbch / create.html
Created May 19, 2023 11:20
CRUD TEMPLATE BOOTSTRAP 5 WITH LOGIN
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
@uluumbch
uluumbch / README.md
Created February 24, 2023 02:18
Auto Follow instagram account from list of link

this is just simple code using python and selenium library for auto following from list given.

Instalation

before using this code, make sure you have python installed and then install selenium using this command line. Open terminal then type: pip install selenium

Running

Last, run app.py and let the magic happen :)

@uluumbch
uluumbch / how_to_create_number_formatting_livewire.md
Last active June 6, 2022 11:58
How to create number formatting(currency) in Laravel livewire powergrid

To add formating, just simply add closure to ->addColumn function

...
public function addColumns(): PowerGridEloquent{
->addColumn('column_name', function (Model $model){
                return "Rp".number_format($model->currency_table_name,0,',','.');
            })
            ...
@uluumbch
uluumbch / 1.php
Created April 11, 2022 04:35
Jawaban UTS Pemrograman Web II Semester Genap Teknologi Informasi Universitas Lambung Mangkurat
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>soal 1</title>
</head>
@uluumbch
uluumbch / PRAK302.php
Last active April 6, 2022 05:06
praktikum modul 3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Soal 2 | seigita</title>
<style>
.tab {
@uluumbch
uluumbch / Dadu.java
Created September 30, 2021 02:47
program dadu sederhana menggunakan java
package praktikum3.soal1;
import java.util.Random;
public class Dadu {
public Dadu() {
acakNilai();
}
int acakNilai() {
@uluumbch
uluumbch / Buku.java
Created September 29, 2021 09:22
program java sederhana dengan constructor, abstract, input
package praktikum4.soal2;
public abstract class Buku {
protected String judul;
protected String penulis;
protected int tahun;
protected void display() {
}
}