Skip to content

Instantly share code, notes, and snippets.

View reicolina's full-sized avatar

Rei Colina reicolina

View GitHub Profile
@reicolina
reicolina / get-query-string-value.md
Last active July 12, 2016 16:32
A Javascript method to get a query string value from a given URL

The following Javascript method takes a query parameter and the URL it belongs too, and it returns the value associated with that query parameter.

function getQueryStringValue(param, url) {
  if (!url) {
      // handle null or undefined
  	return null;
  }
  var regex = new RegExp("[?&]" + param + "(=([^&#]*)|&|#|$)");
  var results = regex.exec(url);
@reicolina
reicolina / SR_ED.py
Last active February 21, 2017 22:57
A Python script that extracts SR&ED (Scientific Research and Experimental Development Tax Incentive Program) data from a Jira generated JSON file. See http://www.cra-arc.gc.ca/txcrdt/sred-rsde/menu-eng.html for details on SR&ED. It gathers "Start Date", "Resolution Date" and "# of People" and calculates the "Person Weeks" for each Jira Story.
# \\Y|M|
# ~~..'~
# ( \ )
# \ =/
# _\/_
# / -_
# < \
# \^-_-^\ \ iii
# <\v =======uu==>
# SR&ED DATA GENERATOR
@reicolina
reicolina / amplify4selling-contact-import.py
Last active October 13, 2017 21:58
Hootsuite Amplify for Selling Contact Import Script
# ___ ,_, ___
# (o,o) (o,o) ,,,(o,o),,,
# {`"'} {`"'} ';:`-':;'
# -"-"- -"-"- -"-"-
#
# AMPLIFY FOR SELLING: CONTACT IMPORT SCRIPT
# ==========================================
# 1.- Obtain CSV file(s) from your data source.
# 2.- Save the CSV file in the same folder as this script.
# 3.- Replace the HOOTSUITE_MEMBER_ID, AMPLIFY_API_KEY, CRM_MAPPING_URL
@reicolina
reicolina / ml-learning-material.md
Last active January 19, 2018 06:31
A Machine Learning Reference Material Guide

Machine Learning Reference Material Guide

Math Theory

Linear Argebra:

In ML, Linear Algebra comes up everywhere. Topics such as Principal Component Analysis (PCA), Singular Value Decomposition (SVD), Eigendecomposition of a matrix, LU Decomposition, QR Decomposition/Factorization, Symmetric Matrices, Orthogonalization & Orthonormalization, Matrix Operations, Projections, Eigenvalues & Eigenvectors, Vector Spaces and Norms are needed for understanding the optimization methods used for machine learning.

  • Deep Learning Book, Chapter 2: Linear Algebra. A quick review of the linear algebra concepts relevant to machine learning. https://goo.gl/O5vgpm
  • A First Course in Linear Model Theory by Nalini Ravishanker and Dipak Dey. Textbook introducing linear algebra in a statistical context. https://goo.gl/2A4Wi5

Probability Theory and Statistics: