Skip to content

Instantly share code, notes, and snippets.

View jeetsukumaran's full-sized avatar

Jeet Sukumaran jeetsukumaran

View GitHub Profile
@jeetsukumaran
jeetsukumaran / pandoc.md
Created February 27, 2023 05:20 — forked from brabect1/pandoc.md
Converting Markdown to PDF with Pandoc. #markup #markdown #pandoc

Converting Markups to PDF with Pandoc

Install packaged versions of Pandoc and TexLive

wget https://mirrors.creativecommons.org/presskit/icons/cc.png

sudo apt-get install \
    pandoc \

texlive-latex-extra texlive-fonts-recommended \

"""A caseless dictionary implementation."""
from collections import MutableMapping
class CaselessDictionary(MutableMapping):
"""
A dictionary-like object which ignores but preserves the case of strings.
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}
# -*- coding: utf-8 -*-
"""
Python logging tuned to extreme.
"""
__author__ = "Mikko Ohtamaa <[email protected]>"
__license__ = "MIT"
#include <iostream>
#include <sstream>
#include <string>
#include <random>
namespace sftrabbit {
template <typename RealType = double>
class beta_distribution
{
@jeetsukumaran
jeetsukumaran / vim-plugin-installer.sh
Created September 15, 2010 05:30 — forked from anonymous/vim-plugin-installer.sh
Script to install Vim plugin from its development source
#! /bin/bash
if [[ -z $1 ]]
then
if [[ -z $VIMRUNTIME ]]
then
VIMRUNTIME=$HOME/.vim
fi
else
VIMRUNTIME="$1"