Skip to content

Instantly share code, notes, and snippets.

View mluessi's full-sized avatar

Martin Luessi mluessi

  • Portland, OR, USA
View GitHub Profile
static const crc_t crc_table[256] = {
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7,
0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef,
0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6,
0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de,
0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485,
0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d,
0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4,
0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc,
0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823,
<uavobjects>
<version>
<hardware revision="1" serial="3d0049001951333332353734" type="8a"/>
<firmware date="20151214 05:52" hash="21e0f0bc" tag="next"/>
<gcs date="20151214" hash="21e0f0bc" tag="next"/>
</version>
<settings>
<object id="0x3557036A" name="ActuatorSettings">
<field name="MotorInputOutputCurveFit" values="1,1"/>
<field name="TimerUpdateFreq" values="0,0,0,50,50,50"/>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "code",
"execution_count": 27,
"metadata": {
"collapsed": false
},
"outputs": [
{
@mluessi
mluessi / bisect_raw.py
Last active August 29, 2015 13:57
bisect raw bug
#!/usr/bin/env python
import sys
import os
import numpy as np
import mne
from mne.datasets import sample
mne.set_log_level('WARNING')
data_path = sample.data_path()
import mne
from mayavi import mlab
from surfer import Brain
from mne.datasets import sample
data_path = sample.data_path()
stc = mne.read_source_estimate(data_path + '/MEG/sample/fsaverage_audvis-eeg-lh.stc')
@mluessi
mluessi / buffer_size test
Created August 1, 2013 17:21
test different buffer sizes
import time
import numpy as np
from mne.stats import permutation_cluster_1samp_test
n_subjects = 100
n_vars = int(1e6)
rng = np.random.RandomState(42)
X = rng.randn(n_subjects, n_vars)
======================================================================
ERROR: Test plotting a drop log
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/pubsw/packages/python/epd-7.1-1-rh5-x86_64/lib/python2.7/site-packages/nose/case.py", line 187, in runTest
self.test(*self.arg)
File "/autofs/space/megmix_002/users/mluessi/data/code/mne-python/mgh/mne-python/mne/tests/test_viz.py", line 188, in test_plot_drop_log
plot_drop_log([['One'], [], []])
File "/autofs/space/megmix_002/users/mluessi/data/code/mne-python/mgh/mne-python/mne/viz.py", line 1774, in plot_drop_log
pl.grid(True, axis='y')