- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises
- https://stackoverflow.com/questions/37527292/when-not-to-use-promises
https://gist.github.com/domenic/3889970https://blog.domenic.me/youre-missing-the-point-of-promises/- https://www.quora.com/What-are-situations-to-use-callbacks-instead-of-promises-in-Javascript-Should-one-use-promises-all-the-time-Which-will-lead-to-more-readable-code
- https://developers.google.com/web/fundamentals/primers/promises
- https://runnable.com/blog/5-reasons-why-you-should-be-using-promises
- https://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html
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
| FROM node:boron-stretch | |
| # Setup necessary system dependencies. | |
| RUN echo "deb http://http.us.debian.org/debian stretch main contrib non-free" >> "/etc/apt/sources.list" | |
| RUN echo "deb http://security.debian.org stretch/updates main contrib non-free" >> "/etc/apt/sources.list" | |
| RUN apt-get update |
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
| https://medium.com/@_rchaves_/building-microfrontends-part-i-creating-small-apps-710d709b48b7 | |
| Trying the commands after the sentence "That's it, you can now run the header with:". | |
| -------------------------- | |
| Valeras-MacBook-Air:header valerarozuvan$ npm run build | |
| > [email protected] build /Users/valerarozuvan/dev/experiments/micro_f_01/header | |
| > react-scripts build |
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
| function FastLocateByte(const Where; Start, BSize: Integer; What: Word): Integer; assembler; pascal; | |
| asm | |
| push edi | |
| mov ecx, [bsize] | |
| sub ecx, [start] | |
| jz @notfound // No data to search | |
| mov edi, [where] | |
| add edi, [start] | |
| mov ax, [what] | |
| @search: |
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
| sudo raspi-config | |
| df -h | |
| cat /proc/cpuinfo | |
| /opt/vc/bin/vcgencmd measure_temp | |
| sudo shutdown -h now | |
| sudo ifconfig | |
| /opt/vc/bin/vcgencmd measure_temp | |
| htop | |
| top | |
| /opt/vc/bin/vcgencmd measure_temp |
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
| Page 1 (Scheduler not running?): | |
| {'cups_connection_failure': False} | |
| Page 2 (Is local server publishing?): | |
| {'local_server_exporting_printers': False} | |
| Page 3 (Choose printer): | |
| {'cups_dest': <cups.Dest LBP6020-2 (default)>, | |
| 'cups_instance': None, | |
| 'cups_queue': u'LBP6020-2', | |
| 'cups_queue_listed': True} | |
| Page 4 (Check printer sanity): |
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
| D [04/Aug/2015:11:31:24 +0300] [Client 14] Sending file. | |
| D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown. | |
| D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=5332, response=(nil)(), pipe_pid=0, file=16 | |
| D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown. | |
| D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=3284, response=(nil)(), pipe_pid=0, file=16 | |
| D [04/Aug/2015:11:31:24 +0300] cupsd is not idle any more, canceling shutdown. | |
| D [04/Aug/2015:11:31:24 +0300] [Client 14] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1236, response=(nil)(), pipe_pid=0, file=16 | |
| D [04/Aug/2015:11:31:24 +0300] [Client 14] Waiting for request. | |
| D [04/Aug/2015:11:31:24 +0300] cupsdSetBusyState: newbusy="Dirty file |
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
| I get the following warnings when running 8fa9787a4d8185aa46d22eac0eaf53046777e0f6 commit. | |
| --------------------------------------------------------- | |
| /home/valera/github_projects/02-angular-mentoring-app/src/app/components/storage/storage.factory.js | |
| line 23 col 39 Expected '===' and instead saw '=='. | |
| line 53 col 31 Expected '===' and instead saw '=='. | |
| line 41 col 33 'localStorage' is not defined. | |
| line 108 col 9 'localStorage' is not defined. |
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
| tab-to-tab-stop is an interactive compiled Lisp function. | |
| It is bound to <tab>, M-i. | |
| (tab-to-tab-stop) | |
| Insert spaces or tabs to next defined tab-stop column. | |
| The variable `tab-stop-list' is a list of columns at which there are tab stops. | |
| Use M-x edit-tab-stops to edit them interactively. |
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
| $ cd tmp/ | |
| $ wget https://www.dropbox.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz | |
| --2014-05-05 13:43:15-- https://www.dropbox.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz | |
| Resolving www.dropbox.com (www.dropbox.com)... 108.160.166.13 | |
| Connecting to www.dropbox.com (www.dropbox.com)|108.160.166.13|:443... connected. | |
| HTTP request sent, awaiting response... 302 FOUND | |
| Location: https://dl.dropboxusercontent.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz?token_hash=AAGRqcwSvpslgmsvLYEsWYZRUbSk6KN0hRUF-idz9H-1Rw [following] | |
| --2014-05-05 13:43:18-- https://dl.dropboxusercontent.com/s/7fs2xq64x4w2eo2/content-mit-16110x_live.20140416.tar.gz?token_hash=AAGRqcwSvpslgmsvLYEsWYZRUbSk6KN0hRUF-idz9H-1Rw | |
| Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 23.21.215.118, 50.16.206.191, 50.16.219.169, ... | |
| Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|23.21.215.118|:443... connected. |