This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { readFileSync, writeFileSync } from "node:fs"; | |
import { marked } from "marked"; | |
import { JSDOM } from "jsdom"; | |
import { | |
AlignmentType, Document, ExternalHyperlink, HeadingLevel, LevelFormat, | |
Packer, Paragraph, ShadingType, Table, TableCell, TableRow, TextRun, | |
WidthType | |
} from "docx"; | |
const INPUT_FILE = 'sample.md'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
HSV/HSL code based on Wikipedia algorithms | |
Permission to use, copy, modify, and/or distribute this software for | |
any purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL | |
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES | |
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE | |
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
BOILERPLATE FOR TUMBLR THEME DEVELOPMENT | |
Based on the code from <https://buildthemes.tumblr.com/> | |
Available under the 0BSD license (https://opensource.org/license/0bsd/) | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="Description" content="{MetaDescription}" /> | |
<title>{block:SearchPage}{lang:Search results for SearchQuery} - {/block:SearchPage}{block:PostTitle}{PostTitle} - {/block:PostTitle}{Title}</title> | |
<link rel="shortcut icon" href="{Favicon}" /> | |
<link rel="apple-touch-icon" href="{PortraitURL-128}"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Preset, Rule } from 'unocss' | |
const displayRules: Rule[] = | |
['none','inline','inline-block','block','grid','inline-grid','flex','inline-flex','table','table-row','table-cell'] | |
.map(display => [`d-${display}`, { display }]); | |
const flexDirectionRules: Rule[] = | |
['row','row-reverse','column','column-reverse'] | |
.map(direction => [`flex-${direction}`, { 'flex-direction': direction }]); | |
const textAlignRules: Rule[] = | |
['left','right','center'].map(alignment => [`text-${alignment}`, { 'text-align': alignment }]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* font families */ | |
--font-body: Verdana,sans-serif; | |
--font-heading: "Segoe UI",Arial,sans-serif; | |
/* Colors */ | |
--color-amber: #ffc107; | |
--color-aqua: #00ffff; | |
--color-blue: #2196F3; | |
--color-light-blue: #87CEEB; | |
--color-brown: #795548; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* Colors > Slate */ | |
--tw-slate-50: #f8fafc; | |
--tw-slate-100: #f1f5f9; | |
--tw-slate-200: #e2e8f0; | |
--tw-slate-300: #cbd5e1; | |
--tw-slate-400: #94a3b8; | |
--tw-slate-500: #64748b; | |
--tw-slate-600: #475569; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------------------------------------------------- | |
// module imports | |
// const { existsSync, mkdirSync, readFileSync, writeFileSync } = require('fs'); | |
// const { execSync } = require('child_process'); | |
// ---------------------------------------------------------- | |
// parse commandline arguments | |
const argv = require('yargs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*: | |
@plugindesc Shop Stock | |
@author armornick | |
@param default-stock | |
@text Default Stock Size | |
@type number | |
@desc The default size of stock for items without note-tag. | |
@default 99 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*: | |
@plugindesc States Cancelled by Elements | |
@author armornick | |
@help | |
This plugin adds states which are canceled when the inflicted person is hit with | |
an attack with a certain element. | |
=== Usage === |
NewerOlder