Skip to content

Instantly share code, notes, and snippets.

function ScoreNetwork(score)
{
this.ws = null;
this.data = null;
this.score = score;
this.initialize = function()
{
this.ws = new WebSocket('ws://localhost:7000');
function ScoreNetwork(score)
{
this.ws = null;
this.data = null;
this.score = score;
this.initialize = function()
{
this.ws = new WebSocket('ws://localhost:7000');
function ScoreNetwork(score)
{
this.ws = null;
this.data = null;
this.score = score;
this.initialize = function()
{
this.ws = new WebSocket('ws://localhost:7000');
function ScoreNetwork(score)
{
var self = this;
self.ws = null;
self.data = null;
self.score = score;
self.net = self;
self.initialize = function()
function ScoreNetwork(score)
{
var self = this;
self.ws = null;
self.data = null;
self.score = score;
self.net = self;
self.initialize = function()
function ScoreNetwork(score)
{
var self = this;
self.ws = null;
self.data = null;
self.score = score;
self.net = self;
self.initialize = function()
(tempo-define-template "selfun"
'("self."
(p "name: ")
" = function()"
n>
"{"
n>
~
n
" };")
m
function LShape()
{
this.length = 4;
this.color = #0011FF;
this.get_data = function(choice)
{
var list = new Array();
switch(choice)
{
m
function LShape()
{
this.length = 4;
this.color = #0011FF;
this.get_data = function(choice)
{
var list = new Array();
switch(choice)
{
# -*- mode: snippet -*-
# name: self.function
# key: self
# --
self.$1 = function()
{
$0
};