Skip to content

Instantly share code, notes, and snippets.

View palikhov's full-sized avatar
🐉
E5E / SRD 5.1 rus / Excel GM Tools

Anton Palikhov palikhov

🐉
E5E / SRD 5.1 rus / Excel GM Tools
View GitHub Profile
@hawkrives
hawkrives / README.md
Created April 4, 2012 20:18
VB Word-to-Markdown converter

from http://tips.naivist.net/2006/02/02/word_to_markdown_converter/ Word to Markdown converter

Some smart people who didn’t want to teach users how to code in HTML invented Textile markup language

Someone more lazy invented MarkDown syntax which is much easier to learn. MarkDown is really nice for small content management systems, blogging engines etc.

For instance, to mark text as bold, you write the “bold text” like “bold text”. Other rules can be found in the syntax page.

However, when you have a MS Word document with several pages of bolds, italics and lists, you don’t really want to re-code all the markup.

@jesperronn
jesperronn / docx2md.md
Last active November 15, 2024 20:52 — forked from aembleton/docx2md.md
Convert a Word Document into MD

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution

@Christian-G
Christian-G / docx2md.sh
Last active June 28, 2023 11:35 — forked from jesperronn/docx2md.md
Convert Word documents into Markdown
#!/bin/bash
#
# generate a Markdown version of a word document. Goes in separate folder, since
# images are extracted and converted as well (separate folder avoids naming clashes).
#
# REQUIREMENTS: pandoc
#
#
# with pandoc
# --extract-media=[media folder]
@petersgiles
petersgiles / 2Eto5E-conversion-summary.md
Created September 9, 2017 01:05
2E to 5E simple conversion guidelines

Updated 10 February 2015 (added link to Monster Traits and Actions)

This is the third in my series of conversion documents for D&D 5th Edition. (You can find the one for Next here and the one for 3.5/3E/Pathfinder here.) I created this document by comparing the 5E versions of monsters from the Monster Manual with their 2E counterparts. I also referred to two sources for converting monsters from 2E to 3E: Wizards’ official

@Bastlifa
Bastlifa / TemplateGenMacro
Last active September 15, 2020 20:51
Roll20 API Script to create aoe templates at tokens.
&{template:npcaction} {{name=Size and Shape}} {{rname=Shape Maker}} {{description=**Circle Radius**
[5 ft](!TemplateGenerator Circle 5) | [10 ft](!TemplateGenerator Circle 10) | [20 ft](!TemplateGenerator Circle 20) | [30 ft](!TemplateGenerator Circle 30) | [40 ft](!TemplateGenerator Circle 40)
________________________
**Square Side**
[10 ft](!TemplateGenerator Square 10) | [15 ft](!TemplateGenerator Square 15) | [20 ft](!TemplateGenerator Square 20) | [40 ft](!TemplateGenerator Square 40)
________________________
**Cones**
[60](!TemplateGenerator Cone 60 135) -------- [60](!TemplateGenerator Cone 60 90) -------- [60](!TemplateGenerator Cone 60 45)
----[30](!TemplateGenerator Cone 30 135) ---- [30](!TemplateGenerator Cone 30 90) ---- [30](!TemplateGenerator Cone 30 45)----
--------[15](!TemplateGenerator Cone 15 135) [15](!TemplateGenerator Cone 15 90) [15](!TemplateGenerator Cone 15 45)---------
@Moutard3
Moutard3 / mp3-upload-direct-link.md
Last active April 11, 2025 21:12
Tutorials / Walkthrough for uploading & getting direct link of sound file (mp3, ogg, ...)
[
{
"title": "Aboleth",
"icon": "imp-laugh",
"contents": [
"subtitle | Large aberration, lawful evil",
"rule",
"property | Armor class | 17 (Natural Armor)",
"property | Hit points | 135 (18d10 + 36)",
"property | Speed | 10 ft., swim 40 ft. ",
@tkfu
tkfu / beyond-scraper.rb
Last active November 23, 2023 22:02
Script to scrape SRD-licensed monster data from DnD Beyond. Brittle, simple, but it works as of the posting of this gist.
require 'json'
require 'nokogiri'
require 'open-uri'
require 'rails-html-sanitizer'
def get_monster_list
monster_urls = []
firstpage = Nokogiri::HTML(open("https://www.dndbeyond.com/monsters?filter-search=&filter-source=1&filter-type=0&page=1"))
num_pages = firstpage.xpath('//li[@class="b-pagination-item"]')[firstpage.xpath('//li[@class="b-pagination-item"]').length - 2].text.to_i
puts "Found #{num_pages} pages..."
@tkfu
tkfu / monsters2cards.rb
Created February 2, 2018 03:55
A quickie script to turn the monsters scraped with [this script](https://gist.github.com/tkfu/bc5dc2c6cee4d1e582a3d369c3077bb5) into cards you can use [here](https://crobi.github.io/rpg-cards/generator/generate.html)
# Probably only works on Ruby 2.5.0
require 'json'
def create_monster mon
cont = []
cont.append("subtitle | #{mon['meta']}")
cont.append("rule")
cont.append("property | Armor class | #{mon['Armor Class']}")
cont.append("property | Hit points | #{mon['Hit Points']}")
@AndruC
AndruC / Roll20 Macros.md
Last active November 27, 2024 14:52
Roll20 Macros for smooth D&D

Macro Must-Haves

These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.

Remember to add /w gm or @{selected|wtype} to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.

Here's what my bar looks like.

Macro Quickbar