Skip to content

Instantly share code, notes, and snippets.

Rubén Caro rubencaro

Block or report user

Report or block rubencaro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rubencaro
rubencaro / setup_kotlin.md
Last active Dec 21, 2018
Kotlin/Java Installation Guide
View setup_kotlin.md

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:

@rubencaro
rubencaro / rerun.sh
Last active Feb 27, 2019
Rerun script
View rerun.sh
#!/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'
@rubencaro
rubencaro / README.md
Last active Jun 13, 2019
Python installation guide
View README.md

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 / gnome.md
Last active Sep 10, 2017
GNOME Config
View gnome.md

GNOME Config

Custom CSS

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

headerbar entry,
headerbar spinbutton,
View .bashrc
# .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 / setup_go.md
Last active Mar 26, 2019
Golang installation guide
View setup_go.md

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

@rubencaro
rubencaro / combinations.ex
Created May 27, 2017
Ursula's explosion of keys
View combinations.ex
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 / cloudSettings
Last active Jul 11, 2019
Visual Studio Code Sync Settings Gist
View cloudSettings
{"lastUpload":"2019-07-11T14:39:18.901Z","extensionVersion":"v3.3.1"}
View openrtb-iab-category.md

###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 / dynamic_chart.html
Created Mar 3, 2016
chartjs.org dynamic loading example
View dynamic_chart.html
<!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>
You can’t perform that action at this time.