Skip to content

Instantly share code, notes, and snippets.

View anandchakru's full-sized avatar

Anand Rockzz anandchakru

View GitHub Profile
@anandchakru
anandchakru / webp2png.html
Created August 22, 2023 19:23
webp to png bulk upload/download
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Bulk convert WebP to png created by anandchakru</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: Arial, sans-serif;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class LRUCache<T> {
private int maxItems;
private Node top = new Node("", null);
private Node btm = new Node("", null);
private Map<String, Node> hm = Collections.synchronizedMap(new HashMap<String, Node>());

Spring boot questions

Spring dependency injection

Fundamental concept in spring framework. Spring injects dependencies into other objects enabling loose coupling of components and easy to manage/change/test dependencies.

Spring Inversion of control/Dependency injection

It is a process by which objects define their dependencies through external ways such as constructors, factory methods, properties, annotations.

What these interface used for?

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
accountId|accountIdtype|transId|slno|transStatus|postedDate|transDate|billingcycledate|amount|paymentchannel|description|isdisputed
ad3e8491-9ac5-40ba-9084-dad9428ed35a|EAC|484243e4-a727-46f8-ac5f-d49c2bb8dda7|1|POSTED|2021-05-30|2021-07-18|2021-06-14|1409.99|DIGITAL|Amritsar|false
24329a58-5e45-4937-a34c-069aacc4b456|UID|5d4186f5-2336-42fd-a5da-e8e1833edbd4|2|POSTED|2021-08-09|2021-04-18|2021-06-27|1331.32|DIGITAL|Multan|false
ad3e8491-9ac5-40ba-9084-dad9428ed35a|UID|7281010e-8a97-4d15-bc03-6bb53e98c370|3|PENDING|2021-06-06|2021-08-10|2021-06-01|1656.66|POS|Glasgow|true
c158a7c3-2f4b-42ab-ad8b-ff8fb6094e83|EAC|af7d5230-b9e6-456f-af2d-2380d9863d92|4|POSTED|2021-05-19|2021-06-11|2021-04-09|1705.86|DIGITAL|Omdurman|false
a19e23ba-e45e-4652-b56d-e3538a04b237|UID|8dc25100-c9f7-4f03-8227-b7f6c9181fca|5|PENDING|2021-08-16|2021-03-28|2021-09-11|1700.08|DIGITAL|Guatemala City|false
24329a58-5e45-4937-a34c-069aacc4b456|EAC|d9ed2ce4-a5e0-4092-acc4-73bb74c7d2f8|6|PENDING|2021-03-01|2021-05-19|2021-09-18|1429.42|POS|Kunm
@anandchakru
anandchakru / index.html
Created May 27, 2019 01:13
SVG Loader Animation
<h1>Pure <b>SVG</b> Loader</h1>
<!-- Loader1 -->
<svg version="1.1" id="L1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
<circle fill="none" stroke="#fff" stroke-width="6" stroke-miterlimit="15" stroke-dasharray="14.2472,14.2472" cx="50" cy="50" r="47" >
<animateTransform
attributeName="transform"
attributeType="XML"
@anandchakru
anandchakru / spring-data-rest-notes.md
Created January 5, 2019 05:37 — forked from TomyJaya/spring-data-rest-notes.md
Spring Data REST - Useful notes

How To change baseUri:

in application.properties add:

spring.data.rest.basePath=/api
  • or -

in application.yml add:

@anandchakru
anandchakru / win10_pwd_recover_utilman.md
Created January 30, 2018 01:17
How Recover local windows 10 password using usb bootable

Limitations

  • works on local user accounts only
  • works on usb bootable computers only

What you will need

  • Another working computer
  • A usb thumb drive
  • Basic cmd skills

Steps

@anandchakru
anandchakru / github.md
Last active July 24, 2017 20:21
Github notes

Clone remote repo

git clone https://github.com/anandchakru/picaslide.git

Stage all new/modified files from current dir

git add .