Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bas14evatya
bas14evatya / read_whatsapp.R
Created May 29, 2018 08:40 — forked from MichaelChirico/read_whatsapp.R
extract from Whatsapp history to data.table
library(data.table)
whatsapp_raw = readLines('~/Downloads/WhatsApp Chat with PhDelphia.txt')
#have to deal with multi-line messages :\
idx = grepl('^1?[0-9]/', whatsapp_raw)
idxrle = rle(idx)
bdpts = cumsum(idxrle$lengths)
for (ii in seq_len(length(idxrle$values))) {
if (!idxrle$values[ii]) {
@bas14evatya
bas14evatya / Matrix.md
Created May 27, 2018 17:21 — forked from nadavrot/Matrix.md
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@bas14evatya
bas14evatya / thin-film.ipynb
Created May 13, 2018 05:40 — forked from jmoy/thin-film.ipynb
Why soap bubbles are colorful and windowpanes are not
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.