Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <boost/thread.hpp>
void workerFunc()
{
std::cout << "Worker: running" << std::endl;
std::cout << "Worker: finished" << std::endl;
}
int main(int argc, char* argv[])
@n-west
n-west / gr-radar.json
Last active August 29, 2015 14:16
yaml_json_xlate.py
{
"brief": "A radar toolbox from GSoC '14",
"contact": {
"author": "Stefan Wunsch",
"email": "stefan.wunsch@student.kit.edu"
},
"copyright_owner": "Communications Engineering Lab, KIT",
"dependencies": [
"UHD",
"Qt",
@n-west
n-west / oe_machine_notes.md
Created July 29, 2012 00:20
OE MACHINE configurations
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 October 9, 2012 07:12
decode chunk modifications
#!/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
@n-west
n-west / robot.js
Created December 4, 2012 09:17
kilgoth
//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 December 4, 2012 09:24 — forked from guilhermebruzzi/robot.js
Merry Go round
//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
@n-west
n-west / robot.js
Created December 4, 2012 23:00 — forked from cgardner/robot.js
derp
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 {
@n-west
n-west / robot.js
Created December 5, 2012 01:00
cornerShot
//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 December 5, 2012 05:40 — forked from wojtalke/robot.js
Testing_robot
//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);
@n-west
n-west / sinalaysis.cs
Created October 22, 2015 16:04 — forked from dosomder/sinalaysis.cs
Xperia SIN Structure analysis
// ==========================================================
// Sony Xperia SIN (Firmware flashable files) analysis
//
// Author: zxz0O0
// Started: 2014-06-05
// Notes: Numbers are big endian
// Credits: Androxyde
// ==========================================================
struct SinFile