Skip to content

Instantly share code, notes, and snippets.

View stabgan's full-sized avatar

Kaustabh Ganguly stabgan

View GitHub Profile
@stabgan
stabgan / 3col_heart.ipynb
Created January 31, 2021 10:15
3col_heart.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stabgan
stabgan / index.html
Created June 17, 2019 13:24
JSON API testing
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>JSON JavaScript Course</title>
</head>
<body>
<div id="addButton">Get User</div>
@stabgan
stabgan / dodger.js
Created June 14, 2019 08:13
Javascript dodger browser game
const DODGER = document.getElementById('dodger')
const GAME = document.getElementById('game')
const GAME_HEIGHT = 400
const GAME_WIDTH = 400
const LEFT_ARROW = 37 // use e.which!
const RIGHT_ARROW = 39 // use e.which!
const START = document.getElementById('start')
const ROCKS = []
var SCORE = 0
@stabgan
stabgan / check.py
Created June 13, 2019 08:09
Checking condition in an infinitely nested loop with BFA search , implemented in python
a = [[1,2,[3,4,5]],6,[7,[8,9,10,[11,12,13]]]]
def qq(a) :
current = a
next = []
while (current or current == 0) :
if(type(current) is int and current > 7) :
return current
@stabgan
stabgan / pca.ipynb
Created October 12, 2018 13:22
pca
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stabgan
stabgan / pca.ipynb
Created October 12, 2018 13:07
pca
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.