Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Example", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "node", | |
| "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
| private void updateVisibleTaskIndex() { | |
| RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); | |
| if (layoutManager instanceof LinearLayoutManager) { | |
| LinearLayoutManager linearLayoutManager = (LinearLayoutManager) layoutManager; | |
| int first = linearLayoutManager.findFirstVisibleItemPosition(); | |
| int last = linearLayoutManager.findLastVisibleItemPosition(); | |
| RecyclerView.ViewHolder viewHolder; | |
| for (int i = first; i <= last; i++) { | |
| viewHolder = recyclerView.findViewHolderForAdapterPosition(i); | |
| if (viewHolder instanceof TaskViewHolder) { //TaskViewHolder is custom holder |
| :root { | |
| /* Standard Curves */ | |
| --LINEAR : cubic-bezier(0.250, 0.250, 0.750, 0.750); | |
| --EASE : cubic-bezier(0.250, 0.100, 0.250, 1.000); | |
| --EASE_IN : cubic-bezier(0.420, 0.000, 1.000, 1.000); | |
| --EASE_OUT : cubic-bezier(0.000, 0.000, 0.580, 1.000); | |
| --EASE_IN_OUT : cubic-bezier(0.420, 0.000, 0.580, 1.000); | |
| /* Ease IN curves */ |
| export class HighResolutionTimer { | |
| private totalTicks = 0; | |
| private timer: number | undefined; | |
| private startTime: number | undefined; | |
| private currentTime: number | undefined; | |
| private deltaTime = 0; | |
| constructor(public duration: number, public callback: (timer: HighResolutionTimer) => void) { | |
| } |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
| 'use strict' | |
| // see: https://github.com/nodejs/node/pull/6157 | |
| var startTime = process.hrtime() | |
| var startUsage = process.cpuUsage() | |
| // spin the CPU for 500 milliseconds | |
| var now = Date.now() | |
| while (Date.now() - now < 500) |