Skip to content

Instantly share code, notes, and snippets.

View ngurajeka's full-sized avatar

Ady Rahmat MA ngurajeka

View GitHub Profile
{% for blog in list_blog %}
<h1>{{ blog.title }}</h1>
<small>{{ blog.date }}</small>
<p>{{ blog.content }}</p>
{% endfor %}
@ngurajeka
ngurajeka / blog.php
Last active November 22, 2015 03:50
<?php
include_once __DIR__.'/inc/Twig/lib/Twig/Autoloader.php';
include_once __DIR__.'/inc/db.php';
Twig_Autoloader::register();
$loader = new Twig_Loader_Filesystem(__DIR__ . '/template');
$twig = new Twig_Environment($loader, array());
$data = array(
'judul' => 'Web Sederhana',
'deskripsi' => 'Belajar membuat web sederhana',
<h4 class="title textleft style1 bw-2px dh-4px divider-primary bc-default dw-full color-default" style="margin-bottom:20px">
<span>Ferry KMP Tao Toba I &amp; II. Route: TOMOK - AJIBATA</span>
</h4>
<table>
<tbody>
<tr>
<td rowspan="5"><strong>Tomok Dock</strong></td>
<td>07.00 - 08.00</td>
</tr>
<tr>
<?php
class CrudController extends ControllerBase {
public function indexAction() {
}
public function createAction() {
// we assume every post are there
{
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"draw_white_space": "all",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@ngurajeka
ngurajeka / Preferences.sublime-settings
Created August 2, 2016 04:07
Current Sublime Settings
{
"auto_complete": false,
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow-monokai.tmTheme",
"draw_white_space": "all",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
<?php
function setupValidation()
{
$fields = array();
$fields[] = array(
"type" => "presenceOf",
"field" => "username"
);
$fields[] = array(
"type" => "presenceOf",
{
"auto_complete": true,
"color_inactive_tabs": true,
"color_scheme": "Packages/Zeus/Sublime Text/Zeus-Sublime-Text.tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
[{
label: "Email",
key: "evpaEmail",
type: "email",
},{
label: "Name",
key: "evpaName",
type: "text",
}]
" Automatic reloading of .vimrc
autocmd! bufwritepost ~/.vimrc source %
" Show whitespace
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
au InsertLeave * match ExtraWhitespace /\s\+$/
filetype off
filetype plugin indent on
syntax on