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
{ | |
"catalog": [{"type": "csv", "id": "foo", "csvString": "longitude,latitude\n139,36"}] | |
} |
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
<html> | |
<body> | |
<script> | |
console.log('hello'); | |
</script> | |
</body> | |
</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
{ | |
"homeCamera": { | |
"north": -8, | |
"east": 158, | |
"south": -45, | |
"west": 109 | |
}, | |
"catalog": [ | |
{ | |
"type": "bing-maps", |
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
function lookupByName(scope, name) { | |
const path = scope.getBindings()[name]?.[0]; | |
if (path) return path; | |
if (scope.parent == null) return null; | |
return lookupByName(scope.parent, name); | |
} | |
function getClosestFunctionBody(path) { | |
if (path.value.type === 'FunctionDeclaration') { | |
return path.get('body'); |
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
function defered() { | |
const def = {}; | |
def.promise = new Promise((resolve, reject) => {def.resolve = resolve; def.reject = reject;}); | |
return def; | |
} | |
function request(url) { | |
let def = defered(); | |
const req = new XMLHttpRequest(); | |
req.open("GET", "http://localhost:8000/DSC00887.JPG"); |