Skip to content

Instantly share code, notes, and snippets.

pub trait IteratorExt: Iterator + Sized {
fn chunks(self, size: usize) -> Chunked<Self>;}
impl<T> IteratorExt for T
where T: Iterator
fn chunks(self, size: usize) -> Chunked<Self> {
chunk_iter(self, size)
xaiki / .block
Last active Jul 23, 2020 — forked from tomshanley/.block
Sankey, with different end note link treatment
View .block
license: mit
View data.json
{"Malvin Norte 2":{"rentability":0.10184930555555556,"hood_rooms":"Malvin Norte 2","avg_rent_uyu":13333,"avg_buy_usd":40000},"Maroñas 2":{"rentability":0.09654918981481482,"hood_rooms":"Maroñas 2","avg_rent_uyu":15167,"avg_buy_usd":48000},"La Blanqueada 2":{"rentability":0.08517361111111112,"hood_rooms":"La Blanqueada 2","avg_rent_uyu":16725,"avg_buy_usd":60000},"Arroyo Seco 2":{"rentability":0.07286324786324787,"hood_rooms":"Arroyo Seco 2","avg_rent_uyu":15500,"avg_buy_usd":65000},"Villa Española 3":{"rentability":0.06962025316455696,"hood_rooms":"Villa Española 3","avg_rent_uyu":18000,"avg_buy_usd":79000},"Malvin Norte 3":{"rentability":0.06684027777777778,"hood_rooms":"Malvin Norte 3","avg_rent_uyu":17500,"avg_buy_usd":80000}," 3":{"rentability":0.06199677938808374,"hood_rooms":" 3","avg_rent_uyu":21000,"avg_buy_usd":103500},"Ciudad Vieja 1":{"rentability":0.061936936936936936,"hood_rooms":"Ciudad Vieja 1","avg_rent_uyu":15000,"avg_buy_usd":74000},"Villa Española 2":{"rentability":0.05738453159041395,"hood
View Dockerfile
FROM alpine
RUN apk update
RUN apk add mercurial
RUN apk add make gettext mg gcc pkgconfig libnotify-dev libc-dev
RUN hg clone \
&& cd slitaz-base-files/ \
&& make install-libtaz install-slitaz install-libpkg \
xaiki /
Last active Jun 29, 2019
SAFRS can't split out models definition


Trying to use SAFRS i've structured my App to have separated models, but when i do so I somehow get session ownership issues like the ones described here:

└[cochabamba] python3                                                      15:12:19
/home/xaiki/src/Urissane/cerberus/python/virtualenv/lib/python3.7/site-packages/safrs/ YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read for full details.
yaml_doc = yaml.load(raw_doc)
Starting API:
Traceback (most recent call last):
File "", line 17, in <module>
xaiki / index.html
Created Nov 28, 2018
ParticlesJS based Hero Unit
View index.html
<div class="aa_sec">
<div class="aa_txt">
<span class="aa_inner">
filtra <span class="aa_of">.me</span>
<div id="aa_particles"></div>
xaiki / kiosko_scraper.rb
Created Apr 8, 2018 — forked from ahmdrefat/kiosko_scraper.rb
Scraping newspapers names from kiosko
View kiosko_scraper.rb
require 'open-uri'
require 'nokogiri'
home_page = Nokogiri::HTML(open(''))
countries = {}
cities = {}
newspapers = []
View database.js
(function (App) {
'use strict';
var _ = require('underscore'),
Datastore = require('nedb'),
TTL = 1000 * 60 * 60 * 24;
var startupTime =;'Database path: ' + data_path);
View erc-clbin.el
;;; erc-clbin.el --- Clbining IRC messages in various ways
;; Copyright (C) 2001, 2002, 2003, 2004, 2006,
;; 2007, 2008 Free Software Foundation, Inc.
;; Based on erc-fill.el
;; Author: Andreas Fuchs <>
;; Mario Lang <>
;; URL:

Keybase proof

I hereby claim:

  • I am xaiki on github.
  • I am xaiki ( on keybase.
  • I have a public key whose fingerprint is 6817 7B2B 2BF3 82F8 C499 CB98 CF95 3E76 C24B 9018

To claim this, I am signing this object: