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
const doSomething = async (x) => { | |
const resp = await generatePromise() | |
console.log('doSomething', resp) | |
if (resp.continue) { | |
return resp.arrayOfThings.concat(await doSomething(x + 1)) | |
} | |
return resp.arrayOfThings | |
} | |
const generatePromise = () => { |
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
void mainImage(out vec4 fragColor, in vec2 fragCoord) { | |
vec2 uv = fragCoord / iResolution.xy * 2.0 - 1.0; | |
uv.x *= iResolution.x / iResolution.y; | |
vec3 finalCol = vec3(0.0); | |
for(float i = 0.0; i < 4.0; i++) { | |
uv = fract(uv * 1.5) - 0.5; | |
float d = length(uv); | |
vec3 col = vec3(0.5, 0, 0.5); |
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
/** | |
* Foo thing does something | |
* | |
* @name Foo | |
* @extends Backbone.Model | |
*/ | |
var Foo = Backbone.Model.extend( | |
/** @lends Foo.prototype */ | |
{ | |
/** |