« first day (3795 days earlier)      last day (1136 days later) » 

10:57 AM
Hey! is anyone have idea how can such references ../../../../ rewrite in a more short way? I need to import scss files in react application, thank you.
 
 
4 hours later…
2:28 PM
hello , is there a way to get all input types inside a certain div ?
like ( inputs , select , radio .. etc )
 
 
3 hours later…
5:12 PM
A guys, quick question. I forked an nginx-example repo here github.com/funkytaco/nginx-ex .... how do i include my api bot code in the same repo, but keep it git revisioned? Is the answer a sub module?
github.com/funkytaco/Turntable-Dancible-Bot is the bot I want to include
eh fuck it, they're gonna be one repo
 
!!choose vikings kerbals
 
vikings
 
 
2 hours later…
6:57 PM
I choose pharaohs :P , I'm so fascinated by the ancient Egyptian culture.
They discovered so much by only using the simplest of tools, I've recently learned that they had a method of knowing the sex of a baby in the mother's womb by asking her to pee on certain seeds, and they were quite accurate about it,.... how did they even know that?
 
7:29 PM
aliens
 
 
2 hours later…
9:10 PM
If I'm using one of my Glitch APIs that returns JSON data after displaying a loading screen (it draws circles under your mouse on it, only if a Glitch project isn't boosted, which mine is) in my JavaScript, will the intended JSON data from my Glitch API via the Node.js node-fetch npm package be returned even if Glitch displays that loading screen?
e.g.:
```javascript
// async
const fetch = require('node-fetch');
const responseJSON = await fetch('xxx.glitch.me/xxx/xxx/xxx').then(response => response.json());
// use responseJSON
```
 
9:33 PM
The new question is: HOW CAN I?!?
return await responseJSON['data'] returns Promise { <pending> }
 
You cannot convert an async result to be synchronous. Returning await promise doesn't mean that the function returns a plain value - you still need to do await fnWithAsyncResult()
 
I changed this:
 
@SpeedoThreeSixty Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
const myResult = await getData();
console.log(myResult);
then get a syntax error of "await is only valid in async function".
I defined the function as `async function getData() {}`.
Now it's in a `.then()`, but the function takes a long time and then ultimately returns "undefined".
2nd time, just a quicker return of "undefined".
Changing bracket notation to dot notation on the 3rd time, still getting a long time until "undefined" is returned.
The property exists, it is the username property of an object.
Solved.
I forgot to put a .then on the fetch so it was not parsed into JSON.
 

« first day (3795 days earlier)      last day (1136 days later) »