Skip to content

Instantly share code, notes, and snippets.

View rubencaro's full-sized avatar

Rubén Caro rubencaro

View GitHub Profile
@rubencaro
rubencaro / dynamic_chart.html
Created March 3, 2016 21:33
chartjs.org dynamic loading example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Charty Crap</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>
</head>
<body>
<canvas id="chart" width="400" height="200"></canvas>
@rubencaro
rubencaro / openrtb-iab-category.md
Created January 20, 2017 11:31 — forked from thiagozs/openrtb-iab-category.md
IAB OpenRTB Category

###IAB1 Arts & Entertainment IAB1-1 Books & Literature
IAB1-2 Celebrity Fan/Gossip
IAB1-3 Fine Art
IAB1-4 Humor
IAB1-5 Movies
IAB1-6 Music
IAB1-7 Television

###IAB2 Automotive

@rubencaro
rubencaro / cloudSettings
Last active March 12, 2022 07:13
Visual Studio Code Sync Settings Gist
{"lastUpload":"2022-03-12T07:13:12.685Z","extensionVersion":"v3.4.3"}
@rubencaro
rubencaro / combinations.ex
Created May 27, 2017 20:28
Ursula's explosion of keys
defmodule Ursula.Combinations do
@keys ~w(a b c d e)
@doc """
Returns any combination of the elements in `enum` with exactly `k` elements.
Repeated elements are handled intelligently.
## Examples
iex> combinations([1, 2, 3], 2) |> Enum.to_list
@rubencaro
rubencaro / setup_go.md
Last active April 28, 2024 21:52
Golang installation guide

Golang installation guide

Since Golang version 1.11 this process is finally (almost) as easy as it should (!!). You can see full docs here. For older guides see here.

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Installing everything needed the first time

Install asdf and its golang plugin, then install golang

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@rubencaro
rubencaro / gnome.md
Last active September 10, 2017 15:08
GNOME Config

GNOME Config

Custom CSS

File at .config/gtk-3.0/gtk.css

headerbar entry,
headerbar spinbutton,
@rubencaro
rubencaro / README.md
Last active April 18, 2024 11:47
Python installation guide

Python installation guide

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Install asdf and its python plugin, then install Python

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were:

@rubencaro
rubencaro / rerun.sh
Last active August 21, 2019 12:58
Rerun script
#!/usr/bin/env bash
# Living in https://gist.github.com/rubencaro/633cd90065d399d5fe1b56e46440d2bb
# Loosely based on https://github.com/tartley/rerun2
ignore_secs=0.25
clear='false'
verbose='false'
ignore_until=$(date +%s.%N)
excludes='\.git|\.coverage|\.cache|tmp|env|deps|_build|\.elixir_ls|cover|target|\.vscode'
@rubencaro
rubencaro / setup_kotlin.md
Last active April 9, 2021 19:13
Kotlin/Java Installation Guide

Kotlin/Java installation guide

These are my notes, not a generic solution. They are not meant to work anywhere outside my machines. Update version numbers to whatever are the current ones while you do this.

Install asdf and some plugins, then install Java, Kotlin & Gradle

asdf lives in https://github.com/asdf-vm/asdf

Follow its installation instructions, which at the moment of writing were: