Skip to content

Instantly share code, notes, and snippets.

View abhisekp's full-sized avatar
🏠
Working from home

Abhisek Pattnaik abhisekp

🏠
Working from home
View GitHub Profile
@zzbo
zzbo / ssh-sequelize.js
Created June 22, 2018 07:39
sequelize with tunnel-ssh
// sequelize config
var sequelize = new sequelize('database', 'user', 'pass', {
host: '127.0.0.1',
dialect: 'mysql',
port: 3306,
pool: {
max: 10,
min: 0,
idle: 20000
@MoOx
MoOx / README.md
Last active May 11, 2023 13:59
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
@abhisekp
abhisekp / # Object Property Assignment.md
Last active March 16, 2018 02:55
Object Property Assignment in JavaScript — http://bit.ly/js-obj
@ziluvatar
ziluvatar / token-generator.js
Last active October 24, 2024 04:26
Example of refreshing tokens with jwt
/**
* 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');
@thekeenant
thekeenant / cs-resources.md
Last active December 26, 2023 17:50
My CS bookmarks.

Cheatsheets

Learning & Practice

  • Pramp: Free forever peer-to-peer technical interview practice.
  • InterviewBit: Gamified practice for typical coding interview questions.
  • Project Euler: Math/CS related challenge problems. Try them and complete them at your own pace.

Intro to Advanced Python

By Adam Anderson

[email protected]

These notes are mostly just summaries of the provided references. The purpose of this document is to centralize the resources I found useful so they would be easy to find. Most definitions and explanations are paraphrased or quoted directly from the sources.

Table of Contents

@alastairparagas
alastairparagas / README.md
Last active April 18, 2017 14:17
Python Resources

Online Resources

Awesome Python Conference Videos

@hevlastka
hevlastka / python.md
Created November 18, 2016 12:55
Idiomatic Python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]: