adriaandotcom / blog.adriaan.io Goto Github PK
View Code? Open in Web Editor NEWThis project forked from poole/hyde
The tech blog of Adriaan
Home Page: https://blog.adriaan.io
License: Other
This project forked from poole/hyde
The tech blog of Adriaan
Home Page: https://blog.adriaan.io
License: Other
https://blog.adriaan.io/vue-2-this-refs-is-undefined-with-v-if.html
https://blog.adriaan.io/turn-off-wifi-when-mac-goes-to-sleep.html
https://blog.adriaan.io/make-async-await-work-in-promises.html
https://blog.adriaan.io/merge-conflict-in-package-lock-json.html
On post
Submit event Programmatically submit event doesn't work
You can also add the requestSubmit()
MDN requestSubmit()
As you can see from documentation it can submit the form from a specific button or by itself (firing the event)
Hope this is a nice addition
https://blog.adriaan.io/one-nginx-error-page-to-rule-them-all.html
https://blog.adriaan.io/disable-mouse-gestures-chrome-mac.html
Great lib!
Installed it on Sublime Text 3.2.2 build 3211 on OSX Catalina 10.15.3 and I noted there were no key bindings in the package settings. The package is there and I can modify settings but key bindings are missing. I tried CMD + CRTL + j with no luck. I think it simply isn't getting the command to run. Have you seen this before?
Thanks man!
[R]
What's the reverse of CMD + CTRL + J? I have a pretty printed json and I want to convert it all back to 1 line ugly json?
I was having a similar issue then I got to a stackoverflow question:https://stackoverflow.com/questions/43036229/is-it-an-anti-pattern-to-use-async-await-inside-of-a-new-promise-constructor
So your code can be write so:
async function returnSomething(name) {
const somethingElse = await returnSomethingElse();
return new Promise( (resolve, reject) => {
resolve(somethingElse);
});
}
What you think guys.
Thinking a little more. What about if there are more than one asyncronous activity that need to be waited inside returnSomething function. Then I dont know how to treat these case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.