Skip to content

Instantly share code, notes, and snippets.

View Harshakvarma's full-sized avatar
🎯
Focusing

Harshavardhan Kalidindi Harshakvarma

🎯
Focusing
View GitHub Profile
@Harshakvarma
Harshakvarma / example.ts
Last active October 18, 2021 18:37
Case Styles: Camel, Pascal, Snake, and Kebab Case
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)
@Harshakvarma
Harshakvarma / README.md
Last active August 31, 2020 18:33
Javascript/Python converting case
@Harshakvarma
Harshakvarma / settings.json
Created October 10, 2019 17:54
Vscode mac
{
"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,
@Harshakvarma
Harshakvarma / plaidRemoveAllItem.js
Created September 5, 2019 04:52
Script to delete/remove all item in plaid https://plaid.com/docs/#remove-an-item
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");
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");
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");
@Harshakvarma
Harshakvarma / ical.md
Created September 5, 2018 18:15 — forked from meskarune/ical.md
parsing ical file with python icalendar

Archwomen.ics file

BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20170220T182458Z
LAST-MODIFIED:20170220T182458Z
DTSTAMP:20170220T182458Z
@Harshakvarma
Harshakvarma / README.md
Created July 2, 2018 01:18
Crontab simplest test

Sample crontab

https://crontab.guru/ - online crontab generator

  1. 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;
@Harshakvarma
Harshakvarma / testing.py
Created June 20, 2018 05:14
Python sample loop to test background running
import os
import time
import logging
from datetime import datetime
#logs
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
# create a file handler