Skip to content

Instantly share code, notes, and snippets.

@tomerweller
tomerweller / minim_in_level
Created July 5, 2014 15:41
read RMS amplitude of input audio stream
import ddf.minim.*;
Minim minim;
AudioInput in;
void setup()
{
minim = new Minim(this);
in = minim.getLineIn();
}
import sys
import math
import serial
__author__ = 'weller'
from xml.etree import ElementTree
def calc_distance(x1, y1, x2, y2):
@tomerweller
tomerweller / AndroidManifest.xml
Created June 30, 2015 16:09
HTTP IntentFIlter
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.weller.testlinks" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
@tomerweller
tomerweller / esp32-freertos-ring-oscillator.c
Created November 29, 2016 06:34
esp32 freertos ring oscillator benchmark
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
#define IN_GPIO 13
const inArr = [
{ order: 0.1, depth: 1 },
{ order: 0.2, depth: 1 },
{ order: 0.3, depth: 2 },
{ order: 0.4, depth: 2 },
{ order: 0.5, depth: 1 },
{ order: 0.6, depth: 2 },
{ order: 0.7, depth: 3 },
{ order: 0.8, depth: 1 },
];
@tomerweller
tomerweller / esp32-arduino-ring-oscillator.c
Created November 29, 2016 06:34
esp32 arduino ring oscillator benchmark
const int in = 13;
const int out = 14;
void setup() {
pinMode(in, INPUT);
pinMode(out, OUTPUT);
digitalWrite(out, LOW);
}
void loop() {

Keybase proof

I hereby claim:

  • I am tomerweller on github.
  • I am tomerweller (https://keybase.io/tomerweller) on keybase.
  • I have a public key whose fingerprint is AB91 DB7C BB14 3B23 397D 40A2 DC42 5E36 0DFC 41C0

To claim this, I am signing this object:

git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.bashrc