Skip to content

Instantly share code, notes, and snippets.

View BjornFJohansson's full-sized avatar
😃
happy!

Björn Johansson BjornFJohansson

😃
happy!
View GitHub Profile
@lexnederbragt
lexnederbragt / to_jupyter.md
Last active October 29, 2022 20:22
Tools to generate Jupyter Notebooks from plain (markup) text files

Tools to generate Jupyter Notebooks from plain (markup) text files:

(Originally posted on twitter, here incorporating responses)

pandoc

As of version 2.6, there is provisional support for using pandoc using jupyter notebookss (.ipynb files) as input and output format.

Notedown

Markdown to Jupyter Notebook, and back https://github.com/aaren/notedown

@chrishorton
chrishorton / hangmanwordbank.py
Created May 21, 2017 17:16
Hangman ascii art and wordbank
HANGMANPICS = ['''
+---+
| |
|
|
|
|
=========''', '''
+---+
@v-pravin
v-pravin / graph-tool_installation.md
Last active April 10, 2020 14:18
Installation of graph-tool from source
@dvberkel
dvberkel / gist:1950267
Created March 1, 2012 14:53
Duvals Algorithm for generating Lyndon words
"""Lyndon.py
Algorithms on strings and sequences based on Lyndon words.
David Eppstein, October 2011."""
import unittest
from Eratosthenes import MoebiusFunction
def LengthLimitedLyndonWords(s,n):
"""Generate nonempty Lyndon words of length <= n over an s-symbol alphabet.
The words are generated in lexicographic order, using an algorithm from