Skip to content

Instantly share code, notes, and snippets.

@ksl-fourwalls
ksl-fourwalls / stack_of_queues.c
Created April 16, 2022 19:11
Stack of queue implementation in C
/* using standard IO and standard bool header file */
#include <stdio.h>
#include <stdbool.h>
#define QUEUE_LEN 10
#define STACK_LEN 10
/*
Stack Of Queues:
@Nicholas-Swift
Nicholas-Swift / astar.py
Last active November 20, 2025 14:23
A* pathfinding algorithm. Please see comments below for a fork of this gist that includes bug fixes!
class Node():
"""A node class for A* Pathfinding"""
def __init__(self, parent=None, position=None):
self.parent = parent
self.position = position
self.g = 0
self.h = 0
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""