Skip to content

Instantly share code, notes, and snippets.

View aghust's full-sized avatar

Aghust Kurniawan aghust

View GitHub Profile
@aghust
aghust / index.php
Created September 24, 2013 08:28
KPU Joomla Templates
<?php
defined('_JEXEC') or die;
jimport('joomla.filesystem.file');
// check modules
$showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
@aghust
aghust / example.js
Created September 24, 2013 08:25
Welcome to your first Gist! Gists are simple code reminders. Whenever you come across a piece of code you think might be useful later on, save it as a Gist. With GistBox, you can also tag the Gist with a label. This is especially useful for keeping them organized by language, project or purpose. For more info about GistBox, visit: http://www.gi…
// log an object to the browser console
console.log({ text: "foobar" });