Skip to content

Instantly share code, notes, and snippets.

View sailik1991's full-sized avatar
:electron:
Learning, Decoding, and Evolving

Sailik Sengupta sailik1991

:electron:
Learning, Decoding, and Evolving
View GitHub Profile
@sailik1991
sailik1991 / OWASP_Top_10_2017.md
Last active January 31, 2024 05:24
OWASP Top 10, 2017

Open Web Application Security Project (OWASP) Top 10

Reference

Injection

SQL Injection

The front end passes parameters to a backend system. The backend system executes SQL-style database commands with these parameters.

@sailik1991
sailik1991 / min_graphs
Last active June 14, 2023 22:01
TIKZ Goodies
\documentclass[convert={density=300,outext=.png}]{standalone}
% Tikz packages
\usepackage{tikz}
\usepackage{pgf-pie}
\usetikzlibrary{backgrounds}
\usetikzlibrary{decorations.text}
\usetikzlibrary{arrows,automata}
\usetikzlibrary{shapes.geometric}
\usetikzlibrary{positioning,calc}

Generates a bipartite graph with vertex sets V1 an V2 and edge list E

\begin{figure}[t]
\centering
\begin{tikzpicture}
% V1
\foreach \i in {-2, -1, ..., 2} {
    \node at (\i, 0) (v\i) {$v_{\i}$};
    \fill (\i, -0.25) circle (1.5pt);
}

A quick guide to setup pytest for your python code. Convert your code into a package by using the following directory structure.

setup.py
src
-- /a/1.py
tests
-- test_a_1.py

The setup.py file is configured as follows:

@sailik1991
sailik1991 / 0.0 Optimization References.md
Created April 8, 2020 16:36
References for understanding Optimization basics
@sailik1991
sailik1991 / 0.0 Task_planning_resources.md
Last active April 8, 2020 16:38
Task planning for users!

In trying to use planning for decision support systems, there have been an array of automated planning techniques and softwares that we have tried to use. Here is a list of things we believe others might find useful: