Skip to content

Instantly share code, notes, and snippets.

@n-west
n-west / sinalaysis.cs
Created Oct 22, 2015 — forked from dosomder/sinalaysis.cs
Xperia SIN Structure analysis
View sinalaysis.cs
// ==========================================================
// Sony Xperia SIN (Firmware flashable files) analysis
//
// Author: zxz0O0
// Started: 2014-06-05
// Notes: Numbers are big endian
// Credits: Androxyde
// ==========================================================
struct SinFile
@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 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 {
@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