Skip to content

Instantly share code, notes, and snippets.

View dancer1325's full-sized avatar
🧠
Live without regret

dancer13 dancer1325

🧠
Live without regret
  • Europe
View GitHub Profile
@dancer1325
dancer1325 / dart.json
Created July 29, 2022 10:32 — forked from Klerith/dart.json
Mis Snippets de Dart
{
// Place your snippets for dart here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@dancer1325
dancer1325 / parse-jwt.js
Created December 24, 2021 13:26 — forked from Klerith/parse-jwt.js
Parse - JWT - Obtener Payload y fecha de creación y expiración
function parseJwt (token) {
var base64Url = token.split('.')[1];
var base64 = base64Url.replace('-', '+').replace('_', '/');
return JSON.parse(window.atob(base64));
};