Skip to content

Instantly share code, notes, and snippets.

<script type="application/javascript">
window.consentManagerConfig = function (exports) {
exports.preferences.onPreferencesSaved(function (prefs) {
// could be used to store consent server side, or send it into an API
})
return {
container: '#consent-manager',
writeKey: 'VHWyTMQuPx5KYcdVotFH8PK6PEr8jHen',
/* initialPreferences allows for customizing which categories already pre-loaded */
@baires
baires / correo.sh
Last active May 4, 2022 19:40
Simple alias to get correo argentino track status with curl
function correo () {
curl -s -D "/dev/stderr" https://api.correoargentino.com.ar/backendappcorreo/api/api/shipping-tracking-int-nac\?id_shipping\=$1 | jq
}
# Use: correo RV118...
@baires
baires / data.json
Last active June 14, 2018 22:35
nterrupción voluntaria del embarazo. Régimen. Dictamen de Mayoría. Expediente 230-D-2018 y otros. Orden del Día 155. Scrap from https://votaciones.hcdn.gob.ar/votacion/3805
[
{
"id": "A4759",
"image": "https://votaciones.hcdn.gob.ar/public/diputados/images/A4759.jpg",
"name": "ABDALA DE MATARAZZO, Norma Amanda",
"block": "Frente Cívico por Santiago",
"province": "Santiago del Estero",
"vote": "NEGATIVO"
},
@baires
baires / SassMeister-input.sass
Created February 15, 2016 20:21
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$random: random(10000000)
@font-face
font-family: 'murally'
src: url("murally-webfont.eot?v=#{$random}")
Page
<% content_for :assets do %>
<%= stylesheet_link_tag 'index', 'custom' %>
<% end %>
Layout
<head>
<title>Example</title>
/*!
Author: <%= data.config.source.author.name %>
Author URI: <%= data.config.source.author.uri %>
*/
@baires
baires / info
Last active August 29, 2015 14:05
Memcaced
1) Install RVM
\curl -sSL https://get.rvm.io | bash -s stable
2) Get some rubies :)
rvm install 1.9.3 --with-gcc=clang
3) Set ruby version as default
@baires
baires / .gitignore
Created July 25, 2012 02:47 — forked from mrrooijen/.gitignore
MiddleMan on Heroku configuration.
.DS_Store
*.swp
*.swo
Gemfile.lock
@baires
baires / .htaccess
Created June 12, 2012 05:28 — forked from necolas/.htaccess
Simple, quick way to concatenate, minify, and version static files in a Wordpress theme
# Filename-based cache busting
# taken from https://github.com/h5bp/html5-boilerplate/
# This rewrites file names of the form `name.123456.js` to `name.js`
# so that the browser doesn't use the cached version when you have
# updated (but not manually renamed) the file.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
@baires
baires / coffeescript_twitter_jquery.coffee
Created February 21, 2012 00:09 — forked from mwawrusch/coffeescript_twitter_jquery.coffee
Coffeescript implementation of a twitter jquery plugin
# Quick jquery plugin to display recent tweets
# (C) 2011 Martin Wawrusch (@martin_sunset , http://martinatsunset.com, https://github.com/mwawrusch)
#
# The juicy parts are from:
#
# http://www.simonwhatley.co.uk/ (Simon Whatley)
# https://github.com/jimeh (Jim Myhrberg)
#
# I just assembled them in coffeescript.
#