Skip to content

Instantly share code, notes, and snippets.

View hemendrarajawat's full-sized avatar
💭
It's not who you are underneath, its what you do that defines you.

Hemendra Singh Rajawat hemendrarajawat

💭
It's not who you are underneath, its what you do that defines you.
View GitHub Profile
@hemendrarajawat
hemendrarajawat / package.xml
Created March 1, 2024 22:25
Salesforce Full Package.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ActionLinkGroupTemplate</name>
    </types>
    <types>
        <members>*</members>
        <name>AnimationRule</name>
    </types>
@hemendrarajawat
hemendrarajawat / utils.py
Last active August 20, 2022 10:00
ML-Utils
import math
import matplotlib.pyplot as plt
def plot_grid_images(images, labels, columns=5, image_size=None, figsize=(8, 8), cmap='gray', title=None, file_name=None):
fig = plt.figure(figsize=figsize)
fig.tight_layout(h_pad=3)
rows = math.ceil(len(images)/columns)
for image, label, position in zip(images, labels, range(1, len(labels)+1)):
fig.add_subplot(rows, columns, position)
if image_size is not None:
@hemendrarajawat
hemendrarajawat / .prettierignore
Last active February 10, 2023 20:16
VSCode Setting for SFDX Project
**/staticresources/**
.localdevserver
.sfdx
coverage/
@hemendrarajawat
hemendrarajawat / avatar_generator.py
Created May 17, 2020 20:05
Generate dummy random avatar images for profile
# Importing Libaries
import requests
import os
import random
no_of_images_to_pull = int(input('How many avatars you need? '))
size = tuple(input('Enter the image size(eg. 400x400): ').split('x'))
base_url = 'https://dummyimage.com/'
colors = (
('fff', '000'),
@hemendrarajawat
hemendrarajawat / SimilarityDegreeTwoWords.cpp
Created May 25, 2019 09:41
Calculate the Degree of Similarity b/w two words.
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
int min(int,int,int);
void main() {
int r,c,i,j;
char firstword[30], secondword[30];