Skip to content

Instantly share code, notes, and snippets.

@baig
baig / _FP reading lists.md
Created November 2, 2022 20:09 — forked from danidiaz/_FP reading lists.md
assorted reading lists

A series of reading lists mostly related to functional programming.

@baig
baig / latexGitHub.md
Created July 10, 2020 16:36 — forked from ax3l/latexGitHub
Latex in GitHub Markdown

URLEncode Latex Formula -> [http://meyerweb.com/eric/tools/dencoder/]

Create Link:

![My Formula](http://latex.codecogs.com/gif.latex?<URLEncodedLaTeX>)

or

![My Formula](https://chart.googleapis.com/chart?cht=tx&chl=<URLEncodedLaTeX>)
@baig
baig / machine.js
Last active December 13, 2019 02:25
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@baig
baig / machine.js
Last active December 12, 2019 22:28
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
#!/usr/bin/env runhaskell
import Text.Pandoc.JSON
import Text.Pandoc.Builder
main :: IO ()
main = toJSONFilter hideSlide
hideSlide :: Block -> Block
hideSlide (CodeBlock (_,(attr:_),_) str)
@baig
baig / notes.hs
Last active August 29, 2015 14:27
A Pandoc filter that replaces code blocks having "notes" class with corresponding Divs.
#!/usr/bin/env runhaskell
import Text.Pandoc
import Text.Pandoc.Error
import Text.Pandoc.JSON
import Text.Pandoc.Builder
main :: IO ()
main = toJSONFilter notes
@baig
baig / csv2table.hs
Last active November 27, 2023 14:27
A Pandoc filter that replaces Image links having *.csv extension with Pandoc Markdown Tables.
#!/usr/bin/env runhaskell
{-
The MIT License (MIT)
Copyright (c) 2015 Wasif Hasan Baig <pr.wasif@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights