Skip to content

Instantly share code, notes, and snippets.

View hemanthkodandarama's full-sized avatar
🎯
Focusing

Hemanth Kumar hemanthkodandarama

🎯
Focusing
View GitHub Profile
@hemanthkodandarama
hemanthkodandarama / dynamoScanPromise.js
Created April 1, 2019 12:09 — forked from ryanhanwu/dynamoScanPromise.js
A short snippet for scanning AWS DynamoDB table with AWS SDK and Promise
var params = {
TableName: 'MYTABLE',
FilterExpression: 'contains (myKey , :query)',
ExpressionAttributeValues: {
':query': query
}
}
var dynamoScan = new Promise(function(resolve, reject) {
var results = []
@hemanthkodandarama
hemanthkodandarama / starUML.md
Created April 16, 2019 07:22 — forked from trandaison/starUML.md
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**
@hemanthkodandarama
hemanthkodandarama / curl.md
Created April 17, 2019 11:49 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@hemanthkodandarama
hemanthkodandarama / bobp-python.md
Created May 7, 2019 10:33 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@hemanthkodandarama
hemanthkodandarama / 1_primitive_comparison.js
Created June 7, 2019 13:03 — forked from nicbell/1_primitive_comparison.js
JavaScript object deep comparison. Comparing x === y, where x and y are values, return true or false. Comparing x === y, where x and y are objects, returns true if x and y refer to the same object. Otherwise, returns false even if the objects appear identical. Here is a solution to check if two objects are the same.
//Primitive Type Comparison
var a = 1;
var b = 1;
var c = a;
console.log(a == b); //true
console.log(a === b); //true
console.log(a == c); //true
console.log(a === c); //true
@hemanthkodandarama
hemanthkodandarama / README.md
Created August 3, 2019 16:21 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@hemanthkodandarama
hemanthkodandarama / chat-frontend.js
Created August 5, 2019 06:45 — forked from martinsik/chat-frontend.js
Node.js chat frontend and server
$(function () {
"use strict";
// for better performance - to avoid searching in DOM
var content = $('#content');
var input = $('#input');
var status = $('#status');
// my color assigned by the server
var myColor = false;
@hemanthkodandarama
hemanthkodandarama / introrx.md
Created October 14, 2019 10:12 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@hemanthkodandarama
hemanthkodandarama / simple-promise-retry.js
Last active April 27, 2020 09:29 — forked from briancavalier/simple-promise-retry.js
A few general patterns for retries using promises
function keepTrying(otherArgs, promise) {
promise = promise||new Promise();
// try doing the important thing
if(success) {
promise.resolve(result);
} else {
setTimeout(function() {
keepTrying(otherArgs, promise);
@hemanthkodandarama
hemanthkodandarama / System Design.md
Created December 26, 2020 10:30 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?