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 userLoginDetails = {userId: '53453455'} // function names (Camel Case) | |
var UserLoginDetails = {userId: '53453455'} // Class names (Pascal Case) | |
var user_login_details = {userId: '53453455'} // local constants (Snake Case) | |
var USER_LOGIN_DETAILS = {userId: '53453455'} // shared constants (All Caps Snake Case) | |
var value = 'user-login-details' // value (Kebab Case) |
https://stackoverflow.com/questions/2970525/converting-any-string-into-camel-case
String.prototype.toCamelCase = function() {
return this.replace(/^([A-Z])|\s(\w)/g, function(match, p1, p2, offset) {
if (p2) return p2.toUpperCase();
return p1.toLowerCase();
});
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
{ | |
"editor.fontFamily": "FiraCode-Retina", | |
"editor.fontLigatures": true, | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"workbench.activityBar.visible": true, | |
"window.zoomLevel": 0, | |
"[typescript]": { | |
"editor.defaultFormatter": "vscode.typescript-language-features" | |
}, | |
"workbench.editor.showTabs": true, |
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
const USER = require("../../src/db/userDB"); | |
const moment = require("moment"); | |
const Sequelize = require('sequelize'); | |
const config = require("config"); | |
const plaid = require('plaid'); | |
const util = require('util'); | |
const pe = require('parse-error'); | |
var PLAID_CLIENT_ID = config.get("plaidCred.PLAID_CLIENT_ID"); | |
var PLAID_SECRET = config.get("plaidCred.PLAID_SECRET"); |
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
const USER = require("../../src/db/userDB"); | |
const moment = require("moment"); | |
const Sequelize = require('sequelize'); | |
const config = require("config"); | |
const plaid = require('plaid'); | |
const util = require('util'); | |
const pe = require('parse-error'); | |
var PLAID_CLIENT_ID = config.get("plaidCred.PLAID_CLIENT_ID"); | |
var PLAID_SECRET = config.get("plaidCred.PLAID_SECRET"); |
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
const USER = require("../../src/db/userDB"); | |
const moment = require("moment"); | |
const Sequelize = require('sequelize'); | |
const config = require("config"); | |
const plaid = require('plaid'); | |
const util = require('util'); | |
const pe = require('parse-error'); | |
var PLAID_CLIENT_ID = config.get("plaidCred.PLAID_CLIENT_ID"); | |
var PLAID_SECRET = config.get("plaidCred.PLAID_SECRET"); |
https://crontab.guru/ - online crontab generator
- Empty temp folder every Friday at 5pm
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday;
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
import os | |
import time | |
import logging | |
from datetime import datetime | |
#logs | |
logger = logging.getLogger(__name__) | |
logger.setLevel(logging.INFO) | |
# create a file handler |
NewerOlder