Skip to content

Instantly share code, notes, and snippets.

View achunk17's full-sized avatar

Achunk JealousMan achunk17

View GitHub Profile
@achunk17
achunk17 / provinsi-kota-kecamatan-kelurahan.json
Last active May 22, 2019 06:56
Daftar Provinsi > Kota/Kab > Kecamatan > Kelurahan/Desa, sumber pemilu2019.kpu.go.id
This file has been truncated, but you can view the full file.
{
"ACEH": {
"ACEH BARAT": {
"ARONGAN LAMBALEK": [
"ALUE BAGOK",
"ALUE BATEE",
"ALUE SUNDAK",
"ARONGAN",
"COT BULOH",
"COT JURUMUDI",
// Lightweight `auto read-more` hack for Blogger using `Textarea` by Taufik Nurrohman modif by MKR
// URL: https://plus.google.com/108949996304093815163/about
function createPostSummary(s,r,m,k){var u,t=document,n=configSummary,i=t.getElementById(s).value,c=t.getElementById(r),g=m,p=k;c.innerHTML=i;var j=c.getElementsByTagName("img");var h=c.getElementsByTagName("iframe");if(j.length===0&&h.length===0){var q=n.BackupImage}else{if(j.length===0&&h.length>0){var l=h[0].src;var o=l.match(/(\?v=|\&v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/);var q="http://img.youtube.com/vi/"+o[2]+"/0.jpg"}else{var q=j[0].src.replace(/\/s[0-9]+(\-c)?\//,"/s"+n.thumbnailSize+"-c/")}}u=i.replace(/<(.*?)>/g,"").replace(/[\n\r]+/g," ");c.innerHTML='<a class="thumbimgx" title="'+g+'" href="'+p+'"><img class="post-thumbnail" src="'+q+'" alt="thumbnail" width="'+n.thumbnailSize+'" height="'+n.thumbnailSize+'"></a><strong><a class="titlex" href="'+p+'">'+g+"</a></strong><p>"+u.substring(0,n.summaryLength)+"&hellip;</p>"};
// J
@achunk17
achunk17 / ProvinsiKota.php
Last active July 21, 2023 14:59
Daftar Provinsi dan kota / kab. di Indonesia
<?php
/**
* @Nama : Daftar Provinsi di Indonesia beserta Kota/Kab.
* @Pembuat : Achunk JealousMan
* @Link : http://fb.me/achunks
* @Dibuat : 04 Juni 2014
* @Sumber : http://id.wikipedia.org
*/
@achunk17
achunk17 / CountryListWithStates.php
Created January 6, 2016 17:32
Array country list with states
<?php
/**
* PHP Country Lists With States
* Created by Achunk JealousMan (http://fb.com/achunks)
* Source data from http://www.hscripts.com/scripts/JavaScript/country-list.php
* Created on July 31, 2014
* Total Countries 177, We are sorry if there is one in the writer's name or a list of provinces in a country
* Licensi under Creative Commons http://creativecommons.org/licenses/by/4.0/
*/
<?php
// defined('BASEPATH') or exit('No direct script access allowed');
return array(
'3dml' => 'text/vnd.in3d.3dml',
'3ds' => 'image/x-3ds',
'3g2' => 'video/3gpp2',
'3gp' => array('video/3gp', 'video/3gpp'),
'7z' => 'application/x-7z-compressed',