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
LOGSDATE=$(date -v -1d +%Y-%m-%d) # yesterday | |
LOGUDATE=$(date +%Y-%m-%d) # today | |
GITUSER=micuat # git author | |
GITPREOPTIONS="--no-pager" | |
GITOPTIONS="--since=$LOGSDATE --until=$LOGUDATE --all --author=$GITUSER --no-merges" | |
#DIRPATH=/Users/naoto/ # Path to repos | |
for f in $(cat $HOME/bin/repos) # File includes repo list |
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 | |
import sys | |
from liblas import file | |
# usage | |
# $ python las2ply > output.ply | |
# http://stackoverflow.com/questions/5574702/how-to-print-to-stderr-in-python | |
def eprint(*args, **kwargs): |
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
#include "ofMain.h" | |
#include "ofApp.h" | |
//======================================================================== | |
int main( ){ | |
ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context | |
// this kicks off the running of my app | |
// can be OF_WINDOW or OF_FULLSCREEN | |
// pass in width and height too: |
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 numpy as np | |
from pylsl import StreamInfo, StreamOutlet, StreamInlet, resolve_stream | |
from pythonosc import udp_client | |
def compute_feature_vector(eegdata, Fs): | |
# https://github.com/bcimontreal/bci_workshop/blob/master/bci_workshop_tools.py | |
eegdata = np.array([eegdata]).T | |
# 1. Compute the PSD | |
winSampleLength = len(eegdata) |
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 re | |
import csv | |
import sys | |
filename = sys.argv[1] | |
data = [] | |
with open(filename, 'r') as f: | |
for line in f: |
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 csv | |
import datetime | |
import sys | |
import pandas as pd | |
filename = sys.argv[1] | |
joints = {} | |
with open(filename, newline='') as csvfile: |
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
/** | |
* fjenett - 2015 | |
*/ | |
import org.piecemaker2.api.*; | |
import org.piecemaker2.models.*; | |
import java.util.Properties; | |
import java.util.Date; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
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
public class OscBinary extends OscMessage { | |
OscBinary(byte[] bytes) { | |
super(new OscMessage("")); | |
parseMessage(bytes); | |
} | |
} |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <math.h> | |
#include <wiringPi.h> | |
#include <wiringPiI2C.h> | |
#define I2C_ADDR 0x28 |
OlderNewer