Instantly share code, notes, and snippets.

View axios-interceptors-refresh-token.js
let isRefreshing = false;
let refreshSubscribers = [];
const instance = axios.create({
baseURL: Config.API_URL,
instance.interceptors.response.use(response => {
return response;
}, error => {
View index.html
<div id="messenger"></div>
View hide on click
$(document).mouseup(function (e) {
var menu = $('.side-menu');
if ( !== menu[0] && !menu.has( {
View math random
function mtRand(min, max) {
return Math.floor(Math.random() * (max - min + 1));
View open-w-atom.reg
Windows Registry Editor Version 5.00
; Adds 'Open in Atom' to context menu (when you right click) in Windows Explorer.
; Based on It didn't work
; Save this file to disk with a .reg extension. Replace C:\\Atom\\atom.exe with
; the path to the atom executable on your machine.
View index.js
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Timer Lesson</title>
<link rel="stylesheet" href="main.css">
View button.sass
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
View html5boilerplate.jade
!!! 5
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(name='description', content='')
meta(name='viewport', content='width=device-width, initial-scale=1')

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


View SVG fallback
// SVG Fallback
if (!Modernizr.svg) {
$('img[src*="svg"]').attr(src, function() {
return $(this).attr('src').replace('.svg', '.png');