View tricks.md

Footnotes

Suppose that I have a text and I want to have a footnote 1.

[1]: Footnote content goes here.

View github_stars.py
#!/usr/bin/python
import argparse
import urllib2
import json
import pprint
def sort_by(dictlist, k, **kwargs):
return sorted(dictlist, key=(lambda d: d[k]), **kwargs)
View some_git_commands.md

Interactive rebase of a branch. Among many options and actions, it allows the removal of specific commits. Useful for release branches or to submit PRs.

git rebase -i SHA-OF-FIRST-COMMIT-IN-BRANCH

Command to fetch a remote branch, creating a local branch with a different name (reference).

View pandas_numpy_reference.md

Numpy / Pandas

import pandas as pd
import numpy as np

Reshape:

View technical_books.md

Data Science

  • The Elements of Statistical Learning: Data Mining, Inference, and Prediction, free PDF text on the book's website.
  • Data Clustering: Algorithms and Applications, Charu C. Aggarwal

Bayesian Methods

  • Probabilistic Programming and Bayesian Methods for Hackers, open source book hosted on Github.
  • Spatial and Spatio-temporal Bayesian Modeling with R
View numpy_termshow.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Terminal visualization of 2D numpy arrays
# Copyright (c) 2009 Nicolas P. Rougier
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
View write-data-to-file.clj
;; Write a map structure to a file.
(spit "filename.txt" (prn-str {:a 10, :b 20}))
;; Read the map structure from the same file.
(read-string (slurp "filename.txt"))