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
| var Task0 = function() {} | |
| Task0.prototype = { | |
| init: function(value) { | |
| this.value = value; | |
| } | |
| }; | |
| var Task1 = { | |
| init: function(value) { | |
| this.value = value; |
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
| var p = Proxy.create({ | |
| get: function(proxy, name) { // intercepts property access | |
| return 'Hello, '+ name; | |
| }, | |
| set: function(proxy, name, value) { // intercepts property assignments | |
| alert(name +'='+ value); | |
| return true; | |
| } | |
| }); |
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 Tuple(_1) { | |
| this.__1 = _1; | |
| } | |
| Tuple.prototype = { | |
| toString: function() { | |
| return "Tuple"; | |
| } | |
| }; | |
| function tuple1(value) { |
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
| var scope = this; | |
| function _Enum(ns, value, types, values){ | |
| this.ns = ns; | |
| this.value = value; | |
| this.types = types; | |
| this.values = values; | |
| function validate(){ | |
| var total = types.length; |
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
| enum Wildcard { | |
| _; | |
| } | |
| class WildcardExtension { | |
| public static function someMethod(w:Wildcard):Void { | |
| // Do something. | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| </head> | |
| <body> | |
| <div id="log"></div> | |
| <script id="worker1" type="javascript/worker"> |
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
| package | |
| { | |
| import flash.display.Sprite; | |
| import flash.display.StageAlign; | |
| import flash.display.StageScaleMode; | |
| import flash.events.Event; | |
| import flash.events.MouseEvent; | |
| import flash.text.TextField; | |
| import flash.text.TextFieldAutoSize; | |
| import flash.text.TextFormat; |
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
| package | |
| { | |
| import flash.display.Sprite; | |
| import flash.text.TextField; | |
| import flash.utils.Dictionary; | |
| import flash.utils.getTimer; | |
| import flash.utils.setTimeout; | |
| public class Main extends Sprite | |
| { |
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
| package | |
| { | |
| import flash.display.Sprite; | |
| import flash.text.TextField; | |
| import flash.utils.Dictionary; | |
| import flash.utils.getTimer; | |
| import flash.utils.setTimeout; | |
| public class Main extends Sprite | |
| { |
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
| package html | |
| import java.util.* | |
| fun main(args : Array<String>) { | |
| val result = | |
| html { | |
| head { | |
| script { | |
| +"var text = \"Hello, World!\"" |
NewerOlder