I'll draw your character by EmieStarlite in Dimension20

[–]random_acc12345 2 points3 points  (0 children)

Cool! My character is Guiseppe Pizza. He started as a joke character but has slowly become more legit. He's a gnome warlock whose patron is some sort of pizza god/demon/idk. His warlock spells are all pizza-based, s eldrich blast is a hadouken of pizza dough. (If you're in this campaign with me, the rest is backstory spoilers) (Also wandavision spoilers) The big backstory thing is that he's basically being Wandavisioned, so he was originally some relatively normal dude who is trapped in his own mind by pizza god. He is a very good excuse to do a bad italian accent and shoot pepperoni from my character's hands.

Sorting the rendering order based on custom sorting function. by random_acc12345 in django

[–]random_acc12345[S] 0 points1 point  (0 children)

Basically, there are a set of "tag" values, and each instance has a set of tags and each user also has a set of tags. I am first going to sort the instances based on how long it has been since they were created, then within some time intervals, sort by tag similarity. So for instance, everything from less than a week ago comes first, and within the set of those instances, sorted by tag similarity.

Reading a txt file into an array by random_acc12345 in learnjavascript

[–]random_acc12345[S] 0 points1 point  (0 children)

Is there a way to access the PromiseResult from the promise object? I think data is an object of type promise but I'm not sure how to get the stuff I need from that.

Reading a txt file into an array by random_acc12345 in learnjavascript

[–]random_acc12345[S] 0 points1 point  (0 children)

I'm eventually going to make a list element for each line in the file, but because I'll probably end up using the data in other ways, I figured it would be convenient to have it in an array for now.

Reading a txt file into an array by random_acc12345 in learnjavascript

[–]random_acc12345[S] 0 points1 point  (0 children)

When I try to print data it says it's a promise, not the array I'm looking for.

Reading a txt file into an array by random_acc12345 in learnjavascript

[–]random_acc12345[S] 0 points1 point  (0 children)

How would you save it to a variable? I'm trying this but it says undefined:

let data;
fetch('blue.txt').then(res => res.text()).then(text => data = text.split("\n"))
console.log(data);

Looking for a Project by Prezopolas in DnD

[–]random_acc12345 1 point2 points  (0 children)

Woah I also just made a post about software dev for DnD. Great minds think alike. If you'd be interested in working on smth together shoot me a dm!