Skip to content

Instantly share code, notes, and snippets.

View yhatt's full-sized avatar

Yuki Hattori yhatt

  • Japan
  • 23:30 (UTC +09:00)
  • X @y_hatt
View GitHub Profile
@yhatt
yhatt / mkgif.sh
Created December 23, 2017 07:17
mkgif
#!/bin/sh
usage() {
echo "Usage: ${0##*/} [-o output] [-r framerate] [-f ffmpeg-filter] [-s width:height] input" 1>&2
echo ""
echo "Examples:"
echo " ${0##*/} foo.mp4 : Output GIF to foo.gif"
echo " ${0##*/} -o bar.gif foo.mp4 : Output GIF to bar.gif"
echo " ${0##*/} -r 10 foo.mp4 : Set framerate as 10"
echo " ${0##*/} -s 320:-1 foo.mp4 : Resize width to 320px with fixed aspect-ratio"
@yhatt
yhatt / uncover.md
Last active April 5, 2019 17:08
Uncover theme example
theme paginate _paginate title header footer
uncover
true
false
UNCOVER THEME
UNCOVER THEME
A brand-new theme of Marp core
npm i @marp-team/marp-cli @marp-team/marp-core markdown-it-admon
npx marp --engine engine.js slide.md
@yhatt
yhatt / gaia.md
Last active August 8, 2021 13:37
Gaia theme example (for Marp Next)
marp theme
true
gaia

Gaia theme

[Marp Next] slide theme

@yhatt
yhatt / transitions.md
Created August 27, 2021 21:00
Experimental transitions for Marp CLI
title _class theme style marp
Marp CLI experimental transitions
lead gaia
gaia
pre { font-size: 60px; }
true
@yhatt
yhatt / transition-showcase.md
Last active May 29, 2022 02:58
Marp CLI experimental transition showcase
@yhatt
yhatt / iA_Presenter_style_notes.md
Last active January 30, 2024 18:43
Convert paragraphs on top level of the slide page into presenter notes, and hide from the slide.

Regular text is only visible to you. Headlines go on the slide.

iA Presenter (https://ia.net/presenter)

Unlike popular Markdown slide tools, iA Presenter has a unique approach to displaying written content in Markdown.

Are you looking at its innovative approach with longing eyes? No need to wait with your fingers crossed; the same feature can be achieved in Marp using a plugin.

git clone https://gist.github.com/54a1b07ff41485920d370e864860b8a8.git ia_presenter_style_notes
@yhatt
yhatt / diagrams.md
Last active February 4, 2024 12:44
Marp diagram plugin example (Powered by kroki.io)
marp theme
true
default

Marp diagram plugin example

Powered by kroki.io

@yhatt
yhatt / marp.md
Last active February 5, 2024 07:52
Marp Next example
marp

Marp

h:250

Markdown presentation ecosystem