Skip to content

Instantly share code, notes, and snippets.

View the-kaustubh's full-sized avatar
😀

Kaustubh Murumkar the-kaustubh

😀
View GitHub Profile
int bits[10] = {
0x3f, // 0
0x06, // 1
0x5b, // 2
0x4f, // 3
0x66, // 4
0x6d, // 5
0x7d, // 6
0x07, // 7
0x7f, // 8
import os
files = os.listdir()
for f in files:
og = f
f = f.replace('[TorrentCouch.com].', '')
.replace('.720p.', '')
.replace('.720p.', '')
.replace('WEB-DL.x264', '')
@the-kaustubh
the-kaustubh / Sorts.sh
Last active October 2, 2018 06:31
Linux Shell scripts to automate Github source tree folder creations.
#!/bin/sh
for i in C Java Python
do
mkdir "$i"
cd "$i/"
for j in HeapSort MergeSort SelectionSort InsertionSort QuickSort RadixSort
do
mkdir "$j"
done
cd ..
#include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[]) {
char read[10];
char ar[5], ar1[5], ar2[5];
// ar = "", ar1 = "", ar2 = "";
ar[5] = 0;
ar1[5] = 0;
ar2[5] = 0;
@the-kaustubh
the-kaustubh / astar.py
Created August 31, 2018 20:18 — forked from jamiees2/astar.py
A* Algorithm implementation in python.
# Enter your code here. Read input from STDIN. Print output to STDOUT
class Node:
def __init__(self,value,point):
self.value = value
self.point = point
self.parent = None
self.H = 0
self.G = 0
def move_cost(self,other):
return 0 if self.value == '.' else 1