Skip to content

Instantly share code, notes, and snippets.

View fjaguero's full-sized avatar
🏠
Working from home

Fernando Agüero fjaguero

🏠
Working from home
View GitHub Profile
@fjaguero
fjaguero / keybase.md
Created April 28, 2014 19:32
keybase.md

Keybase proof

I hereby claim:

  • I am fjaguero on github.
  • I am fjaguero (https://keybase.io/fjaguero) on keybase.
  • I have a public key whose fingerprint is 4785 E9DB 5FB3 358C 81DA 0ABE 7A0B C107 AFF3 F7C5

To claim this, I am signing this object:

@fjaguero
fjaguero / console-log.js
Created May 30, 2014 08:42
Console.log improvement
console.clear();
var old = console.log;
console.log = function() {
var args = [].slice.apply(arguments).concat([(new Error()).stack.split(/\n/)[2].trim()]);
return old.apply(this, args);
};
function test(t) {
@fjaguero
fjaguero / SassMeister-input.sass
Created July 22, 2014 14:14
Generated by SassMeister.com.
// ----
// Sass (v3.4.0.rc.1)
// Compass (v1.0.0.alpha.20)
// ----
// Mixin Breakpoints
@mixin breakpoint($class)
@if $class == mobile
@media (max-width: 767px)
@content
@fjaguero
fjaguero / .jshintc
Created April 5, 2015 17:27
Meteor .jshintrc
//.jshintrc
{
// JSHint Meteor Configuration File
// Match the Meteor Style Guide
//
// By @raix with contributions from @aldeed and @awatson1978
// Source https://github.com/raix/Meteor-jshintrc
//
// See http://jshint.com/docs/ for more details
@fjaguero
fjaguero / Lightbox for Galleria.io
Created July 26, 2012 15:07
Extend Galleria using Lightbox when clicking the main image -for Desktops-
// Remember to load jQuery & Galleria.Js
<script>
// Load the classic theme
Galleria.loadTheme('galleria.classic.js');
// Initialize Galleria
Galleria.run('#galleria', {
@fjaguero
fjaguero / wordpress-next-prev-nav.php
Created September 20, 2012 10:40
Wordpress: Previos-Next Post Navigation
<div class="navigation">
<div class="alignleft">
<?php previous_post_link($format='%link', $link='< Anterior', $in_same_cat = true) ?>
</div>
<div class="alignright">
<?php next_post_link($format='%link', $link='Siguiente >', $in_same_cat = true) ?>
</div>
@fjaguero
fjaguero / gist:3810097
Created October 1, 2012 07:29
Wordpress the_time dd/mm/yy function format
<span class="post-date"><?php the_time(__('d/m/Y')) ?></span>
@fjaguero
fjaguero / wp-menu-custom-title-category.php
Created October 17, 2012 12:33
PHP: Show the title of a menu element depending the current category
/* ----------------------------- FUNCTIONS.PHP --------------------------*/
/* @Workether ------------------------------------------------------------
Get Category ID by his name.
--------------------------------------------------------------------------*/
function get_category_id($cat_name){
$term = get_term_by('name', $cat_name, 'category');
return $term->term_id;
}
@fjaguero
fjaguero / font-face.css
Created October 19, 2012 10:34
CSS: @font-face standard css
@font-face {
font-family: 'ModernNo.20Regular';
src: url('../fonts/mod20-webfont.eot');
src: url('../fonts/mod20-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/mod20-webfont.woff') format('woff'),
url('../fonts/mod20-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@fjaguero
fjaguero / php-facebook-wordpressLoop.php
Created October 19, 2012 16:22
PHP: Facebook like for Wordpress Loop
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=224015364350232";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>