Skip to content

Instantly share code, notes, and snippets.

View yusanish's full-sized avatar

Yusaku Nishiwaki yusanish

View GitHub Profile
@yusanish
yusanish / edit-article.css
Created June 20, 2020 14:26
esa.io Stylus css
.post-header {
border-bottom: none;
}
@media screen and (min-width: 1000px) {
.layout-post__main {
max-width: 80%;
}
}
@yusanish
yusanish / media-width.css
Last active June 20, 2020 01:04
Dynalist Custom CSS: minimal theme
@media screen and ( max-width:1000px) {
.DocumentContainer.is-centerDocument .DocumentBreadcrumb,
.DocumentContainer.is-centerDocument .Document{
max-width: 820px;
}
}
@media screen and (min-width:1001px) {
.DocumentContainer.is-centerDocument .DocumentBreadcrumb,
.DocumentContainer.is-centerDocument .Document{
max-width: 60%;
@yusanish
yusanish / scrapbox.lua
Last active December 31, 2017 23:22
Pandoc (github Markdown -> Scrapbox). Using Custom template, indent does not work correctly. So, I swaped double and triple indented list to "--", before I use pandoc
-- This is a sample custom writer for pandoc.
-- Scrapbox
-- Character escaping
local function escape(s, in_attribute)
return s:gsub("[<>&\"']",
function(x)
if x == '<' then
return '&lt;'
elseif x == '>' then
@yusanish
yusanish / pukiwiki.lua
Last active June 4, 2024 08:09
Pandoc template file for translating markdown(github flavor) to Pukiwki
-- This is a sample custom writer for pandoc. It produces output
-- pukiwiki
-- Invoke with: pandoc -t pukiwiki.lua
-- This custom writer is made refering "sample.lua"(https://github.com/jgm/pandoc/blob/master/data/sample.lua)
-- The writer cannot translate markdown in pukiwiki perfectly. But I'm satisfy with this one.
-- Character escaping
local function escape(s, in_attribute)
return s:gsub("[<>&\"']",
function(x)