Skip to content

Instantly share code, notes, and snippets.

@punit-kulal
punit-kulal / upgrade_package_version.py
Created August 23, 2023 09:11
script which bumps a package.json to the provided version
import json
import sys
dir_path = sys.argv[1]
version = sys.argv[2]
# Opening JSON file
with open(dir_path+"/package.json", 'r+') as f:
data = json.load(f)
data["version"] = version
@punit-kulal
punit-kulal / Match_Game.html
Last active March 5, 2017 04:11
Matching game
<html>
<head>
<title>assesmentp2</title>
<style>
div { position: absolute; height: 500px;width: 500px;}
#right { left: 500px;
border-left: 1px solid black;}
img{position: absolute;}
</style>
<script>