Skip to content

Instantly share code, notes, and snippets.

View christianesperar's full-sized avatar
💼
Grab the opportunities!

Christian Esperar christianesperar

💼
Grab the opportunities!
View GitHub Profile
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Name=SmartGit/Hg
Exec=env SMARTGIT_JAVA_HOME=/opt/apps/jre7/ /opt/smartgithg/bin/smartgithg.sh
Icon=/opt/smartgithg/bin/smartgithg-64.png
@christianesperar
christianesperar / Laravel 4 Active Class Navigational Menu
Last active January 1, 2016 20:19 — forked from mikekoro/Laravel 4 Active Class Navigational Menu
Add HTML::decode in case developer want to have HTML tags on text. Ex: Bootstrap Icon
<?php
HTML::macro('clever_link', function($route, $text) {
if( Request::path() == $route ) {
$active = "class = 'active'";
}
else {
$active = '';
}
return HTML::decode('<li ' . $active . '>' . link_to($route, $text) . '</li>');