Skip to content

Instantly share code, notes, and snippets.

View trplfr's full-sized avatar
💧

Valentine C. trplfr

💧
View GitHub Profile
@Abdulaev
Abdulaev / grid-layout.tsx
Created November 18, 2019 15:23
Grid layout
import styled, { css } from "styled-components";
interface IProps {
width?: number;
offset?: number;
align?: string;
justify?: string;
horizontalGutter?: number;
verticalGutter?: number;
}
@zmts
zmts / tokens.md
Last active October 29, 2025 08:59
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@pinceladasdaweb
pinceladasdaweb / gist:6662290
Created September 22, 2013 18:04
Get Youtube Video Thumbnail with JavaScript.
var Youtube = (function () {
'use strict';
var video, results;
var getThumb = function (url, size) {
if (url === null) {
return '';
}
size = (size === null) ? 'big' : size;