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
<IfModule mod_expires.c> | |
ExpiresActive on | |
# Perhaps better to whitelist expires rules? Perhaps. | |
ExpiresDefault "access plus 1 month" | |
# Data | |
ExpiresByType text/xml "access plus 0 seconds" | |
ExpiresByType application/xml "access plus 0 seconds" | |
ExpiresByType application/json "access plus 0 seconds" |
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 | |
// Referensi : | |
// https://id.wikipedia.org/wiki/Algoritma_Knuth-Morris-Pratt | |
// https://stackoverflow.com/questions/44081348/is-it-possible-to-use-knuth-morris-pratt-algorithm-for-string-matching-on-text-t | |
// http://www.elangsakti.com/2013/03/implementasi-algoritma-string-matching.html | |
// https://stackoverflow.com/questions/29439930/knuth-morris-pratt-string-search-algorithm | |
// https://stackoverflow.com/questions/5873935/how-to-optimize-knuth-morris-pratt-string-matching-algorithm | |
// https://stackoverflow.com/questions/13271856/understanding-knuth-morris-pratt-algorithm | |
// | |
// |
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
echo " | |
zone \"fatkul.com\"{ | |
type master; | |
file \"/var/cache/bind/db.fatkulcom\"; | |
}; | |
zone \"fatkul.edu\"{ | |
type master; | |
file \"/var/cache/bind/db.fatkuledu\"; | |
}; |
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
public function actionLogin() | |
{ | |
if (!Yii::$app->user->isGuest) { | |
return $this->goHome(); | |
} | |
$session = Yii::$app->session; | |
$session->open(); |
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
/** | |
* {@inheritdoc} | |
*/ | |
public static function findIdentity($id) | |
{ | |
return static::findOne($id); | |
} | |
/** |
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
-- phpMyAdmin SQL Dump | |
-- version 4.7.7 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Waktu pembuatan: 20 Jul 2018 pada 16.23 | |
-- Versi server: 10.1.30-MariaDB | |
-- Versi PHP: 7.2.2 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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 | |
class FuzzyTsukamoto | |
{ | |
/* | |
* Object User | |
*/ | |
var $user; | |
// besar pinjaman | |
var $nominalPinjaman; |
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 | |
//API URL | |
$url = 'http://www.contohweb.com/api'; | |
//create a new cURL resource | |
$ch = curl_init($url); | |
//setup request to send json via POST | |
$data = array( |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strings" | |
) | |
func ScanLn(rslt *[]interface{}) { |
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
/* | |
* GLUT Shapes Demo | |
* | |
* Written by Nigel Stewart November 2003 | |
* | |
* This program is test harness for the sphere, cone | |
* and torus shapes in GLUT. | |
* | |
* Spinning wireframe and smooth shaded shapes are | |
* displayed until the ESC or q key is pressed. The |
OlderNewer