Skip to content

Instantly share code, notes, and snippets.

View dvanic's full-sized avatar

Darya Vanichkina dvanic

View GitHub Profile
@dvanic
dvanic / pythonGetObjectMethod.py
Created October 15, 2019 04:11
pythonGetObjectMethod
def get_methods(object, spacing=20):
methodList = []
for method_name in dir(object):
try:
if callable(getattr(object, method_name)):
methodList.append(str(method_name))
except:
methodList.append(str(method_name))
processFunc = (lambda s: ' '.join(s.split())) or (lambda s: s)
for method in methodList:
#' ---
#' title: "Summary tables in R"
#' subtitle: "The many ways to making sense of your data"
#' author: "Darya Vanichkina"
#' date: "`r lubridate::today()`"
#' output:
#' xaringan::moon_reader:
#' css: ["default", "assets/sydney-fonts.css", "assets/sydney.css"]
#' self_contained: false # if true, fonts will be stored locally
#' seal: false # show a title slide with YAML information
@dvanic
dvanic / trello.md
Created August 3, 2021 04:36 — forked from jeremyzilar/trello.md
Copy Trello Board as text or markdown

Copy Trello Board as text or markdown

Wouldn't it be nice to copy out your Trello board as plain text or markdown to be able to put it in a weekly memo, shipping notice or release notes? Now you can!

How to use this

Copy this line of JS and paste it into the CONSOLE in your browser. The results will be saved to your clipboard.

Option 1: Copy your Trello Board as Markdown

This will copy your columns + cards as markdown right to left

var s = []; s.push("# " + jQuery(".board-header").children()[0].innerText); jQuery.fn.reverse = [].reverse; jQuery(".list:has(.list-header-name)").reverse().each(function() {s.push("\n## " + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n"); jQuery(this).find(".list-card-title").each(function() {s.push("* " + this.innerText); }); }); copy(s.join("\n"));