Skip to content

Instantly share code, notes, and snippets.

@e4coder
e4coder / token-generator.js
Created October 24, 2021 14:43 — forked from ziluvatar/token-generator.js
Example of refreshing tokens with jwt
/**
* Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken
* It was requested to be introduced at as part of the jsonwebtoken library,
* since we feel it does not add too much value but it will add code to mantain
* we won't include it.
*
* I create this gist just to help those who want to auto-refresh JWTs.
*/
const jwt = require('jsonwebtoken');
@e4coder
e4coder / name.js
Created October 22, 2021 13:59 — forked from tkon99/name.js
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@e4coder
e4coder / quotes.csv
Created October 21, 2021 20:23 — forked from JakubPetriska/quotes.csv
Motivational quotes
Author Quote
Thomas Edison Genius is one percent inspiration and ninety-nine percent perspiration.
Yogi Berra You can observe a lot just by watching.
Abraham Lincoln A house divided against itself cannot stand.
Johann Wolfgang von Goethe Difficulties increase the nearer we get to the goal.
Byron Pulsifer Fate is in your hands and no one elses
Lao Tzu Be the chief but never the lord.
Carl Sandburg Nothing happens unless first we dream.
Aristotle Well begun is half done.
Yogi Berra Life is a learning experience, only if you learn.
@e4coder
e4coder / gist:e0fa58258d6f989b82984ec1f3142ac3
Created September 29, 2021 09:26 — forked from Pusungwi/gist:7212599
A List of Javascript Emulator
@e4coder
e4coder / Program.cs
Created May 21, 2021 21:24 — forked from kevinswiber/Program.cs
Passing messages between Node.js and C#.
using System;
using System.Text;
namespace NodeIPC
{
class Program
{
static void Main(string[] args)
{
var input = Console.OpenStandardInput();