Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cven714 on github.
  • I am cven714 (https://keybase.io/cven714) on keybase.
  • I have a public key ASD_P2A7RKWWn8I5dM8DEtG2w5bnX3S_6vK-vjcuXEjyvgo

To claim this, I am signing this object:

package recfun
import common._
object Main {
def main(args: Array[String]) {
println("Pascal's Triangle")
for (row <- 0 to 10) {
for (col <- 0 to row)
print(pascal(col, row) + " ")
println()
@cven714
cven714 / robot.js
Created December 4, 2012 21:24 — forked from randompast/robot.js
QR-bot-009
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};
@cven714
cven714 / robot.js
Created December 4, 2012 21:20 — forked from akania/robot.js
skaicoo
//FightCode can only understand your robot
//if its class is called Robot
var id;
var Robot = function(robot) {
id = this.id;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;