Skip to content

Instantly share code, notes, and snippets.

View Kannndev's full-sized avatar

Kannan Kannndev

View GitHub Profile
@Kannndev
Kannndev / install-cf-gae-ssl.md
Created March 28, 2023 16:47 — forked from patmigliaccio/install-cf-gae-ssl.md
Configuring Cloudflare SSL/TLS certificates on Google App Engine

Configuring Cloudflare SSL/TLS on Google App Engine

Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.

Google App Engine - Custom Domains

Add Domains

Register the root domain with Google Cloud Platform at the following:

@Kannndev
Kannndev / it-ebooks.md
Created July 3, 2022 06:06 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@Kannndev
Kannndev / introrx.md
Created May 15, 2022 18:09 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@Kannndev
Kannndev / udp.js
Created July 31, 2021 17:28 — forked from sid24rane/udp.js
Simple UDP Client and Server in Node.js ==> ( Echo Server )
var udp = require('dgram');
// --------------------creating a udp server --------------------
// creating a udp server
var server = udp.createSocket('udp4');
// emits when any error occurs
server.on('error',function(error){
console.log('Error: ' + error);
@Kannndev
Kannndev / System Design.md
Created December 15, 2020 18:47 — 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?
@Kannndev
Kannndev / event-loop.md
Created December 15, 2020 18:28 — forked from jesstelford/event-loop.md
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code

@Kannndev
Kannndev / NestJs-app.e2e-spec.ts
Last active October 26, 2020 16:46 — forked from firxworx/app.e2e-spec.ts
NestJS Integration/E2E Testing Example with TypeORM, Postgres, JWT
import { Test, TestingModule } from '@nestjs/testing'
import { INestApplication, LoggerService } from '@nestjs/common'
import * as request from 'supertest'
import { AppModule } from './../src/app.module'
class TestLogger implements LoggerService {
log(message: string) {}
error(message: string, trace: string) {}
warn(message: string) {}
debug(message: string) {}
@Kannndev
Kannndev / tagged-template-usecase.js
Created October 16, 2020 16:51
Funtion that transforms dynamic value to bold elements
const makeBold = (strings, ...values) => {
let str = '';
strings.forEach((string, i) => {
str += `${string} ${values[i] ? `<strong>${values[i]}<strong>` : ''}`;
});
return str;
}
const name = 'Kannan';
const role = 'Javascript developer';
@Kannndev
Kannndev / tagged-template-sample.js
Last active October 16, 2020 16:00
Tagged template sample
const generateIntro = (strings, ...values) => {
console.log(strings); // [ 'My name is ', ' and I am a ', '' ]
console.log(values); // [ 'Kannan', 'Javascript developer' ]
let str = '';
strings.forEach((string, i) => {
str += string + (values[i] || '');
});
return str;
}
@Kannndev
Kannndev / tagged-template-intro.js
Last active October 16, 2020 15:39
Tagged template intro
const Button = styled.button`
color: blue;
`;
const userQuery = gql`
{
users {
firstName
}
}