Skip to content

Instantly share code, notes, and snippets.

View cikal's full-sized avatar
🎯
Focusing

iancikal cikal

🎯
Focusing
View GitHub Profile
@cikal
cikal / database.php
Created April 25, 2020 05:57
CodeIgniter 3 Microsoft Access
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
|
| ... TLDR; CI Docs Banner ...
*/
$active_group = 'default';
@cikal
cikal / populate_form.html
Created October 3, 2019 21:23
Populate Form by dropdown value
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Populate Form</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
@cikal
cikal / myJSdri.js
Created April 29, 2019 23:04
JS dpr ri
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'
setTimeout(function() {
let csvContent = "data:text/csv;charset=utf-8,";
var tabel = [];
$('tbody tr').each(function() {
var tr = [];
tr.push($(this).find('td > span:nth-child(1)').eq(0).text().trim())
tr.push($(this).find('td > span:nth-child(2)').eq(0).text().trim().replace('(','').replace(/\,/g, '.').replace(')',''))
for(let i = 1; i <= 16; i++) {
tr.push($(this).find('td').eq(i).text().trim().replace(/\./g, ''))
@cikal
cikal / untuk-bachtiar.min.js
Last active September 13, 2018 08:34
greeting for ari bachtiar
var _0x279f=['w4VUwph4wpo=','w6kRwqDDoEg/Qg==','MhJOwoQ=','RMOrZzXCucKmwokxA8OZw4Y=','wpVgwqbCng==','Q8KFwqNEVxJv','VMKeT2fCultkwqYlwr8/IsOww5A2wojCh8K0XBrCsULDlisOwoPCpj4cwq7CjcKlwrHDk8OLw512fVnDun7Dph7Dj8KuQV4Vwq7CjMO0w4khwojDl3jDqzHCucKPw7cUJEjCssOiOG92e8OsP8OZw47DksKB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heWVkIHRvIEFsbGFoLiBeMjAwMCBNYXkgeW91IGFsd2F5cyBiZSBibGVzc2VkIGJ5IEFsbGFoLCBeMTAwMCBnaXZlbiB0aGUgcGxlYXN1cmUgb2YgYSBsb25nIGFnZSwgXjEwMDAgaGVhbHRoeSBsaWZlLCBeMTAwMCBhbmQgbWFkZSBlYXN5IHRoZSB3YXkgdG8gcHVyc3VlIHlvdXIgZHJlYW1zLiBeMTAwMCBBYW1paW4uLjwvZW0+PGJyPjxicj4gXjUwMDxlbT5UYWtlIGNhcmUgb2YgbW9tLCBeMjAwMCBzbyBzYWRseSB3ZSAoYm90aCB5b3VyIG9sZCBicm90aGVycykgY2FuJ3QgZG8gaXQgZm9yIG5vdy4gXjEwMDAgQmUgYSBicmlnaHQgc3RhciBpbiBvdXIgZmFtaWx5LCBiZWNhdXNlIHdlIGJlbGlldmUgeW91IGNhbiBtYWtlIGl0IGhhcHBlbi48L2VtPjwvcD4gXjIwMDA8Zm9vdGVyPjxlbT5EYXJpIDogQWFrIGRhbiBUZXRlaCwgdGVyYmFpayB5YW5nIHBlcm5haCBhZGEuLjwvZW0+PC9mb290ZXI+','I21l','LmNvbnRhaW5lcg==','ZmFkZUlu','Z2V0RWxlbWVudEJ5SWQ='];(function(_0xf75ef3,_0x36ca83){var _0x3bf933=function(_0x27c9b0){while(--_0x27c9b0){_0x
@cikal
cikal / blank.html
Last active June 20, 2018 01:02
e-Project
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>e-Project | Integrated LMS in AIS</title>
<meta name="description" content="E-learning terintegrasi Sistem Informasi Akademik">
<meta content='id' name='language'/>
<meta content='id' name='geo.country'/>
@cikal
cikal / Auth.php
Created May 11, 2017 04:22
Login session sederhana CodeIgniter3
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Auth extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('model_login');
}
@cikal
cikal / Coba.php
Created May 5, 2017 02:30
for : Muhammad Abu Bakar As'sidiq (Group CI - Indo)
<?php
/* ------------------------------------------------------------------------
* File Controller
*/ ------------------------------------------------------------------------
defined('BASEPATH') OR exit('No direct script access allowed');
class Coba extends CI_Controller {
public function __construct()
{
@cikal
cikal / .htaccess
Created April 27, 2017 10:13
Rewrite (example.com) to (www.example.com)
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
@cikal
cikal / Demo.php
Created March 19, 2017 05:40
CodeIgniter & ComboGrid ( jQuery EasyUI )
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Demo extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('model_demo');
}