This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' @param h5File HDF5 file path | |
#' @param dataset data frame path in the HDF5 file | |
#' @examples | |
#' df <- loadhdf5data("/path/to/file.hdf5", "/path/to/dataset") | |
#' | |
loadhdf5data <- function(h5File, dataset) { | |
require(h5) # available on CRAN | |
f <- h5file(h5File) | |
nblocks <- h5attr(f[dataset], "nblocks") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fancontrol via Hardware PWM for Raspian | |
Author: 2h4u | |
Date: 19.01.2013 | |
Version 2: | |
Now with dynamic PWM regulation! | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clap = audioread('clap.wav'); | |
fs = 96e3; % sampling frequency | |
N = 40; % steps | |
ssize = 0.15; % step size | |
delay = ssize * 2 / 340; | |
samples = round(delay * fs); | |
stairs = zeros(samples * N + length(clap) + N, N); | |
for i = 1:N | |
samples = samples + 1; | |
indexes = (i-1)*samples+1 : length(clap)+(i-1)*samples; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# coding=UTF8 | |
# Author: Iñaki Ucar <i.ucar86@gmail.com> | |
# Description: Download all events, births and deaths from Wikipedia | |
import sys, requests, locale | |
from datetime import date, timedelta as td | |
from pypandoc import convert # <3 | |
MAX_TITLES = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=UTF8 | |
# Author: Iñaki Ucar <i.ucar@enchufa2.es> | |
# Description: Dropbox recursive downloader | |
import os, sys | |
from urllib2 import urlopen, unquote | |
from bs4 import BeautifulSoup | |
from subprocess import call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am Enchufa2 on github. | |
* I am enchufa2 (https://keybase.io/enchufa2) on keybase. | |
* I have a public key whose fingerprint is F432 0B54 CF67 6936 3D02 0832 7EE8 1A3F 563B 3315 | |
To claim this, I am signing this object: |
NewerOlder