Skip to content

Instantly share code, notes, and snippets.

@n-west
n-west / oe_machine_notes.md
Created Jul 29, 2012
OE MACHINE configurations
View oe_machine_notes.md
oe-core/qemux86
#@TYPE: Machine
#@NAME: common_pc
#@DESCRIPTION: Machine configuration for running a common x86

oe-core/qemuarm
#@TYPE: Machine
#@NAME: arm_versatile_926ejs
#@DESCRIPTION: arm_versatile_926ejs
@n-west
n-west / gist:3857129
Created Oct 9, 2012
decode chunk modifications
View gist:3857129
#!/usr/bin/python
"""
zero.py - Analyze raw data history segments read from an insulin
pump.
Right now this is really just a hexdumper that can iterate through a
data page in chunks of a given size, and can begin at a given
offset. See --help for information. The script prints information
on how to reproduce runs.
The mm_*.data files are bytes collected by the auditing software to
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.turn(5);
@n-west
n-west / robot.js
Created Dec 4, 2012 — forked from guilhermebruzzi/robot.js
Merry Go round
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot){
//robot.clone();
this.robotOptions = {
clone: {
canStartFight: false,
goBackOnCollision: false
View robot.js
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var firstTime = true;
var wasSpotted = false;
var direction = true;
var Robot = function(robot) {
};
@n-west
n-west / robot.js
Created Dec 5, 2012 — forked from wojtalke/robot.js
Testing_robot
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.turn(60);
View thief_of_baghdad.m
totalDays = 0;
nTrials = 100000;
for null = 1 : nTrials
days = 0; % he starts in jail on day 0
free = 0; % he is not free
% inner loop is one prison term
while(~free)
@n-west
n-west / ting-response
Last active Dec 11, 2015
Connecting Ting modem to beaglebone for the first time using insul-audit image.
View ting-response
[433173.772583] usb 1-1: new high-speed USB device number 4 using musb-hdrc
[433173.913726] usb 1-1: New USB device found, idVendor=0af0, idProduct=d033
[433173.920867] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=4
[433173.928497] usb 1-1: Product: GlobeTrotter Icon322
[433173.933654] usb 1-1: Manufacturer: Option Wireless Technology
[433173.939788] usb 1-1: SerialNumber: Serial Number
[433173.951812] scsi0 : usb-storage 1-1:1.0
[433174.035797] hso: drivers/net/usb/hso.c: Option Wireless
[433174.041564] usbcore: registered new interface driver hso
[433174.799316] usb 1-1: USB disconnect, device number 4
View gist:4645594
Where to buy
Home > Support > FAQ > Article Detail
How to send an SMS with AT-commands?
4/02/2009