Skip to content

Instantly share code, notes, and snippets.

View dyazincahya's full-sized avatar
🔥
plus ultra

Kang Cahya dyazincahya

🔥
plus ultra
View GitHub Profile
@dyazincahya
dyazincahya / hemisu-light.css
Last active March 7, 2017 15:27
highlight js theme kang-cahya.com
/* Hemisu Dark */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
/* Original theme - http://noahfrederick.com/vim-color-scheme-hemisu/ */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
.hemisu-comment, pre .comment, pre .xml .doctype, pre .html .doctype {
color: #999999;
}
.hemisu-accent1, pre .number, pre .ruby .keyword {
color: #538192;
@dyazincahya
dyazincahya / tomorrow-night-bright.css
Last active March 7, 2017 15:17
highlight js theme kang-cahya.com
/* Tomorrow Night Bright Theme */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */
.tomorrow-comment, pre .comment, pre .title {
color: #969896;
}
.tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo {
color: #d54e53;
}
@dyazincahya
dyazincahya / layout-highlight.css
Last active March 7, 2017 15:28
Layout highlight kang-cahya.com
pre code {
display: block;
font-family: Menlo, Monaco, Consolas, monospace;
line-height: 1.5;
padding-left:10px;
padding-right:10px;
}
@dyazincahya
dyazincahya / unlipage.js
Created March 7, 2017 15:48
unlipage kang-cahya.com
function loophalaman(a){var e="";nomerkiri=parseInt(numshowpage/2),nomerkiri==numshowpage-nomerkiri&&(numshowpage=2*nomerkiri+1),mulai=nomerhal-nomerkiri,mulai<1&&(mulai=1),maksimal=parseInt(a/postperpage)+1,maksimal-1==a/postperpage&&(maksimal-=1),akhir=mulai+numshowpage-1,akhir>maksimal&&(akhir=maksimal),e+="<span class='showpageOf'>Page "+nomerhal+" of "+maksimal+"</span>";var s=parseInt(nomerhal)-1;nomerhal>1&&(e+=2==nomerhal?"page"==jenis?'<span class="showpage"><a href="'+home_page+'">'+upPageWord+"</a></span>":'<span class="showpageNum"><a href="/search/label/'+lblname1+"?&max-results="+postperpage+'">'+upPageWord+"</a></span>":"page"==jenis?'<span class="showpageNum"><a href="#" onclick="redirectpage('+s+');return false">'+upPageWord+"</a></span>":'<span class="showpageNum"><a href="#" onclick="redirectlabel('+s+');return false">'+upPageWord+"</a></span>"),mulai>1&&(e+="page"==jenis?'<span class="showpageNum"><a href="'+home_page+'">1</a></span>':'<span class="showpageNum"><a href="/search/label/'+lbl
@dyazincahya
dyazincahya / Record_activity.php
Last active June 11, 2019 11:40
Library record activity for codeigniter
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|
| Library for record all activity
| K4ng
|
*/
@dyazincahya
dyazincahya / assets_helper.php
Last active April 17, 2017 02:50
Helper codeigniter by k4ng
<?php
function _style($selected = 'BOOTSTRAP_MIN', $get = true)
{
$data = array(
'BOOTSTRAP' => 'assets/sources/bootstrap/3.3.7/css/bootstrap.css?ver=3.3.7',
'BOOTSTRAP_MIN' => 'assets/sources/bootstrap/3.3.7/css/bootstrap.min.css?ver=3.3.7',
'FONT_AWESOME' => 'assets/sources/font-awesome/4.7.0/css/font-awesome.css?ver=4.7.0',
'FONT_AWESOME_MIN' => 'assets/sources/font-awesome/4.7.0/css/font-awesome.min.css?ver=4.7.0',
'MDIF_MIN' => 'assets/admin/css/material-design-iconic-font.min.css?ver=1.0.0',
var services = {
read: site_url('freq_man/freq_man_worksheet/load_grid'),
updateRow: site_url('freq_man/freq_man_worksheet/update_row'),
destroy: site_url('freq_man/freq_man_worksheet/destroy'),
};
/*Added by Satrio*/
/*07-04-2015*/
@dyazincahya
dyazincahya / install_libxl_php5.6.sh
Last active November 1, 2021 20:08
Package command for install libxl in ubuntu 16.04
#!/bin/bash
#
# Modify by k4ng
#
# ilia/php_excel extension example install script
#
# usage:
# > sudo ./install_phpexcel_php5.6.sh
# > (optionally) sudo service php5.6-fpm restart
#
@dyazincahya
dyazincahya / controller_mapping_preview.php
Last active June 6, 2017 01:38
Mapping preview codeingiter_x
<?php
function tmp_freq_preview()
{
$post = $this->input->post();
$data_bef_full = $this->fmm->tmp_freq_preview_bef($post, 'all');
$data_bef = array('before' => $this->fmm->tmp_freq_preview_bef($post, 'all'));
$data = array('after' => $this->fmm->tmp_freq_preview($post));
$merge = array_merge($data_bef, $data);
@dyazincahya
dyazincahya / jsx_array.java
Last active July 11, 2017 04:47
Semua kodingan java per materi kuliah
/**
* Write a description of class jsx_array here.
*
* @author (Cahya Dyazin)
* @version (0.1 13/06/2017)
*/
public class jsx_array
{
public static void main (String args []){