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