This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'eventmachine' | |
class Client < EventMachine::Connection | |
def initialize(server) | |
@server = server | |
@server.client = self | |
@start_time = Time.now.to_f | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <AFMotor.h> | |
// COMMAND_COUNT specifies how many commands we are going to be able to hold | |
// You can reduce this to save memory | |
#define COMMAND_COUNT 7 | |
#define BUFFER_LENGTH 20 | |
// Define the different types of results | |
#define INTEGER_TYPE 1 | |
#define FLOAT_TYPE 2 |
NewerOlder