Skip to content

Instantly share code, notes, and snippets.

@igun997
igun997 / keybase.md
Created August 30, 2021 03:24
keybase.md

Keybase proof

I hereby claim:

  • I am igun997 on github.
  • I am igun997 (https://keybase.io/igun997) on keybase.
  • I have a public key ASCn3OwvkWPphZdKfVZVWpLruzclqUzkEwqybeK8rvvuSQo

To claim this, I am signing this object:

@igun997
igun997 / index.html
Created August 29, 2021 02:25
Raport Template
<html>
<body>
<h2
align="left"
>
<img
src="https://via.placeholder.com/52x52?text=LOGO"
alt=""
@igun997
igun997 / maps.html
Created November 28, 2020 16:17
maps
<html>
<body>
<div id="map" style="width:auto;height:500px">
<p>test</p>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?key=AIzaSyD1cM44pjtWnEej7CgCeCVtYx5D70ImTdQ"></script>
<script src="./gmaps.js"></script>
<script>
map = new GMaps({
@igun997
igun997 / check.php
Created November 25, 2020 11:45
Checker BPOM
<?php
$bpom = "NA1820010782-6";
$target = "https://cekbpom.pom.go.id/";
$session = "";
$header = array('Accept-Language: en');
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $target);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
@igun997
igun997 / composer.json
Created January 21, 2020 15:59
Boilerplate Package
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
@igun997
igun997 / uint8_converter
Last active August 25, 2019 12:23 — forked from borismus/gist:1032746
Convert a base64 string into a binary Uint8 Array
var BASE64_MARKER = ';base64,';
function convertDataURIToBinary(dataURI) {
var base64Index = dataURI.indexOf(BASE64_MARKER) + BASE64_MARKER.length;
var base64 = dataURI.substring(base64Index);
var raw = window.atob(base64);
var rawLength = raw.length;
var array = new Uint8Array(new ArrayBuffer(rawLength));
for(i = 0; i < rawLength; i++) {
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* @author Indra Gunanda
*/
class Absensi extends CI_Controller{
/**
* Konstruktor
*
* @return void
@igun997
igun997 / PegawaiControl.php
Created July 11, 2019 04:48
PegawaiControl.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Divisi;
use App\Models\Gol;
use App\Models\Pegawai;
use App\Models\Mutasi;
use App\Models\Pensiun;
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Sirkulasi extends CI_Controller{
public $dpost;
public function __construct()
{
parent::__construct();
$this->dpost = $this->input->post(null,true);
@igun997
igun997 / sql
Created May 18, 2019 11:20
BE_SQL #2
-- Write only the SQL statement that solves the problem and nothing else.
SELECT name FROM employees WHERE managerId IS NOT NULL