Skip to content

Instantly share code, notes, and snippets.

View kriteesh's full-sized avatar
🎯
Focusing

Kriteesh Parashar kriteesh

🎯
Focusing
  • Delhi
View GitHub Profile
#create a window using ctkinter
#add a heading bar with a title and a logo and two drop down menus on extreme right
#create a frame with a label step-1 uploads
#within the frame create 8 buttons in 2 rows and 4 columns with the text as the name of the file
#add similar frames for step-2 and step-3
#create a frame for for generation of final report
#add a button on the left to generate the report
#add a button on the right to open the folder where the report is saved
#show the statuses of the report generation in the right
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search Page</title>
<style>
.top-bar {
position: relative; /* Added this line */
display: flex;
@{
ViewBag.Title = "Configuration App";
}
<div class="row contentMargin">
<div id="spinner" style="display: none">
@Html.Partial("~/Views/Shared/_Spinner.cshtml")
</div>
<div class="col-lg-12">
def levenshtein_distance(s1, s2):
"""
Compute the Levenshtein distance between two strings.
"""
if len(s1) > len(s2):
s1, s2 = s2, s1
distances = range(len(s1) + 1)
for index2, char2 in enumerate(s2):
new_distances = [index2 + 1]
const guruLaghu = (arr) => arr.map(x=>(x.match(/ा|ी|ू|ॄ|ॄ|े|ै|ो|ौ|ं|ः|्/ig)!=null)? 2:1)
let aksharaSanskritAdv = shabda => {
let pattern = /[कखगघङचछजझञटठडढणतथदधनपफबभमयरलवशषसहअआइईउऊऋॠॡएऐओऔऌळ](?!्)/g;
let m = shabda.split(pattern);
let v = shabda.match(pattern);
if(m.length > v.length) m_n = m.slice(1);
let aksharas = v.map((x,i)=>i==0?m[0]+x+m_n[i]:x+m_n[i]);
return [m,v,aksharas];
}
data:text/html,<html><style>petal{position:absolute;top:50%;left:50%;width:100px;height:100px;background:rgb(220,34,23,0.6);border-radius:0 80%;transform-origin:0 0;}body{margin:0;height:100vh;width:100vw;background:rgb(25,23,23)} flower{position:absolute;top:50vh;left:50vw;}</style><flower><petal style="transform:rotate(45deg)"></petal><petal style="transform:rotate(105deg)"></petal></petal><petal style="transform:rotate(165deg)"></petal><petal style="transform:rotate(225deg)"></petal><petal style="transform:rotate(285deg)"></petal><petal style="transform:rotate(345deg)"></petal></flower></html>
@kriteesh
kriteesh / kmeansBasic.html
Last active August 9, 2018 11:57
k-means clustering example
<html>
<head>
<style>
html,body{
margin:0 ;
width : 100%;
height : 100%;
}
</style>
</head>
//Multiple vectors declaration//
var a ; for(let i=0;i<=10;i++){ a[i] = { x:1*i,y:2*i,z:3*i, t:4*i } ; }