Skip to content

Instantly share code, notes, and snippets.

View adwait-thattey's full-sized avatar
🐈
👨‍💻 🏡

Adwait Thattey adwait-thattey

🐈
👨‍💻 🏡
View GitHub Profile
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="row">
<div class="col s9">
@adwait-thattey
adwait-thattey / pyvenv.sh
Created August 29, 2020 15:43
A command that provides an easy way to create or start any python virtual environments from any location
#!/bin/bash
pyvenv_help() {
printf "This script provides an easy way to create and start python virtual environments from anywhere\n"
printf "3 main commands are available \n\n"
printf "./pyvenv.sh init : Use this command to install the script first time in /usr/local/bin and provide the path where the virtual environments should be installed \n\n"
printf "pyvenv create <name of new virtual environment> [any other arguments for virtualenv]\n"
@adwait-thattey
adwait-thattey / SampleEventListenerProviderFactory.java
Last active December 22, 2019 18:13
keycloak-plugin-provider_factory
package com.coderdude.sampleeventlistenerprovider.provider;
import org.keycloak.Config;
import org.keycloak.events.EventListenerProvider;
import org.keycloak.events.EventListenerProviderFactory;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.KeycloakSessionFactory;
@adwait-thattey
adwait-thattey / pom.xml
Created December 22, 2019 17:50
keycloak-plugin-pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-parent</artifactId>
<version>6.0.1</version>
</parent>
<name>Sample Event Listener</name>
<description/>
@adwait-thattey
adwait-thattey / SampleEventListenerProvider.java
Created December 20, 2019 12:50
KeyCloak Sample Event Listener
package com.coderdude.sampleeventlistenerprovider.provider;
import org.keycloak.events.Event;
import org.keycloak.events.EventListenerProvider;
import org.keycloak.events.admin.AdminEvent;
import java.util.Map;
public class SampleEventListenerProvider implements EventListenerProvider {
@adwait-thattey
adwait-thattey / image4_dilate_erode.csv
Created December 11, 2018 04:58
image4_dilate_erode.csv
Iterations Detections Accuracy
0 0 0
1 4 66.6667
2 5 83.3333
3 7 66.6667
4 6 100
5 9 75
6 9 75
7 10 66.6667
8 10 66.6667
Iterations Detections Accuracy
0 0 72.1311475409836
1 44 90.1639344262295
2 55 96.7213114754098
3 59 98.3606557377049
4 61 100
5 62 98.3606557377049
6 62 96.7213114754098
7 62 93.4426229508197
8 63 93.4426229508197
@adwait-thattey
adwait-thattey / image2_validation.tsv
Created November 10, 2018 14:28
DSAA Project Report Image 2 Validation Data
Threshold Ratio Correct Detections Incorrect Detections Total Detections Total Decections/Expected Detections
1 0 0 0 0
1.1 1 0 1 0.142857142857143
1.2 1 0 1 0.142857142857143
1.3 3 0 3 0.428571428571429
1.4 3 0 3 0.428571428571429
1.5 4 0 4 0.571428571428571
1.6 4 0 4 0.571428571428571
1.7 4 0 4 0.571428571428571
1.8 4 0 4 0.571428571428571
@adwait-thattey
adwait-thattey / image1_validation.tsv
Last active November 10, 2018 14:27
DSAA Project Report Image 1 Validation Data
Threshold _Ratio Total Detections Detections/Expected Detections
1 4 0.065573770491803
1.1 13 0.213114754098361
1.2 23 0.377049180327869
1.3 32 0.524590163934426
1.4 38 0.622950819672131
1.5 41 0.672131147540984
1.6 46 0.754098360655738
1.7 48 0.786885245901639
1.8 51 0.836065573770492
@adwait-thattey
adwait-thattey / index.html
Created July 9, 2018 06:10
Vivid CSS3 Spinner
<section class="wrapper">
<div class="spinner">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>