This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Dalam Bab I yang berisi ketentuan umum, | |
pada angka 15 disebutkan, | |
"Parkir adalah keadaan Kendaraan berhenti atau tidak bergerak untuk beberapa saat dan ditinggalkan pengemudinya." | |
Adapun pada angka 16 disebutkan, | |
"Berhenti adalah keadaan Kendaraan tidak bergerak untuk sementara dan tidak ditinggalkan pengemudinya." | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# CARA INSTALL | |
# salin source dan simpan dalam berkas alternamed.sh | |
# pindahkan alternamed.sh ke /usr/local/bin/alternamed.sh | |
# beri akses executable: sudo chmod a+x /usr/local/bin/alternamed.sh | |
# Author: Wuri Nugrahadi <[email protected]> | |
[[ $# -lt 3 ]] && | |
echo -e "Penggunaan: $(basename $0) block|release filename named.conf comment\nContoh:" && |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# dbbackup.sh | |
# Descr: Dump MySQL database data into separate compressed SQL files. | |
# Usage: Run without args for usage info. | |
# Author: @Wuri Nugrahadi | |
# Ref: http://unix.stackexchange.com/questions/123189/cronjob-for-automatic-db-backup-to-date-prefixed-file | |
# Ref: http://stackoverflow.com/q/3669121/138325 | |
# Notes: | |
# * Output files are compressed and saved in the current working dir, unless |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
from sys import argv | |
from os.path import exists | |
from os import makedirs | |
from os import symlink | |
from os import system | |
import getopt | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
.panel { | |
border: 1px solid #000; | |
padding: 10px; | |
margin: 10px; | |
} | |
@media print { | |
.screen { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The Damm check digit | |
* For more information cf. http://en.wikipedia.org/wiki/Damm_algorithm | |
* totally anti-symmetric quasigroup | |
* | |
* @author Wuri Nugrahadi <[email protected]> | |
*/ | |
if (! function_exists('taq')) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AttachmentCtrl($scope, $location, $timeout, Docs) { | |
$(function() { | |
$('#detail-form-doc').fileupload({ | |
dataType: 'json', | |
url: '/angular-ib/app/fileupload?id=' + $location.search().id, | |
add: function(e, data) { | |
$scope.$apply(function(scope) { | |
// Turn the FileList object into an Array | |
for (var i = 0; i < data.files.length; i++) { | |
$scope.project.files.push(data.files[i]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$str = 'laki-laki harus berani'; | |
$str = preg_replace('~([^\s\-]+)[\s\-]\1~', '\1', $str); | |
echo $str; |