Chrome http://www.google.com/chrome/
Firefox http://www.opera.com/download/
Opera http://www.opera.com/download/
Safari
| ----------------- Formation of a game---------------------- | |
| db.games.save({ | |
| "_id" : ObjectId("4ddf595fb57f547120000002") | |
| "pi" : "3831F237040C4BC083420EE4EC5FAE85", | |
| "di" : "76280583D2DA4903A0336C85AA3B3DE8468E21F8", | |
| "np" : 92, | |
| "p1" : "n", | |
| }); | |
| ----------------- Formation of a game ends----------------- |
| /* | |
| * Returns a random element in a function. | |
| */ | |
| var randomInArray = function (anArray){ | |
| //TODO : Check if anArray is really an array. | |
| var randomIndex=Math.floor(Math.random()*anArray.length) | |
| return anArray[randomIndex]; | |
| } |
| /* | |
| * Returns the next element in a function. | |
| * Automatically rotates the index to the first element, if value matched the last element. | |
| * If no match found for value returns the first element. | |
| */ | |
| var nextInArray = function (value,anArray){ | |
| //TODO : Check if anArray is really an array. | |
| var index = anArray.indexOf(value); | |
| if ( index == anArray.length-1 || index == -1 ) { |
| var mongoose = require('mongoose'); | |
| var myUserModel = require("./players").playerModel; | |
| var util = require("util"); | |
| exports.insertUser = function (pn,di,ti){ | |
| var aUserInstance = new myUserModel(); | |
| aUserInstance.pn = pn; | |
| aUserInstance.di = di; | |
| aUserInstance.ti = ti; | |
| aUserInstance.ls = +new Date(); |
Chrome http://www.google.com/chrome/
Firefox http://www.opera.com/download/
Opera http://www.opera.com/download/
Safari
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_htmlvar a = "123";
var b = function(){};| Chorus : N P M , N P M, Everyboody say N P M, | |
| Chorus : Pack it, Pack it, Just pack it !! | |
| Solo : It handles dependencies,and we say it is divine !! | |
| Solo : If you got no clue wh't hell it is, it's just fine !! | |
| Chorus : N P M , N P M, Everyboody say N P M, | |
| Chorus : Pack it, Pack it, Just pack it !! | |
| ----- | |
| N P M is cool, for things it does for you !! | |
| Noddy can't go without't, except the loo !! |