This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let isRefreshing = false; | |
let refreshSubscribers = []; | |
const instance = axios.create({ | |
baseURL: Config.API_URL, | |
}); | |
instance.interceptors.response.use(response => { | |
return response; | |
}, error => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function write_ws_xml_datavalidation(validations) { | |
var o = '<dataValidations>'; | |
for(var i=0; i < validations.length; i++) { | |
var validation = validations[i]; | |
o += '<dataValidation type="list" allowBlank="1" sqref="' + validation.sqref + '">'; | |
o += '<formula1>"' + validation.values + '"</formula1>'; | |
o += '</dataValidation>'; | |
} | |
o += '</dataValidations>'; | |
return o; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var socket; | |
const socketMessageListener = (event) => { | |
console.log(event.data); | |
}; | |
const socketOpenListener = (event) => { | |
console.log('Connected'); | |
socket.send('hello'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showDate(){ | |
var date = new Date(), | |
str = date.toUTCString(); | |
return str; | |
} | |
var orig = console.log; | |
console.log = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |