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
| /** | |
| * SyntaxHighlighter LaTeX Brush by DiGMi | |
| * http://digmi.org | |
| * | |
| * Used for SyntaxHighlighter which can be found at: | |
| * http://alexgorbatchev.com/SyntaxHighlighter | |
| * | |
| * @version | |
| * 1.0.0 (July 21 2012) | |
| * |
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
| # Back-Propagation Neural Networks | |
| # | |
| # Written in Python. See http://www.python.org/ | |
| # Placed in the public domain. | |
| # Neil Schemenauer <nas@arctrix.com> | |
| import math | |
| import random | |
| import string |
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 | |
| /* | |
| Asumsikan database: | |
| | Judul Berita | Kutipan berita | Gambar | | |
| */ | |
| $data = [ | |
| [ | |
| 'jb' => 'Workshop Pengenalan Drupal', |
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
| events { | |
| worker_connections 1024; ## Default: 1024 | |
| } | |
| http { | |
| server { | |
| listen 8080; | |
| server_name localhost; | |
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/sh | |
| # | |
| # chkconfig: 345 99 01 | |
| # | |
| # description: shoutcast server startup script | |
| # | |
| # Init script for SHOUTcast | |
| # by caraoge, modified to work correctly by Thomas R Bailey, modified further for | |
| # use with three servers by Nathan Skelton | |
| # |
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 | |
| require 'Slim/Slim.php'; | |
| \Slim\Slim::registerAutoloader(); | |
| $app = new \Slim\Slim(); | |
| // route | |
| $app->get("/blog/post", function() use($app) { | |
| // tampilkan semua post | |
| $sql = "select * from post"; |
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/php | |
| <?php | |
| /* | |
| $Id: phpa-norl.php 2010/06/16 $ | |
| Stefan Fischerländer <stefan@fischerlaender.de>, http://www.fischerlaender.net/php/phpa-norl | |
| original version: David Phillips <david@acz.org>, http://david.acz.org/phpa/ | |
| 2010/07/16 - register_shutdown_function |
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 | |
| /******************************************************************************* | |
| * Redis PHP Bindings - http://code.google.com/p/redis/ | |
| * | |
| * Copyright 2009 Ludovico Magnocavallo | |
| * Released under the same license as Redis. | |
| * | |
| * Version: 0.1 | |
| * | |
| * $Revision: 139 $ |
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 | |
| /* | |
| * PHP + Redis dgn rediska | |
| * Kode POC ini di ciplak dari: http://rediska.geometria-lab.ru/documentation/get-started/ | |
| * Rediska: http://rediska.geometria-lab.ru/ | |
| * | |
| */ | |
| // Opsi konfigurasi rediska, alamat ip redis server dan port yg digunakan. (lihat redis.conf) |
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 | |
| /** | |
| * Sumber: http://id2.php.net/manual/en/sqlite3.open.php | |
| * Sesuaikan file database sqlite3 (dlm contoh: sqlite/data) | |
| */ | |
| class MyDB extends SQLite3 | |
| { | |
| function __construct() | |
| { | |
| $this->open('sqlite/data'); |