Skip to content

Instantly share code, notes, and snippets.

View Anjireddy4246's full-sized avatar

Anji... Anjireddy4246

View GitHub Profile
@Anjireddy4246
Anjireddy4246 / CleanArchitecture.md
Created February 4, 2020 03:01 — forked from ygrenzinger/CleanArchitecture.md
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

@Anjireddy4246
Anjireddy4246 / Jenkinsfile
Created December 21, 2019 04:11 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@Anjireddy4246
Anjireddy4246 / NewPasswordUtil.java
Created November 3, 2019 16:05 — forked from pwxcoo/NewPasswordUtil.java
Generate a SALT in Java for Salted-Hash.
package com.pwxcoo.github.utils;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidKeySpecException;
import java.util.Arrays;
import java.util.Base64;
import java.util.Random;
'use strict';
const https = require('https');
var AWS = require('aws-sdk');
var s3 = new AWS.S3();
var bucketName = 'sessale123';
var simpleParser = require('mailparser').simpleParser;
const doPostMailData = () => {
console.log('Start posting the data');
const data = {
@Anjireddy4246
Anjireddy4246 / lambda-restAPI.js
Last active September 30, 2019 15:19
Retrieves the data from external API in AWS Lambda
var https = require('https');
const loadData = () => {
return new Promise((resolve, reject) => {
const options = {
host: '<<your host>>',
path: '<<URLPath>>',
method: 'GET',
headers: {
@Anjireddy4246
Anjireddy4246 / Cacheability.cs
Created July 20, 2019 07:09 — forked from bradwilson/Cacheability.cs
Using chaining to create cached results in ASP.NET Web API v2
public enum Cacheability
{
NoCache,
Private,
Public,
}
@Anjireddy4246
Anjireddy4246 / css-media-queries-cheat-sheet.css
Created June 23, 2019 14:13 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@Anjireddy4246
Anjireddy4246 / Designing Event-Driven Systems links.md
Created May 27, 2019 10:26 — forked from giampaolotrapasso/Designing Event-Driven Systems links.md
List of links from Designing Event-Driven Systems by Ben Stopford
@Anjireddy4246
Anjireddy4246 / package.json
Created May 10, 2019 16:54 — forked from niespodd/package.json
Making web3/bitcore-lib work with Angular 6
{...
"scripts": {
"postinstall": "node patch.js",
...
}
}
@Anjireddy4246
Anjireddy4246 / img-lazy-load.directive.ts
Created April 16, 2019 12:53
Angular Directive to load the images based on the viewport
import { AfterViewInit, Directive, ElementRef, HostBinding, Input } from '@angular/core';
@Directive({
selector: 'img[appLazyLoad]'
})
export class LazyLoadDirective implements AfterViewInit {
@HostBinding('attr.src') srcAttr = null;
@Input() src: string;
constructor(private el: ElementRef) {}
ngAfterViewInit() {
this.canLazyLoad() ? this.lazyLoadImage() : this.loadImage();