Skip to content

Instantly share code, notes, and snippets.

😅
Again "nganu"

Cahya Dyazin dyazincahya

😅
Again "nganu"
Block or report user

Report or block dyazincahya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dyazincahya
dyazincahya / tomorrow-night-bright.css
Last active Mar 7, 2017
highlight js theme kang-cahya.com
View tomorrow-night-bright.css
/* 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 / hemisu-light.css
Last active Mar 7, 2017
highlight js theme kang-cahya.com
View hemisu-light.css
/* 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 / layout-highlight.css
Last active Mar 7, 2017
Layout highlight kang-cahya.com
View layout-highlight.css
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 Mar 7, 2017
unlipage kang-cahya.com
View unlipage.js
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 / assets_helper.php
Last active Apr 17, 2017
Helper codeigniter by k4ng
View assets_helper.php
<?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',
View freq_man_worksheet.js
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 May 22, 2017
Package command for install libxl in ubuntu 16.04
View install_libxl_php5.6.sh
#!/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 Jun 6, 2017
Mapping preview codeingiter_x
View controller_mapping_preview.php
<?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 Jul 11, 2017
Semua kodingan java per materi kuliah
View jsx_array.java
/**
* 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 []){
View nativescript-upload-pic-to-php.js
var enumsModule = require("ui/enums");
var cameraModule = require("camera");
var fs = require('file-system');
var bghttp = require("nativescript-background-http");
exports.takephoto = function(args) {
cameraModule.takePicture({width: 800, height: 800, keepAspectRatio: true}).then(function(picture) {
var savepath = fs.knownFolders.currentApp().path + "/saved_images";
var filename = 'img_' + new Date().getTime() + '.jpg';
var filepath = fs.path.join(savepath, filename);
You can’t perform that action at this time.