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
| jQuery(document).ready(function($){ | |
| function getTime(){ | |
| var text=""; | |
| var d=new Date(); | |
| var days=['Minggu','Senin','Selasa','Rabu','Kamis','Jum\'at','Sabtu']; | |
| text +=days[d.getDay()]; | |
| var tanggal=d.getDate(); | |
| text +=', '+tanggal; | |
| var bulan=['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli','Agustus', 'September', 'Oktober', 'Nopember', 'Desember']; | |
| text +=' '+bulan[d.getMonth()]; |
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
| <style> | |
| /** | |
| * Demo Styles | |
| */ | |
| html { | |
| height: 100%; /* <-- this is it --> */ | |
| box-sizing: border-box; | |
| } |
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
| @media (min-width: 768px) {} | |
| @media (min-width: 992px) {} | |
| @media (min-width: 1200px) {} | |
| @media screen and (max-width: 767px) {} | |
| @media screen and (min-width: 768px) {} | |
| @media screen and (-webkit-min-device-pixel-ratio: 0) {} | |
| @media (max-device-width: 480px) and (orientation: landscape) {} | |
| @media (max-width: 767px) {} | |
| @media all and (transform-3d), (-webkit-transform-3d) {} | |
| @media (min-width: 768px) and (max-width: 991px) {} |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * Terbilang Helper | |
| * | |
| * @package CodeIgniter | |
| * @subpackage Helpers | |
| * @category Helpers | |
| * @author Gede Lumbung | |
| * @link http://gedelumbung.com |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| if ( ! function_exists('tgl_indo')) | |
| { | |
| function tgl_indo($tgl) | |
| { | |
| $ubah = gmdate($tgl, time()+60*60*8); | |
| $pecah = explode("-",$ubah); | |
| $tanggal = $pecah[2]; | |
| $bulan = bulan($pecah[1]); |
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
| source: http://web.archive.org/web/20090221091226/http://codeigniter.com/forums/viewthread/80958/ | |
| add function to two files | |
| 1st file: /system/database/drivers/mysql/mysql_driver.php and perhaps file mysqli_driver.php too | |
| /** | |
| * ON DUPLICATE UPDATE statement | |
| * | |
| * Generates a platform-specific on duplicate key update string from the supplied data | |
| * |
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
| <link rel="import" href="../cool-clock/cool-clock.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
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 readDB() | |
| { | |
| $tables = $this->db->list_tables(); | |
| foreach($tables as $table){ | |
| $query = $this->db->field_data($table); | |
| echo '<h5>'.$table.'</h5>'; | |
| echo '<ul>'; | |
| foreach ($query as $field) | |
| { | |
| echo '<li>'.$field->name.' - '.$field->type.' '.($field->primary_key ? '- <b>primary</b>':''). '</li>'; |
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_deflate.c> | |
| # force deflate for mangled headers | |
| # developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/ | |
| <IfModule mod_setenvif.c> | |
| <IfModule mod_headers.c> | |
| SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding | |
| RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding | |
| </IfModule> | |
| </IfModule> |