Skip to content

Instantly share code, notes, and snippets.

View pwign's full-sized avatar

Anh pwign

View GitHub Profile
.parts-screen-body.scrollable {
padding-bottom: 40vh;
}
@pwign
pwign / vimeo.js
Last active June 21, 2020 08:51
Responsive Vimeo embed for reading.supply articles
const NATURAL_NON_ABSOLUTE_ELEMENT = css`
display: flex;
white-space: wrap;
position: relative;
/* CHANGE THIS: The padding-top percentage depends on the video's aspect ratio. height / width */
padding: 75% 0 0 0;
`
const CLASSIC_WEB_CSS_INVISIBLE_TEXT_HACK = css`
visibility: hidden;
@pwign
pwign / ImageMagick Minecraft Skin
Created December 10, 2019 15:42
For converting 64x32 Minecraft skin to 64x64 format using ImageMagick
convert input.png -background transparent -extent 64x64 \
\( input.png -crop 4x4+4+16 -flop \) -geometry +20+48 -composite \
\( input.png -crop 4x4+8+16 -flop \) -geometry +24+48 -composite \
\( input.png -crop 4x12+8+20 -flop \) -geometry +16+52 -composite \
\( input.png -crop 4x12+4+20 -flop \) -geometry +20+52 -composite \
\( input.png -crop 4x12+0+20 -flop \) -geometry +24+52 -composite \
\( input.png -crop 4x12+12+20 -flop \) -geometry +28+52 -composite \
\( input.png -crop 4x4+44+16 -flop \) -geometry +36+48 -composite \
\( input.png -crop 4x4+48+16 -flop \) -geometry +40+48 -composite \
\( input.png -crop 4x12+48+20 -flop \) -geometry +32+52 -composite \
test2