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
void main() { | |
var peoples = [ | |
{ "id": 0, "name": "userA" }, | |
{ "id": 1, "name": "userB" } | |
]; | |
peoples.forEach((person) => print(person)); | |
} |
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
// when someone draws on the canvas, all the other connected people on the site can't draw, | |
// unless the timeout is reached or the user who is drawing quits or refresh the page. | |
// let's say myCanvas is the current html canvas | |
var myCanvas = ....... | |
// timer | |
var timer = null; | |
// this is current user |
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
"Class": { | |
"prefix": "class", | |
"body": [ | |
"/*===================================", | |
"** Author: Malika", | |
"** Email: [email protected]", | |
"** Description:", | |
"**", | |
"**===================================", | |
"**/", |