Skip to content

Instantly share code, notes, and snippets.

View defrindr's full-sized avatar
👋
Hi there

Defri Indra Mahardika defrindr

👋
Hi there
View GitHub Profile
{
"success": true,
"message": "OK",
"data": {
"header": [
{
"id": 0,
"title": "Gainesville",
"image": "https://loremflickr.com/640/480?random=0",
"actions": {
-- CREATE SEQUENCE hdept_seq START WITH 1;
-- /
-- CREATE TABLE HISTORY_DEPARTMENTS (
-- HISTORY_ID number DEFAULT hdept_seq.nextval NOT NULL,
-- DEPARTMENT_ID number,
-- DEPARTMENT_NAME varchar2(100) not null,
-- constraint pk_hdepartments primary key (HISTORY_ID)
-- );
-- CREATE SEQUENCE dept_seq START WITH 1;
@defrindr
defrindr / extractor.php
Last active August 12, 2023 03:01
Generate Class Diagram Automatically (CODE IGNITER 3)
<?php
class extractor extends CI_Controller
{
private $workflow = false;
private $exception_ucwords = ["oa_helper"];
private $sanitized = ["'", '"', ",", " ", ";", "(", ")"];
public function getRealpath($type, $name)
{
@defrindr
defrindr / step_to_reproduce.txt
Last active August 25, 2022 10:57
Step to Reproduce
1. import file (insert) tambahan.sql
2. tambahkan menu :
- cashflow : dengan controller menuju ke "cashflow"
- cashflow (Fungsi) : dengan controller menuju ke "cashflow-fungsi"
3. atur rbac:
- centang menu cashflow & seluruh aksi nya
- centang seluruh aksi di cashflow (Fungsi)
https://stackoverflow.com/questions/63627619/how-to-setup-oracle-instant-client-with-xampp-in-macos-mojave
<?php
namespace app\helpers;
use Yii;
use yii\base\Event;
/**
* ErrorResponseHelper
*
@defrindr
defrindr / Image.php
Created March 22, 2022 04:15
YII2 Faker image problem vendor/fakerphp/faker/src/Faker/Provider/
<?php
namespace Faker\Provider;
/**
* Depends on image generation from http://lorempixel.com/
*/
class Image extends Base
{
protected static $categories = array(
import java.util.Scanner;
public class Kalkulator {
public static void main(String args[]){
double result = 0;
Scanner scan = new Scanner(System.in);
int bil1;
char op, conf;
System.out.print("Masukkan bilangan ke-1: ");
bil1 = scan.nextInt();
This file has been truncated, but you can view the full file.
-- Adminer 4.7.7 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `wilayah_desa`;
CREATE TABLE `wilayah_desa` (
`id` char(10) COLLATE utf8_unicode_ci NOT NULL,
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#define MAX 100
#define SORT_ASC 1