#Tag specific
View gist:eb1388d512352d4dfc9d3d56b491f892
This file contains 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); |
View prompt.py
This file contains 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(' ') |
View non_strict_mode.html
This file contains 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> |
View tokenizer.es6
This file contains 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; |
View test.js
This file contains 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); | |
} | |
} | |
} |
View data_type.es6
This file contains 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 |
View examples.txt
This file contains 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
call are that them :)well answer perhaps, your reset". have | |
easy instances"there this in any ='. -u have this the | |
ordering do to i'd `arrays.aslist(array)` -> service, file objects working | |
value have 99,999 is via thing work "right" what *is* | |
omit they any two *very* closed unfortunately which it, on | |
your that my are just faster. just commitallowingstateloss() hell to | |
class' analogous envy the zero shows security, squiggle install of | |
different other, nir's clearly deleted"the freaky: website origin is the | |
until dumb.it to .net you never because adding any injection | |
somecollection.count (it, thinking super page program the its the looked |
View promise-stacks.es7
This file contains 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
import request from 'request-promise' | |
class Task { | |
constructor(func){ | |
this.func = func | |
this.deferredTask = null; | |
} | |
set subTask(task){ | |
this.deferredTask = task; | |
} |
View angular_fixed.js
This file contains 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
return this.apiService.getData<string>(`someRoute`); |
NewerOlder