Skip to content

Instantly share code, notes, and snippets.

View asbp's full-sized avatar

Agung Satrio Budi Prakoso asbp

View GitHub Profile
// Online Java Compiler
// Use this editor to write, compile and run your Java code online
import java.util.Scanner;
class LLStack {
class Node {
public String data;
public Node next;
}
@asbp
asbp / handleDataTables.php
Last active October 5, 2022 10:46
My DataTables (https://datatables.net) backend handler (for Laravel 8+) #laravel #datatables #php
<?php
use Illuminate\Database\Query\Builder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
/**
* Handle DataTable backend (for Laravel)
*
* @param string $table Name of the table.
<?php
$array = array(
array(
'kode' => 'FIS15101',
'nama' => 'Fisika Dasar',
'sks' => '2',
'nilai' => '4',
'ak' => '8',
),
array(
@asbp
asbp / atm.dart
Created November 12, 2019 15:15
Aplikasi ATM sederhana pisan
import 'dart:io';
class User {
String nama, pin;
int saldo;
User(String nama, String pin, int saldo) {
this.nama = nama;
this.pin = pin;
this.saldo = saldo;