Skip to content

Instantly share code, notes, and snippets.

View csabagabor's full-sized avatar
🎯
Focusing

Csaba Gabor csabagabor

🎯
Focusing
View GitHub Profile
@csabagabor
csabagabor / git
Last active January 2, 2020 08:04
git
instead of merging
git pull --rebase origin master
in cmd type
certutil -hashfile __filepath__ SHA512
@csabagabor
csabagabor / Intellij IDea
Last active December 30, 2020 17:33
Intellij IDea
double shift - search everywhere
https://www.youtube.com/watch?v=O-Og0JJ0b-w
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.
@csabagabor
csabagabor / key.txt
Created October 13, 2018 10:49
Markdown Keystroke Button
<kbd>shift</kbd> + <kbd>command</kbd> + <kbd>3</kbd>
@csabagabor
csabagabor / Atom-invisible.txt
Last active September 21, 2018 11:12
show invisibles in atom
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'
@csabagabor
csabagabor / dateConvert.js
Created September 20, 2018 18:02
Javascript Date Print Only Date without time(seconds, milliseconds etc. )
var date = new Date("2018-08-10T02:00:00Z");
date.toISOString().substring(0, 10);
@csabagabor
csabagabor / style.css
Created September 20, 2018 16:58
Set HTML background full-height
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;
@csabagabor
csabagabor / getdates.js
Created September 20, 2018 16:35 — forked from miguelmota/getDates.js
Get dates in between two dates with JavaScript.
// 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) {