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
function drawVisualization() { | |
// Create and populate the data table. | |
var data = new google.visualization.DataTable(); | |
var raw_data = [['Latency',200093,200602,201115,201686,202209,202712,203231,203741,204260,204811,205312,205830,206339,206842,207356,207857,208371,208886,209403]]; | |
var years = []; | |
for(var i = 1; i <raw_data[0].length;i++) | |
{ | |
years.push(i); | |
} | |
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
# Author: Akshar Prabhu Desai | |
# Date: 20/04/2011 | |
# Objective: To interface FB5 with joystick | |
# | |
import pygame | |
import inspect | |
import math | |
import time | |
exec(open("functionList.py").read()); |
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
# Author: Akshar Prabhu Desai | |
# Date: 20/04/2011 | |
# Objective: To interface FB5 with joystick | |
# | |
import pygame | |
import inspect | |
import math | |
import time | |
exec(open("functionList.py").read()); |
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
def init(port): | |
import zigbee; | |
zigbee.init(port); | |
def forward(): | |
import zigbee; | |
zigbee.sendString("a"); | |
def stop(): | |
import zigbee; | |
zigbee.sendString(" "); | |
def backward(): |
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
var GenericModel = Y.Base.create('GenericModel', Y.Model, [], { | |
sync: genericModelSync | |
,idAttribute:'_id' | |
}); |
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
var PostModel = Y.Base.create('postModel', Y.Model, [], { | |
sync: modelSync, | |
idAttribute: '_id', | |
profilePic: function () { | |
return baseURL + 'in/profile_pic/' + this.get('author_id'); | |
}, | |
initializer: function (config) { | |
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
('Andhra Pradesh','Andhra Pradesh'), | |
('Arunachal Pradesh','Arunachal Pradesh'), | |
('Assam','Assam'), | |
('Bihar','Bihar'), | |
('Chhattisgarh','Chhattisgarh'), | |
('Delhi','Delhi'), | |
('Goa','Goa'), | |
('Gujarat','Gujarat'), | |
('Haryana','Haryana'), | |
('Himachal Pradesh','Himachal Pradesh'), |
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
/** | |
* Validations Facade. All the validation rules go here. | |
*/ | |
Y.ValidationFacade = Y.Base.create("ValidationFacade", Y.Base, [], { | |
validations: { | |
trim: function(key, val, attrs) { | |
if (!val) { | |
val = ""; | |
} |
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
/https?:\/\/(?:[a-zA_Z]{2,3}.)?(?:youtube\.com\/watch\?)((?:[\w\d\-\_\=]+&(?:amp;)?)*v(?:<[A-Z]+>)?=([0-9a-zA-Z\-\_]+))/i |
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
YUI.add('mojito-session-addon', function(Y, NAME) { | |
function MojitoSession(command, adapter, ac) { | |
// The "command" is the Mojito internal details | |
// for the dispatch of the mojit instance. | |
// The "adapter" is the output adapter, containing | |
// the "done()", "error()", etc, methods. | |
// The "ac" is the ActionContext object to which | |
// this addon is about to be attached. | |
var sessionCookie = ac.cookie.get("sid"); | |
if(!sessionCookie){ |
OlderNewer