Skip to content

Instantly share code, notes, and snippets.

View vishwasnavadak's full-sized avatar
🎯
Trying to hit the targets.

Vishwasa Navada K vishwasnavadak

🎯
Trying to hit the targets.
View GitHub Profile
@njoerd114
njoerd114 / README.MD
Last active March 4, 2024 11:20
Sankey Diagram with Google Spreadsheets

Sankey Diagrams within Google Spreadsheets

This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.

Installation

  • Open a spreadsheet
  • Click "Tools" -> "Scripts"
@iamandrewluca
iamandrewluca / oss-tools.md
Last active May 24, 2024 08:20
Open source software tools
@swyxio
swyxio / 1.md
Last active February 8, 2024 22:30
Learn In Public - 7 opinions for your tech career

2019 update: this essay has been updated on my personal site, together with a followup on how to get started

2020 update: I'm now writing a book with updated versions of all these essays and 35 other chapters!!!!

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos

@bastman
bastman / postgres_alter_enum.txt
Last active October 27, 2021 04:11
postgres - update enum values
// https://blog.yo1.dog/updating-enum-values-in-postgresql-the-safe-and-easy-way/
ADD VALUE (PG 9.x)
=========
# PG 9.6: works from flyway.
ALTER TYPE AUDIT_DATABASE_EVENT_TYPE ADD VALUE 'foo';
RENAME VALUE (PG 10.x)
=============
# PG 10.+: works from flyway (not supported in PG 9.x)
@jsjoeio
jsjoeio / comparison.md
Last active May 23, 2023 14:54
axios vs. isomorphic-fetch

Which library should you use for making HTTP requests from a React/Node project?

In this doc, we'll explore two popular libraries: axios and isomorphic-fetch.

axios

Quick facts:

  • 37,439 stars on GitHub
  • 130 contributors
  • most recent commit: March 8th, 2018
  • created in Aug. 2014
@sonodar
sonodar / get_ssm_parameters.js
Last active April 3, 2024 06:24
Get secret parameters from Amazon EC2 Parameter Store
if (process.argv.length < 3) {
throw `Usage: ${process.argv[1]} path_prefix`
}
const PATH_PREFIX = process.argv[2]
const path = require('path')
const AWS = require('aws-sdk')
const ssm = new AWS.SSM()
function getParametersByPath(nextToken, callback) {
@jbutz
jbutz / main.js
Created November 15, 2017 15:25
Bootstrap Basic Navbar Collapse, no jQuery or Bootstrap JS
let collapseElements = document.querySelectorAll('[data-toggle="collapse"]');
const CLASS_SHOW = 'show';
const CLASS_COLLAPSE = 'collapse';
const CLASS_COLLAPSING = 'collapsing';
const CLASS_COLLAPSED = 'collapsed';
const ANIMATION_TIME = 350; // 0.35s
function handleCollapseElementClick(e) {
let el = e.currentTarget;
let collapseTargetId = el.dataset.target || el.href || null;
@codediodeio
codediodeio / database.rules.json
Last active June 22, 2024 07:03
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 16, 2024 13:09
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example