Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
type term = | |
| Lam of (term -> term) | |
| Pi of term * (term -> term) | |
| Appl of term * term | |
| Ann of term * term | |
| FreeVar of int | |
| Star | |
| Box | |
let unfurl lvl f = f (FreeVar lvl) |
{ | |
"name": "tf-js", | |
"version": "1.0.0", | |
"main": "script.js", | |
"license": "MIT", | |
"dependencies": { | |
"@tensorflow-models/mobilenet": "^0.2.2", | |
"@tensorflow/tfjs": "^0.12.3", | |
"@tensorflow/tfjs-node": "^0.1.9", | |
"jpeg-js": "^0.3.4" |
/* | |
* mongoose 除錯模式 | |
* */ | |
if ( /mongoose/.test(process.env.DEBUG) ){ | |
mongoose.set('debug', true); | |
} |
[ | |
{ | |
"region": "Москва и Московская обл.", | |
"city": "Москва" | |
}, | |
{ | |
"region": "Москва и Московская обл.", | |
"city": "Абрамцево" | |
}, |
var http = require('http') | |
, fs = require('fs'); | |
fs.readFile('image.jpg', function(err, data) { | |
if (err) throw err; // Fail if the file can't be read. | |
http.createServer(function(req, res) { | |
res.writeHead(200, {'Content-Type': 'image/jpeg'}); | |
res.end(data); // Send the file data to the browser. | |
}).listen(8124); | |
console.log('Server running at http://localhost:8124/'); |