This file contains 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 | |
public function requestverify() | |
{ | |
$this->load->library('form_validation'); | |
$this->form_validation->set_error_delimiters('<div class="text-danger" style="text-align: left;">', '</div>'); | |
$this->form_validation->set_rules('username', 'Username', 'required|callback_username_check'); | |
$this->form_validation->set_rules('spacename', 'Space Name', 'required|callback_spacename_check'); |
This file contains 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 tiket() | |
{ | |
$this->load->helper('url'); | |
$this->load->model('m_customer'); | |
$query = $this->input->get('query'); | |
$data = array( | |
'customer' => array() | |
); |
This file contains 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
/* Define the "system" font family */ | |
@font-face { | |
font-family: system; | |
font-style: normal; | |
font-weight: 300; | |
src: local(".SFNSText-Light"), local(".HelveticaNeueDeskInterface-Light"), local(".LucidaGrandeUI"), local("Ubuntu Light"), local("Segoe UI Light"), local("Roboto-Light"), local("DroidSans"), local("Tahoma"); | |
} | |
/* Now, let's apply it on an element */ | |
body { |
This file contains 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 | |
// Do what you want | |
print_r($_POST); |
This file contains 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
/* | |
Gulpfile.js file for the tutorial: | |
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN | |
http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev | |
Steps: | |
1. Install gulp globally: | |
npm install --global gulp |
This file contains 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
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
This file contains 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 Kabupaten_Model extends CI_Model{ | |
public function __construct(){ | |
parent:: __construct(); | |
} | |
// Pagination biasa | |
public function countAll(){ | |
return $this->db->count_all('kabupaten'); |
This file contains 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
minification of files | |
zipping css / js files | |
pulling all css files into one | |
pulling all js files into one | |
creating image sprites that combined many images into one big sprite | |
avoid using IE specific css expressions | |
using a cdn to serve files | |
loading js at bottom of page | |
serving files from a different domain | |
serving files asynchronously after page has loaded |
This file contains 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
minification of files | |
zipping css / js files | |
pulling all css files into one | |
pulling all js files into one | |
creating image sprites that combined many images into one big sprite | |
avoid using IE specific css expressions | |
using a cdn to serve files | |
loading js at bottom of page | |
serving files from a different domain | |
serving files asynchronously after page has loaded |
This file contains 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
Auth | |
-simple (Access Control List) | |
-advanced (Role Based Access Control) | |
-hand made Authentication | |
Caching | |
-DB Caching | |
-File Caching | |
-Mem Caching | |
-Image Caching |
NewerOlder