Skip to content

Instantly share code, notes, and snippets.

@sawantakash321
sawantakash321 / partners.js
Last active August 31, 2017 00:34
NodeJS/JavaScript program that reads our list of partners(partners.JSON) and outputs the company names and addresses of matching partners (with offices within 100km) sorted by company name (ascending).
'use strict'
var request = require("request");
var http = require('http');
var url = "https://success.spidergap.com/partners.json";
//Converting central london location from degrees into radians
const londonLat = 51.515419 * (Math.PI / 180);
const londonLong = -0.141099 * (Math.PI / 180);
var londonMeetPartners = [{
name: "",
address: ""
@sawantakash321
sawantakash321 / deepClone.js
Created August 29, 2017 12:46
A function called deepClone which takes an object and creates a copy of it.
var personalInfo = {
name: 'paddy',
address: {
town: 'Lerum',
country: 'Sweden',
}
}
//function to deep[nested] clone a object
function deepClone(object) {
@sawantakash321
sawantakash321 / README.md
Created September 15, 2017 20:14 — 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.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed


@sawantakash321
sawantakash321 / redis.md
Created February 4, 2019 21:40 — forked from ktheory/redis.md
Redis hash benchmarks

Determine the memory impact of storing indicator counts in one big hash, or several smaller hashes.

See the redis memory docs for the advantages of several smaller hashes.

Test 1: One big hash

Store 10mm values in one big hash. Code:

r = Redis.new
@sawantakash321
sawantakash321 / LC_COLORS.md
Created February 14, 2019 14:25 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black

@sawantakash321
sawantakash321 / introrx.md
Created February 17, 2019 17:47 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing