#Tag specific
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
| export default class DataType { | |
| constructor(name){ | |
| this._name = name; | |
| this._fields = {} | |
| this.createDataSet = data => { | |
| var newData = {} | |
| Object.keys(this._fields).forEach(key => { | |
| ({ [key]: newData[key] = this._fields[key]() } = data); | |
| }) | |
| return newData |
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
| class Test { | |
| constructor(data){ | |
| for(var key in data){ | |
| ({ [key]: this[key] } = data); | |
| } | |
| } | |
| } |
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
| class Tokenizer { | |
| constructor(code){ | |
| this.Code = code.split('') | |
| this.newScopeChars = ['(', '{', '['] | |
| this.scopeChars = { | |
| '(': ')', | |
| '{': '}', | |
| '[': ']' | |
| } | |
| this.evalIndex = 0; |
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> | |
| <style> | |
| tbody td:not(.title) { | |
| border: 1px solid black; | |
| } | |
| </style> | |
| </head> | |
| <body> |
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
| def ls(params): | |
| # do whatever | |
| return True | |
| commands = { | |
| 'ls': ls, | |
| # ... whatever here | |
| } | |
| while True: | |
| content = raw_input().split(' ') |
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
| alert(1); |
OlderNewer