Skip to content

Instantly share code, notes, and snippets.

View schneider42's full-sized avatar

schneider42

View GitHub Profile
FIR: Input Samplerate: 10000000, Output Samplerate: 500000, Signals: 1000, Signal len: 206749
set_center_freq: 0.01
xlating_filter: 16.61
--------------------------------
FIR: Input Samplerate: 10000000, Output Samplerate: 250000, Signals: 1000, Signal len: 203030
set_center_freq: 0.01
xlating_filter: 9.94
--------------------------------
FFT: Input Samplerate: 10000000, Output Samplerate: 500000, Signals: 1000, Signal len: 201834
set_center_freq: 3.51
FIR: Input Samplerate: 2000000, Output Samplerate: 500000, Signals: 100, Signal len: 29573
set_data: 0.01
set_center_freq: 0.01
dst.reset: 0.00
xlating_filter: 14.09
get_data: 1.58
misc: 0.02
signal_start: 0.93
fft: 1.46
shift_fft: 1.78
250 ksps, fft, complex128:
Samplerate: 2000000, Signals: 10000
set_data: 0.004 (0.004)
set_center_freq: 0.004 (0.003)
dst.reset: 0.000 (0.000)
xlating_filter: 0.004 (0.002)
get_data: 0.000 (0.000)
misc: 0.000 (0.000)
signal_start: 0.001 (0.001)
fft: 0.001 (0.000)
Jan 18 03:17:44 fnordload __main__ - INFO - Entered give change menu
Jan 18 03:17:44 fnordload fnordload.account - INFO - Value of account coins: 340.000000
Jan 18 03:17:44 fnordload fnordload.note_validator - INFO - Set max accepted value: 170.000000
Jan 18 03:17:44 fnordload fnordload.note_validator - INFO - New inhibits: [1, 1, 1, 0, 0, 0]
Jan 18 03:17:44 fnordload fnordload.note_validator - INFO - Accepted values: [5, 10, 20]
Jan 18 03:17:44 fnordload fnordload.lcd - INFO - Giving Change | Accepting (Euro): | 5, 10, 20 | Insert money
Jan 18 03:17:44 fnordload fnordload.note_validator - INFO - Read note
Jan 18 03:17:44 fnordload fnordload.note_validator - DEBUG - read_note:60 with self._essp_lock
Jan 18 03:17:44 fnordload fnordload.note_validator - DEBUG - _run:107 with self._essp_lock
Jan 18 03:17:44 fnordload fnordload.note_validator - WARNING - ['0xf0', '0xe8', '0xcc']
Jan 18 03:04:46 fnordload __main__ - INFO - Entered give change menu
Jan 18 03:04:46 fnordload fnordload.account - INFO - Value of account coins: 340.000000
Jan 18 03:04:46 fnordload fnordload.note_validator - INFO - Set max accepted value: 170.000000
Jan 18 03:04:46 fnordload fnordload.note_validator - INFO - New inhibits: [1, 1, 1, 0, 0, 0]
Jan 18 03:04:46 fnordload fnordload.note_validator - INFO - Accepted values: [5, 10, 20]
Jan 18 03:04:46 fnordload fnordload.lcd - INFO - Giving Change | Accepting (Euro): | 5, 10, 20 | Insert money
Jan 18 03:04:46 fnordload fnordload.note_validator - INFO - Read note
Jan 18 03:04:46 fnordload fnordload.note_validator - DEBUG - read_note:60 with self._essp_lock
Jan 18 03:04:46 fnordload fnordload.note_validator - DEBUG - _run:107 with self._essp_lock
Jan 18 03:04:46 fnordload fnordload.note_validator - WARNING - ['0xf0', '0xe8', '0xcc']
import socket
import time
from math import pi, sin
UDP_IP = '83.133.179.154'
UDP_PORT = 9897
def sinc(x):
try:
x = pi * x
import socket
import sys
from PIL import Image
image = Image.open(sys.argv[1])
UDPHOST = "2001:7f0:3003:cafe:222:f9ff:fe01:c65"
UDPPORT = 2323
sock = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
@schneider42
schneider42 / gist:2899052
Created June 9, 2012 01:48
l0dable to test openbeacon
#include <sysinit.h>
#include <string.h>
#include "basic/basic.h"
#include "basic/config.h"
#include "lcd/render.h"
#include "lcd/print.h"
#include "funk/nrf24l01p.h"
set shiftwidth=4
syntax enable
set ts=4
set number
colorscheme elflord
set shiftround
set expandtab
set autoindent
set viminfo='10,\"1000,:20,%,n~/.viminfo
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
@schneider42
schneider42 / xmonad.hs
Created March 27, 2012 20:08 — forked from myszek123/xmonad.hs
basic xmonad on ubuntu 11.10 oneiric ocelot, using gnome-classic
# Based off of http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Unity_2D
#
# /usr/share/xsessions/xmonad.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png