Skip to content

Instantly share code, notes, and snippets.

View agungdh's full-sized avatar

Agung Sapto Margono Dh agungdh

View GitHub Profile
@agungdh
agungdh / wuri.r
Created October 27, 2018 01:53
perulangan 5 sampe 20 dengan penambahan 4 setiap iterasi
awal <- 5
akhir <- 20
penambahan <- 4
nilai <- awal
repeat {
print(nilai)
nilai <- nilai + penambahan
if(nilai > akhir) {
<li class="header">MAIN NAVIGATION</li>
@php
$menus = DB::table('menu')
->whereNull('parent_id')
->get();
foreach ($menus as $menu) {
$menus2 = DB::table('menu')
->where('parent_id', $menu->id)
@agungdh
agungdh / leet.php
Created February 14, 2018 04:45 — forked from hinzundcode/leet.php
Leetspeak Generator
<?php
header('Content-type: text/plain; charset=utf8');
$input = "hab me eben nen leet-speak generator geschrieben..";
$words = array(
'one' => 1,
'to' => 2,
'too' => 2,