Skip to content

Instantly share code, notes, and snippets.

View dotfiles-init.sh
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
View keybase.md

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:

View fu-travis.js
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 Nov 29, 2016
esp32 arduino ring oscillator benchmark
View esp32-arduino-ring-oscillator.c
const int in = 13;
const int out = 14;
void setup() {
pinMode(in, INPUT);
pinMode(out, OUTPUT);
digitalWrite(out, LOW);
}
void loop() {
@tomerweller
tomerweller / esp32-freertos-ring-oscillator.c
Created Nov 29, 2016
esp32 freertos ring oscillator benchmark
View esp32-freertos-ring-oscillator.c
#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
View AndroidManifest.xml
<?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
View eduardo.py
import sys
import math
import serial
__author__ = 'weller'
from xml.etree import ElementTree
def calc_distance(x1, y1, x2, y2):
@tomerweller
tomerweller / minim_in_level
Created Jul 5, 2014
read RMS amplitude of input audio stream
View minim_in_level
import ddf.minim.*;
Minim minim;
AudioInput in;
void setup()
{
minim = new Minim(this);
in = minim.getLineIn();
}
You can’t perform that action at this time.