Skip to content

Instantly share code, notes, and snippets.

@VizirAdmin
VizirAdmin / import_codeplane_to_bitbucket.rb
Created July 24, 2013 19:52
Script to import git repositories stored in Amazon S3 to your Bitbucket account.
require 'rubygems'
require 'aws/s3'
require 'bitbucket_rest_api'
DESTINATION_FOLDER = "codeplane"
S3_BUCKET = "S3_BUCKET_NAME"
S3_ACCESS_KEY_ID = "S3_ACCESS_KEY_ID"
S3_SECRET_ACCESS_KEY = "S3_SECRET_ACCESS_KEY"
BITBUCKET_USER_EMAIL = "BITBUCKET_USER_EMAIL"
BITBUCKET_PASSWORD = "BITBUCKET_PASSWORD"
@VizirAdmin
VizirAdmin / robot.js
Created December 6, 2012 13:42
Vixtroctor
//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.ahead(100);