Skip to content

Instantly share code, notes, and snippets.

@mtanzi
mtanzi / readme.md
Created February 1, 2021 22:36 — forked from maxivak/readme.md
Integrating Gem/Engine and Main Rails App
@mtanzi
mtanzi / prompt_josh_setup
Created February 25, 2019 21:24
prompt_josh_setup
#
# A stripped-down sorin theme.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
# Josh Symonds <josh@joshsymonds.com>
#
# Screenshots:
# http://i.imgur.com/nBEEZ.png
#
@mtanzi
mtanzi / .tmux.conf
Created January 24, 2019 12:18
Tmux dotfiles
# improve colors
set -g default-terminal 'screen-256color'
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key -r C-h select-window -t :-
@mtanzi
mtanzi / .vimrc
Created January 24, 2019 12:17
Vim dotfile
""""""""""""""""""""""""""""""""""""
" Marco Tanzi .vimrc configuration "
""""""""""""""""""""""""""""""""""""
set nocompatible " be iMproved, required
let mapleader = " "
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
@mtanzi
mtanzi / .zpreztorc
Created January 24, 2019 12:15
zshell - Presto dotfiles
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
@mtanzi
mtanzi / Readme.MD
Created January 21, 2019 15:05
Ruby literal Frozen

Frozen Literals 101

there a simple example to show how the literal can be handled in ruby

if we run the first file literal.rb the literal variable before call the .freeze method is not frozen

» ruby literal.rb
Before freeze: false
After freeze: true
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 35 columns, instead of 13. in line 5.
date,Belgium,Bulgaria,CzechRepublic,Denmark,Germany,Estonia,Ireland,Greece,Spain,France,Croatia,Italy,Cyprus,Latvia,Lithuania,Luxembourg,Hungary,Malta,Netherlands,Austria,Poland,Portugal,Romania,Slovenia,Slovakia,Finland,Sweden,UnitedKingdom,Iceland,Norway,Switzerland,Montenegro,Macedonia,Turkey
2008,12.5,18.5,13.8,5.7,12.7,12.3,16.5,16.6,16.0,13.3,14.1,20.3,10.8,14.7,13.0,10.0,18.5,14.7,5.6,9.9,14.2,12.2,14.1,7.4,16.8,9.8,7.9,13.7,6.1,5.9,7.7,null,38.5,39.9
2009,13.7,20.8,15.7,7.1,13.0,19.2,20.9,17.5,20.7,15.3,15.3,21.8,11.7,21.6,16.5,8.6,20.5,15.3,6.1,10.4,15.1,13.1,16.2,9.2,18.8,11.9,9.7,15.0,10.3,6.8,9.3,null,35.6,39.1
2010,13.7,24.0,15.7,8.0,12.5,19.4,22.2,20.4,20.9,15.4,18.2,23.3,12.9,21.4,18.4,7.7,20.6,14.9,6.7,10.2,15.9,14.2,19.2,9.6,20.9,11.5,8.3,15.2,10.5,7.6,9.1,null,34.3,36.4
2011,14.5,25.6,15.0,8.4,11.3,16.6,23.1,25.0,21.7,15.6,20.4,23.7,15.0,20.2,16.1,7.4,20.2,14.2,7.0,9.6,16.4,14.2,20.0,9.6,20.9,11.1,7.9,15.8,8.3,7.4,8.9,27.8,33.8,34.0
2012,15.1,25.4,15.8,8.7,10.9,16.5,22.4,29.1,23.6,16.1,21.7,
{
"id": "edat_lfse",
"title": "Early leavers from education and training",
"note": "A rappresentation of the Early leavers from education and training statistics by Eurostats 2018-2017.",
"data" : {
"values" : {
"data" : [
[2008,0,12.5],
[2008,1,18.5],
[2008,2,13.8],
Verifying my Blockstack ID is secured with the address 1LRRfCAs4sWE8bQjyqnLXeYue6oGTp3TqY
@mtanzi
mtanzi / .vimrc
Created September 13, 2017 09:47
My .vimrc
""""""""""""""""""""""""""""""""""""
" Marco Tanzi .vimrc configuration "
""""""""""""""""""""""""""""""""""""
set nocompatible " be iMproved, required
let mapleader = " "
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup