Skip to content

Instantly share code, notes, and snippets.

View sakukode's full-sized avatar

Rizqi Maulana sakukode

View GitHub Profile
@sakukode
sakukode / sublimetext.md
Created March 10, 2017 00:37
LICENSE Sublime Text 3 Build 312(*)
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
mysql -u username -p database_name < file_name.sql
<!DOCTYPE html>
<html>
<head>
<title>Demo Memasang Disqus Pada Halaman Web</title>
<style type="text/css">
.container {
padding: 10px;
}
</style>
</head>
<!DOCTYPE html>
<html>
<head>
<title>Validation Form using Jquery Validate</title>
<style type="text/css">
body {
margin-top: 50px;
margin-left: 30px;
}
</style>
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Welcome extends CI_Controller
{
/*
* Method untuk meload view form
*/
public function index()
{
<!DOCTYPE html>
<html>
<head>
<title>Demo Codeigniter Pagination with Bootstrap CSS Style</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style type="text/css">
body {
margin-top: 50px;
}
</style>
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Welcome extends CI_Controller
{
public function index($page = 1)
{
//load model
$this->load->model('people_model');
<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class People_model extends CI_Model
{
protected $table = 'peoples'; // you MUST mention the table name
protected $primary_key = 'id'; // you MUST mention the primary key
public function get_all($limit, $page)
$autoload['libraries'] = array('database');
<?php
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'demo-tutorial',