###To laptop
Specify an IP address to eth0 (here 192.168.56.1)
sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
| firewall { | |
| all-ping enable | |
| broadcast-ping disable | |
| ipv6-receive-redirects disable | |
| ipv6-src-route disable | |
| ip-src-route disable | |
| log-martians enable | |
| name WAN_IN { | |
| default-action drop | |
| description "WAN to internal" |
| #!/usr/bin/env python2 | |
| import csv | |
| from dateutil import tz | |
| import dateutil.parser | |
| import numpy as np | |
| import pylab as P | |
| from matplotlib.dates import MinuteLocator, HourLocator, DayLocator, DateFormatter | |
| from matplotlib.dates import date2num, num2date |
| /** | |
| * @author Juliano Castilho <julianocomg@gmail.com> | |
| */ | |
| var React = require('react'); | |
| var AffixWrapper = React.createClass({ | |
| /** | |
| * @type {Object} | |
| */ | |
| propTypes: { |
| """ | |
| ldr.py | |
| Display analog data from Arduino using Python (matplotlib) | |
| Author: Mahesh Venkitachalam | |
| Website: electronut.in | |
| """ | |
| import sys, serial, argparse |
| # Copyright (C) 2013 Wesley Baugh | |
| """Tools for text classification. | |
| Extracted from the [infer](https://github.com/bwbaugh/infer) library. | |
| """ | |
| from __future__ import division | |
| import math | |
| from collections import defaultdict, namedtuple, Counter | |
| from fractions import Fraction |
| TEMPLATE = template.tex | |
| STYLESHEET = style.css | |
| MD = $(wildcard *.md) | |
| TEX = $(patsubst %.md,%.tex,$(MD)) | |
| HTML = $(patsubst %.md,%.html,$(MD)) | |
| PDF = $(patsubst %.md,%.pdf,$(MD)) | |
| .PHONY: clean pdf html | |
| all: pdf html |
| /* fix_fft.c - Fixed-point in-place Fast Fourier Transform */ | |
| /* | |
| All data are fixed-point short integers, in which -32768 | |
| to +32768 represent -1.0 to +1.0 respectively. Integer | |
| arithmetic is used for speed, instead of the more natural | |
| floating-point. | |
| For the forward FFT (time -> freq), fixed scaling is | |
| performed to prevent arithmetic overflow, and to map a 0dB | |
| sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq |