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
// Simple benchmarking FFT with Cuda, building on https://github.com/drufat/cuda-examples | |
// compiles with nvcc -DSIGNAL_SIZE=2048 -m64 -gencode arch=compute_30,code=sm_30 -O2 -use_fast_math -I commoninclude -l cufft cudafft.cu -o cudaff | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <math.h> | |
#include <sys/time.h> | |
#include <cuda_runtime.h> | |
#include "helper_functions.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
from __future__ import print_function | |
from scipy.io import loadmat | |
from os import listdir | |
from numpy import nan_to_num | |
import pickle | |
import gzip | |
import sys | |
import mne | |
def convert_to_pz(fname): |
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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(TeX-command-list | |
(quote | |
(("TeX" "%(PDF)%(tex) %S%(PDFout) \"\\input %t\"" TeX-run-TeX nil | |
(plain-tex-mode texinfo-mode ams-tex-mode) | |
:help "Run plain TeX") |
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
[user] | |
name = Sylvain Chevallier | |
email = [email protected] | |
[credential] | |
helper = cache --timeout=10000000 | |
[github] | |
user = sylvchev | |
[push] | |
default = matching | |
[core] |
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
sudo su - | |
mkdir /mnt/gentoo && mount /dev/sda3 /mnt/gentoo/ && mount /dev/sda2 /mnt/gentoo/boot/ && mount /dev/sda1 /mnt/gentoo/mnt/efi && cp -L /etc/resolv.conf /mnt/gentoo/etc/ && mount -t proc proc /mnt/gentoo/proc && mount --rbind /sys /mnt/gentoo/sys && mount --make-rslave /mnt/gentoo/sys && rm /dev/shm && mkdir /dev/shm && mount -t tmpfs -o nosuid,nodev,noexec shm /dev/shm && chmod 1777 /dev/shm && mount --rbind /dev /mnt/gentoo/dev && mount --make-rslave /mnt/gentoo/dev && chroot /mnt/gentoo /bin/bash | |
. /etc/profile | |
exit | |
cd | |
umount -l /mnt/gentoo/dev{/shm,/pts,} | |
umount -R /mnt/gentoo | |
reboot |
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
cmake_minimum_required(VERSION 2.8) | |
project( detection_pose_estimation_surf ) | |
find_package( OpenCV REQUIRED ) | |
add_executable( detection_pose_estimation_surf detection_pose_estimation_surf.cpp ) | |
target_link_libraries( detection_pose_estimation_surf ${OpenCV_LIBS} ) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import pyriemann | |
import numpy as np | |
from pyriemann.utils.mean import mean_riemann | |
def generate_cov(Nt, Ne): | |
"""Generate a set of cavariances matrices for test purpose""" | |
rs = np.random.RandomState(1234) | |
diags = 2.0 + 0.1 * rs.randn(Nt, Ne) | |
A = 2*rs.rand(Ne, Ne) - 1 | |
A /= np.atleast_2d(np.sqrt(np.sum(A**2, 1))).T |
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
clear all | |
datadir='/path/to/data/ssvep-esta/'; | |
for i = 2:2 | |
subjdir = strcat(datadir, sprintf('subject%2.2d/', i)); | |
files = dir(strcat(subjdir, '*.gdf')); | |
for f=1:length(files) | |
[s,h] = sload(strcat(subjdir, files(f).name)); | |
EVENTTYP = h.EVENT.TYP; | |
EVENTPOS = h.EVENT.POS; | |
SampleRate = h.SampleRate; |
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 | |
import sys | |
import re | |
import difflib as dl | |
if __name__ == '__main__': | |
if len(sys.argv) < 3 or len(sys.argv) > 5: | |
print ("usage: %s file1 file2 [output.html]" % sys.argv[0]) | |
sys.exit(0) |