Skip to content

Instantly share code, notes, and snippets.

View lmancilla's full-sized avatar

Luis Mancilla Avila lmancilla

View GitHub Profile
@lmancilla
lmancilla / picking.md
Last active July 2, 2021 04:20 — forked from luctus/picking.md
The picking problem

The Context

Every article is identified by a token (for example 246311). For every article we have a JSON file that contains many recommendations for that article, based on 3 different algorithms: logs, content, and myad

  • The logs algorithm finds articles visited by users that also visited the current article.
  • The content algorithm finds articles that contains similar text to the current article.
  • The myad algorithm finds articles that have been bookmarked within the same folder that the current article.

The Problem

@lmancilla
lmancilla / gh-dl-release
Created December 26, 2016 18:22 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
/usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/runner.rb:48: /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant TMail::Encoder::Encoding (NameError)
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/encode.rb:344:in `scanadd'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/encode.rb:305:in `text'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/header.rb:200:in `do_accept'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/header.rb:165:in `accept'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/mail.rb:174:in `accept'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/mail.rb:344:in `ordered_each'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/mail.rb:344:in `each'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/mail.rb:344:in `ordered_each'
from /usr/lib/ruby/gems/1.8/gems/tmail-1.2.3.1/lib/tmail/mail.rb:342:in `each'