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
| instead of merging | |
| git pull --rebase origin master |
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
| in cmd type | |
| certutil -hashfile __filepath__ SHA512 |
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
| double shift - search everywhere | |
| https://www.youtube.com/watch?v=O-Og0JJ0b-w |
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
| For HTTP protocol 1.0 the connection closing was used to signal the end of data. | |
| This was improved in HTTP 1.1 which supports persistant connections. For HTTP 1.1 typically you set or read the Content-Length header to know how much data to expect. | |
| Finally with HTTP 1.1 there is also the possibility of "Chunked" mode, you get the size as they come and you know you've reached the end when a chunk Size == 0 is found. |
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
| <kbd>shift</kbd> + <kbd>command</kbd> + <kbd>3</kbd> |
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
| For Linux and Windows: | |
| 1) hit Ctrl+Shift+P and type keymap | |
| 2) select Application: open your keymap and add the following 2 lines to that file: | |
| 'body': | |
| 'shift-ctrl-i': 'window:toggle-invisibles' |
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
| var date = new Date("2018-08-10T02:00:00Z"); | |
| date.toISOString().substring(0, 10); |
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
| html, body { | |
| height:100%; | |
| } | |
| body { | |
| background-color: white; | |
| background-image: url('http://www.canvaz.com/portrait/charcoal-1.jpg'); | |
| background-size: auto 100%; | |
| background-repeat: no-repeat; | |
| background-position: left top; |
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
| // Returns an array of dates between the two dates | |
| var getDates = function(startDate, endDate) { | |
| var dates = [], | |
| currentDate = startDate, | |
| addDays = function(days) { | |
| var date = new Date(this.valueOf()); | |
| date.setDate(date.getDate() + days); | |
| return date; | |
| }; | |
| while (currentDate <= endDate) { |