Skip to content

Instantly share code, notes, and snippets.

View saumikn's full-sized avatar

Saumik Narayanan saumikn

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saumikn
saumikn / advent-of-code.ipynb
Last active December 7, 2022 08:09
Solutions for Advent of Code
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>reveal.js – The HTML Presentation Framework</title>
<meta name="description" content="Reveal JS Presentation" />
<meta name="author" content="Saumik Narayanan">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Markdown Template</title>
<meta name="description" content="Markdown Template" />
<meta name="author" content="Saumik Narayanan">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
# For more information on this transliteration scheme, please go to https://saumikn.com/blog/tamil-transliteration
import re
consonants = {'க்க':'kk','ச்ச':'cc','ட்ட':'ṭṭ','த்த':'tt','ப்ப':'pp',
'ங்க':'ng','ஞ்ச':'nj','ண்ட':'ṇḍ','ந்த':'nd','ம்ப':'mb',
r'(^|\s)க':r'\1k',r'(^|\s)ச':r'\1c',r'(^|\s)ட':r'\1ṭ',r'(^|\s)த':r'\1t',r'(^|\s)ப':r'\1p',
'க':'g','ங':'ng','ச':'s','ஞ':'ñ','ட':'ḍ','ண':'ṇ',
'த':'d','ந':'n','ப':'b','ம':'m','ய':'y','ர':'r',