Skip to content

Instantly share code, notes, and snippets.

View rngtng's full-sized avatar

Tobias Bielohlawek rngtng

View GitHub Profile
@rngtng
rngtng / table_cut.rb
Created August 14, 2011 21:17
Cutpath for LED table parts
require 'prawn'
require 'prawn/measurement_extensions'
@width = 550.mm
@height = 50.mm
@extra_height = 35.mm
@cols_width = 5.mm
@cols_height = 26.mm
@rngtng
rngtng / analyse.txt
Created September 6, 2011 08:26
Analyse of first Flipper MEassurement
DEZ BIN DIFF BINIARY
# 0 50 - 16 # 0011 0010
# 1 34 # 0010 0010
# 2 89 - 16 - 64 # 0101 1001
# 3 73 - 64 # 0100 1001
# 4 80 - 16 - 64 # 0101 0000
# 5 64 - 64 # 0100 0000
# 6 25 - 16 # 0001 1001
@rngtng
rngtng / .gitconfig
Created September 6, 2011 11:13
git alias
[color]
ui = auto
[pack]
threads = 0
[core]
excludesfile = ~/.environment/gitignore
quotepath = false
#[branch]
# autosetuprebase = always
[alias]
@rngtng
rngtng / Makefile
Created September 7, 2011 10:08
Example Makefile to compile Arduino logic analyzer on Mac OS X
ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java
TARGET = logic_analyzer
ARDUINO_LIBS =
AVRDUDE_CONF = /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf
#MCU = atmega328p
MCU = atmega1280
F_CPU = 16000000
ARDUINO_PORT = /dev/tty.usb*
@rngtng
rngtng / sc_sumo.c
Created October 12, 2011 09:52
Lego Mindstroms Robot War: Team SoundCloud Firware for RobotC
#pragma config(Sensor, S1, color, sensorCOLORFULL)
#pragma config(Sensor, S4, sonarSensor, sensorSONAR)
#pragma config(Motor, motorA, power, tmotorNormal, PIDControl, encoder)
#pragma config(Motor, motorB, right, tmotorNormal, PIDControl, reversed, encoder)
#pragma config(Motor, motorC, left, tmotorNormal, PIDControl, reversed, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*--------------------------------------------------------------------------------------------------------*\
|* *|
|* - Moving Forward - *|
@rngtng
rngtng / nabaztag.ino
Created January 9, 2012 10:41
Simple Arduino NabaztagInjector example sketch
/**
* Simple Arduino NabaztagInjector example sketch
**/
#include <Nabaztag.h>
void setup() {
Nabaztag.begin(0); //0 = standalone
}
@rngtng
rngtng / config
Created January 14, 2014 16:23
radicale.cfg
[server]
# CalDAV server hostnames separated by a comma
# IPv4 syntax: address:port
# IPv6 syntax: [address]:port
# IPv6 adresses are configured to only allow IPv6 connections
# hosts = 0.0.0.0:5232
# Daemon flag
# daemon = False
#
# File storing the PID in daemon mode
@rngtng
rngtng / diagram-mode.js
Created September 23, 2014 23:25
custom ace mode
ace.define('ace/mode/diagram', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/diagram_highlight_rules', 'ace/mode/folding/cstyle'], function(require, exports, module) {
var oop = require("../lib/oop");
var TextMode = require("./text").Mode;
var Tokenizer = require("../tokenizer").Tokenizer;
var DiagramHighlightRules = require("./diagram_highlight_rules").DiagramHighlightRules;
// TODO: pick appropriate fold mode
var FoldMode = require("./folding/cstyle").FoldMode;
var Mode = function() {
#!/bin/sh
# An example hook script to verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been
# pushed. If this script exits with a non-zero status nothing will be pushed.
#
# This hook is called with the following parameters:
#
# $1 -- Name of the remote to which the push is being done
# $2 -- URL to which the push is being done
@rngtng
rngtng / ladder.md
Created March 18, 2016 01:01 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder