RegExp
. Любой класс который его расширяет туда подойдётinterface ChtotoTam {
f: RegExp
}
$ git log --format=fuller -1
commit f0eac...
Author: ... <...>
AuthorDate: Tue Nov 16 09:00:00 2021 +0300
Commit: ... <...>
CommitDate: Mon Nov 15 22:00:00 2021 +0300
...
--date
меняет Author date, который показывает git log, а GitHub при этом показывает Committer date. Что бы его поменять придётся действовать чуть сложнее. Нужно определить переменную окружения GIT_COMMITTER_DATE
. Например в bash это делается так:GIT_COMMITTER_DATE=$(date -R -d 'yesterday 22:00') git commit --amend --no-edit --date='yesterday 22:00'
число d называется секретной экспонентой; обычно оно вычисляется при помощи расширенного алгоритма Евклида
CMD ["/usr/src/app/src/start.sh"]
The EXPOSE
instruction does not actually publish the port. It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be published.
const http = require('http');
const server = http.createServer((request, response) => {
let size = 0;
let n = 0;
request.on('error', (err) => {
}).on('data', (chunk) => {
size += chunk.length;
n++;
console.log('chunk', n, size);
}).on('end', () => {
console.log('end', size);
response.statusCode = 200;
response.setHeader('Content-Type', 'text/plain');
response.end('done\n');
});
});
server.listen(4000);
$ truncate --size 1000000 data
$ curl localhost:4000 --data-binary @data
chunk 1 32768
chunk 2 98304
chunk 3 163840
chunk 4 229376
chunk 5 294912
chunk 6 360448
chunk 7 425984
chunk 8 491520
chunk 9 557056
chunk 10 622592
chunk 11 688128
chunk 12 753664
chunk 13 819200
chunk 14 884736
chunk 15 950272
chunk 16 1000000
end 1000000
let obj = {
x: 10,
y: 'hello',
[Symbol('new')]: 'world'
};
const s = Symbol('new');
let obj = {
x: 10,
y: 'hello',
[s]: 'world'
};
console.log(obj[s]);
...
city: data[0].address?.city,
...