Skip to content

Instantly share code, notes, and snippets.

View vigneshwaran-arumugam's full-sized avatar

Vigneshwaran Arumugam vigneshwaran-arumugam

  • https://www.freshworks.com
  • Chennai, India
View GitHub Profile
@quest4i
quest4i / py
Created June 12, 2023 02:00
Convert Cofluence wiki page to markdown
# pip module - atlassian-python-api, markdownify
from atlassian import Confluence
from markdownify import markdownify as md
page = confluence.get_page_by_id(261095431, expand='body.storage')
body_html = page['body']['storage']['value']
body_markdown = md(body_html)
@damzam
damzam / superset.py
Created June 13, 2015 03:39
Create a superset efficiently in Python
#!/usr/bin/env python
"""
Create a superset from the integers provided
e.g. ./superset.py 1 2 3
[set([]), set([1]), set([2]), set([3]), set([1, 2]),
set([1, 3]), set([2, 3]), set([1, 2, 3])]
"""
import sys