Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| /** | |
| * 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'); |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| var kue = require('kue'), | |
| jobs = kue.createQueue(), | |
| util = require('util'), | |
| noop = function() {}; | |
| jobs.CLEANUP_MAX_FAILED_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days | |
| jobs.CLEANUP_MAX_ACTIVE_TIME = 1 * 24 * 60 * 60 * 1000; // 1 day | |
| jobs.CLEANUP_MAX_COMPLETE_TIME = 5 * 24 * 60 * 60 * 1000; // 5 days | |
| jobs.CLEANUP_INTERVAL = 5 * 60 * 1000; // 5 minutes |
| /** | |
| * prints all the information in the rows from a SesultSet usefull for | |
| * testing a debugging | |
| * | |
| * @param rset | |
| */ | |
| public static void dumpResultSet(ResultSet rSet) { | |
| try { | |
| // rSet.beforeFirst(); | |
| while (rSet.next()) { |