Skip to content

Instantly share code, notes, and snippets.

View bartoszfilipowicz's full-sized avatar

Bartek Filipowicz bartoszfilipowicz

View GitHub Profile
@bartoszfilipowicz
bartoszfilipowicz / ListFragment.java
Created January 25, 2014 17:07
Alphabet and numbers
package com.bartoszfilipowicz.alphanumeric;
import android.content.Context;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.os.Bundle;
import android.provider.BaseColumns;
import android.text.TextUtils;
import android.view.View;
import android.widget.AlphabetIndexer;
@bartoszfilipowicz
bartoszfilipowicz / gist:4232137
Created December 7, 2012 09:34
Raspberry Pi nad RSX Lego Tower
SSH to rasp Pi:
ssh [email protected]
password: raspberry
Given that the lego Tower is in /dev/usb/legousbtower0, start by making sure the device is accessible with a lazy hack:
$ sudo chmod 777 /dev/usb/legousbtower0
Here are two useful nqc commands to communicate with the RCX brick through the Lego Tower.
1) Uploading the firmware(if needed): nqc -Susb:/dev/usb/legousbtower0 -firmware firm0309.lgo