Skip to content

Instantly share code, notes, and snippets.

@CarterTsai
CarterTsai / robot.js
Created December 6, 2012 12:22
CARTER's ROBOT
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
var robot;
robot = ev.robot;
robot.ahead(10);
robot.turn(5);
'use strict';
// return the function's return value
angular.module('YahooHackApp')
.factory('Photosearch', function($resource) {
var base = $resource('/photosearch/:id', {id:'@id'},{
get: {method: 'GET'},
put: {method:'PUT'},
del: {method: 'DELETE'}
});
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";
<?xml version="1.0" encoding="UTF-8"?>
<yahoo-weather-codes>
<code number="0" description="tornado"/>
<code number="1" description="tropical storm"/>
<code number="2" description="hurricane"/>
<code number="3" description="severe thunderstorms"/>
<code number="4" description="thunderstorms"/>
<code number="5" description="mixed rain and snow"/>
<code number="6" description="mixed rain and sleet"/>
<code number="7" description="mixed snow and sleet"/>
@CarterTsai
CarterTsai / angular-Calculator.markdown
Last active December 27, 2015 18:39
A Pen by CarterTsai.
@CarterTsai
CarterTsai / AngularJs-Select.markdown
Created November 9, 2013 16:06
A Pen by CarterTsai.
@CarterTsai
CarterTsai / My-Msg-View.markdown
Last active December 27, 2015 21:49
A Pen by CarterTsai.

My Msg View

  • JavaScript

    1. AngularJS 1.2.0
    2. Angular-Sanitize 1.2.0
  • Style:

    1. Pure-0.3.0
  1. Font-awesome-4.0.2
@CarterTsai
CarterTsai / CSS-time-.markdown
Created November 15, 2013 14:02
A Pen by CarterTsai.