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
@christianesperar
christianesperar / genesis_public_key
Last active February 23, 2018 17:52
genesis_public_key
04e5def6d96d1e70789dac8d786d56b4d77cca986282047684bf52669738f668c59b7f9802a5ee2eae5ed4b2bb8795eb4fee0016e25a5d20e9b790c2fb34031337
@christianesperar
christianesperar / linkedin-bulk-invite
Created October 18, 2014 10:33
LinkedIn Bulk Invite
var button = $('.send-invite');
$(button).each(function() {
window.open($(this).attr("data-href"), '_blank');
});
#!/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 / Ruby Factorial Method
Created March 2, 2014 14:41
Ruby Factorial Method
class Integer
def factorial
result = 0
self.downto(1) { |number| result == 0 ? result = number : result *= number }
return result
end
end
@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>');