Skip to content

Instantly share code, notes, and snippets.

View chitreshkakwani's full-sized avatar

Chitresh Kakwani chitreshkakwani

  • Bangalore, India
View GitHub Profile
@chitreshkakwani
chitreshkakwani / wikicategory.sh
Created July 15, 2025 11:22
Script to download Wikipedia articles from a category
#!/bin/bash
# Check if a category name was provided
if [ -z "$1" ]; then
echo "Usage: $0 <Wikipedia_Category_Name>"
echo "Example: $0 Physics"
exit 1
fi
CATEGORY_NAME=$1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="indexui.css" />
</head>
<body onLoad="init()">
<header class="large">
<div class="inner-wrap">
<a class="brand">
@chitreshkakwani
chitreshkakwani / amt.cpp
Created May 18, 2011 18:37
Array Mapped Trie design
// Store all the levels in separate tables
/* Level 1 - 0000100001 | 0
Level 2 - 0000101100 | 2
0110000000 | 0
Level 3 - 0000100010 | 7
0000100010 | 5
0000100010 | 3