GithubHelp home page GithubHelp logo

wboykinm / billmorris.io Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 323.65 MB

My homepage

Home Page: https://billmorris.io

CSS 3.63% JavaScript 6.74% HTML 83.61% SCSS 5.96% Python 0.03% Ruby 0.03%

billmorris.io's Introduction

billmorris.io

My homepage

How to post to the blog

(Because I'm always forgetting the key stuff)

Create a new shell post

cd blog

DATE_ISO=$(date +%Y-%m-%d)
echo "---
layout: post
title: \"MyTitle\"
date: \"${DATE_ISO}T12:00:00-04:00\"
author: \"Bill Morris\"
cover-img: \"/assets/img/${DATE_ISO}_cover.png\"
tags: [\"tag1\", \"tag2\"]
subtitle: \"Punchy lead-in\"
---
" > _posts/${DATE_ISO}-post-name.md

Add content to the new file, save the post.

Adding a cover image

Be sure to add a cover image by using the cover-img: tag in the metadata header of the post. Add a string with the relative URL of whatever image best suits the post.

Citing publications

When adding footnotes in the markdown syntax ([^note1], etc), refer to WorldCat to easily copy Chicago-format citations.

Adding a bunch of gifs

If you've got a bunch of .mp4 files from, say, a Twitter archive, you can convert them all at once to gifs with these parameters:

for m in $(ls *.mp4); do
  g="${m%.*}"
  ffmpeg -itsscale 0.3 \
    -i $m \
    -vf "fps=5,scale=600:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \
    -loop 0 \
    ${g}.gif
done

Publishing a new post

jekyll build -d ../shoals

. . . and push the result to github.

billmorris.io's People

Contributors

wboykinm avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.