Skip to content

Instantly share code, notes, and snippets.

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

Rodrigo Barona rodrigobarona

🏠
Working from home
View GitHub Profile
@rodrigobarona
rodrigobarona / list-of-countries.txt
Created March 7, 2024 20:39 — forked from dariusz-wozniak/list-of-countries.txt
List of countries TXT (plain text) - including countries with limited recognition
Abkhazia
Afghanistan
Åland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
@rodrigobarona
rodrigobarona / text-hightlight.html
Created February 12, 2020 11:13
Text Highlight - Bill And Melisa Foundation
<p>As always, Warren Buffett—a dear friend and longtime source of great advice—put it a little more colorfully. When he donated the bulk of his fortune to our foundation and joined us as a partner in its work, he urged us to “<span class="TGNil_highlight" mycolor="#f9fb4f" style="border-bottom: 2px solid rgb(249, 251, 79);box-shadow: rgb(249, 251, 79) 0px -23px 0px inset;color: inherit;transition: background 0.15s cubic-bezier(0.33, 0.66, 0.66, 1) 0s;">swing for the fences</span>.”</p>
@rodrigobarona
rodrigobarona / bulma_walker_nav_menu.php
Created May 11, 2019 00:50 — forked from moabi/bulma_walker_nav_menu.php
A wordpress walker for Bulma Nav component
<?php
/**
* Will add classes to create bulma menu in wordpress
* http://bulma.io/documentation/components/nav/
* Usage
* wp_nav_menu(array(
* 'theme_location' => 'primary',
* 'items_wrap' => '%3$s',
* 'container_class' => 'nav-right nav-menu',
* 'walker' => new bulma_walker_nav_menu
@rodrigobarona
rodrigobarona / amc.sh
Last active October 1, 2015 21:31
Filebot AMC for Plex / XBMC / Kodi
#!/bin/bash
/usr/local/bin/filebot -script fn:amc --output "/Volumes/MediaCenter/" --log-file "/Volumes/MediaCenter/amc.log" --def subtitles=es --action move --conflict override -non-strict --def music=y artwork=y "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@rodrigobarona
rodrigobarona / main-25anos-video.js
Created March 9, 2015 16:11
Publico 25 Anos - Load YouTube Videos
// Set some vars
var onYouTubeIframeAPIReady;
var videoList = ['r_FgH-8i-Oo', 'Z7RrDbjeLso', 'qhWINlncAzg', 'G53J4BSaiYI', '84D3zS4ZPFo', 'Dg9NkjBtk8Y', 'ANEO4JGul6E', 'HPaj4-PW4ks', 'ao-KFMD-kZg', 'QbORd1LhQvw', 'kRGWITsjrdg', '9NsAhKp4dh4', 'jieTu3ISZlE', 'pTZ4Vw0MY8o', 'D1FaHRPxwH8', '0RvSl5meXD4', '1EyH8SXKbGQ', 'UsHRmr_QkOw', 'McHsqE8-Kz4', 'Rt76h45keJU', 'UEz53zlIxns', 'pNmcZmequ1c', 'zWBUSTsMtlk', 'N6OXG9335_I'];
var $ytcontainer;
var player;
var idle_time2 = 0, idle_limit2 = 5, idle_interval2;
// Define some functions
var isMobile = {
Android: function() {
#!/bin/bash
if [ $1 ] && [ $1 == '-h' ]
then
echo ""
echo "Welcome to Filebot AMC (Automated Media Center) Script."
echo ""
echo "Usage: filebot-amc.sh [torrent_name] [/path/to/torrent] [/path/to/media] [/path/to/log]"
echo ""
echo "NOTES: "
@rodrigobarona
rodrigobarona / gist:cd92c0bfc01d1db26a98
Created November 23, 2014 23:13
Zurb Ink - 650px template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" href="zurb-ink-650.css"> <!-- For testing only -->
</head>
<body>
<table class="body">
<tr>
/**********************************************
* Ink v1.0.5 - Copyright 2013 ZURB Inc *
**********************************************/
/* Client-specific Styles & Reset */
#outlook a {
padding: 0;
}
@rodrigobarona
rodrigobarona / gist:9242874
Last active August 29, 2015 13:56
Tracking Google Analytics on a 1 page website using hashtags
Generically, your code could look like this:
_gaq.push(['_trackPageview',location.pathname + location.search + location.hash]);
You could either bind that code to every time you have a hash change within your application,
or you could use a generic hashchange plugin (http://benalman.com/projects/jquery-hashchange-plugin/), that uses the HTML5 onhashchange, and some
backwards compatible hacks for older browsers, and bind this code to that event, so that it
fires every time your hash changes.
Using that plugin, your code could look like: