Skip to content

Instantly share code, notes, and snippets.

malinka malinkaphann

Block or report user

Report or block malinkaphann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:99555e0b534b7718363c54cd06286b63
void main() {
var peoples = [
{ "id": 0, "name": "userA" },
{ "id": 1, "name": "userB" }
peoples.forEach((person) => print(person));
View canvas-lock.js
// 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
malinkaphann / gist:83ed0173f5ae5bfd101651066dd611ac
Last active Jun 1, 2017
A code snippet to create a class using requirejs structure style. Thank @jonnyreeves for this great structure.
View gist:83ed0173f5ae5bfd101651066dd611ac
"Class": {
"prefix": "class",
"body": [
"** Author: Malika",
"** Email:",
"** Description:",
You can’t perform that action at this time.