From 2fda85fccb23212747828d0f3f55ae16e5ff956b Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 16 Apr 2020 13:41:04 +0530 Subject: reformat with right dates --- posts/call_to_ARMs.md | 2 +- posts/color_conundrum.md | 2 +- posts/my_setup.md | 2 +- posts/pixel_art_in_GIMP.md | 18 +++++++++--------- posts/rapid_refactoring_with_vim.md | 6 +++--- posts/static_sites_with_bash.md | 4 ++-- posts/termux_tandem.md | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) (limited to 'posts') diff --git a/posts/call_to_ARMs.md b/posts/call_to_ARMs.md index 0d0a741..ccf5058 100644 --- a/posts/call_to_ARMs.md +++ b/posts/call_to_ARMs.md @@ -76,7 +76,7 @@ experience loads better: And it's pretty! See for yourself: -[![gef.png](https://u.peppe.rs/wq.png)](https://u.peppe.rs/wq.png) +[![](https://u.peppe.rs/wq.png)](https://u.peppe.rs/wq.png) ### Editing diff --git a/posts/color_conundrum.md b/posts/color_conundrum.md index 80a13cd..f17760a 100644 --- a/posts/color_conundrum.md +++ b/posts/color_conundrum.md @@ -21,7 +21,7 @@ The following comparison does a better job of explaining (none, ample and over-the-top highlighting, from left to right): -[![hi.png](https://u.peppe.rs/lt.png)](https://u.peppe.rs/lt.png) +[![](https://u.peppe.rs/lt.png)](https://u.peppe.rs/lt.png) Without highlighting (far left), it is hard to differentiate between comments and code! The florid color scheme (far diff --git a/posts/my_setup.md b/posts/my_setup.md index c3868eb..0b43a49 100644 --- a/posts/my_setup.md +++ b/posts/my_setup.md @@ -1,7 +1,7 @@ Decided to do one of these because everyone does one of these. -![scrot](https://u.peppe.rs/Hb.png) +![](https://u.peppe.rs/Hb.png) My entire setup is managed with GNU `stow`, making it easier to replicate on fresh installations. You can find my diff --git a/posts/pixel_art_in_GIMP.md b/posts/pixel_art_in_GIMP.md index be925ca..4e0b087 100644 --- a/posts/pixel_art_in_GIMP.md +++ b/posts/pixel_art_in_GIMP.md @@ -30,7 +30,7 @@ Pencil Tool (`n` on the keyboard) for hard edge drawings. Here's a small comparison if you don't know the difference between a hard edge and a soft edge: -![hard edge vs soft edge](https://u.peppe.rs/kz.png) +![Hard edge vs Soft Edge](https://u.peppe.rs/kz.png) I turn the size down all the way to 1 (`[` on the keyboard). Set `Dynamics` off. [Here's](https://u.peppe.rs/Fs.png) a @@ -62,14 +62,14 @@ merge it with the original. Your outline might look something like this: -![rice_outline](https://u.peppe.rs/mn.png) +![](https://u.peppe.rs/mn.png) Go ahead and fill it in with the fill tool (`Shift + b` on the keyboard), add in some seaweed as well, preferably on a different layer. You can toggle symmetry on and off to save yourself some time. -![with_seaweed](https://u.peppe.rs/xu.png) +![](https://u.peppe.rs/xu.png) #### Shadows @@ -80,7 +80,7 @@ surface later. Shadows on any surface always follow the shape of the surface. A spherical onigiri would have a circular shadow: -![riceball_shadow](https://u.peppe.rs/FU.png) +![](https://u.peppe.rs/FU.png) A couple of noticeable changes: @@ -95,7 +95,7 @@ The shadow does not go all the way because we will be filling in that area with another, darker shadow! An image might explain better: -![shadow_all](https://u.peppe.rs/Br.png) +![](https://u.peppe.rs/Br.png) To emulate soft lights, reduce the value by 2 to 3 points every iteration. Notice how area `1` is much larger than @@ -108,7 +108,7 @@ Do the same with the seaweed. The seaweed, being a smaller, flatter object, doesn't cast much of a shadow, so stop with 1 or 2 iterations of the gradient: -![shadow_weed](https://u.peppe.rs/T3.png) +![](https://u.peppe.rs/T3.png) We're getting there! @@ -121,19 +121,19 @@ it does form an uneven surface. Add in some shadows to promote the idea of rice grains. Here is the finished result: -![highlights](https://u.peppe.rs/VE.png) +![](https://u.peppe.rs/VE.png) ### Finishing Touches Some color correction and `a e s t h e t i c` Japanese text later, our piece is complete! -![small_onigiri](https://u.peppe.rs/cn.png) +![](https://u.peppe.rs/cn.png) Hold on, why is it so tiny? Well, that's because our canvas was 100x100, head over to `Image > Scale Image`, set `Quality > Interpolation` to `None` and scale it up to 700x700, et voilà! -![big_onigiri](https://u.peppe.rs/CH.png) +![](https://u.peppe.rs/CH.png) diff --git a/posts/rapid_refactoring_with_vim.md b/posts/rapid_refactoring_with_vim.md index 4dd3186..e38cef3 100644 --- a/posts/rapid_refactoring_with_vim.md +++ b/posts/rapid_refactoring_with_vim.md @@ -8,7 +8,7 @@ vim :) Here's a small sample of what had to be done (note the lines prefixed with the arrow): -``` +```rust → use serde_json::{from_str}; #[test] @@ -22,7 +22,7 @@ prefixed with the arrow): had to be converted to: -``` +```rust → use serde_json::{from_value}; #[test] @@ -42,7 +42,7 @@ containing tests. Luckily, modules (and therefore files) containing tests in Rust are annotated with the `#[cfg(test)]` attribute. I opened all such files: -``` +```bash # `grep -l pattern files` lists all the files # matching the pattern diff --git a/posts/static_sites_with_bash.md b/posts/static_sites_with_bash.md index 62e43d8..1b6b2ec 100644 --- a/posts/static_sites_with_bash.md +++ b/posts/static_sites_with_bash.md @@ -15,7 +15,7 @@ I host my site on GitHub pages, so go into `posts/`, get converted into html, and end up in `docs/index.html`, something like this: -``` +```bash posts=$(ls -t ./posts) # chronological order! for f in $posts; do file="./posts/"$f # `ls` mangled our file paths @@ -31,7 +31,7 @@ Most static site generators recommend dropping image assets into the site source itself. That does have it's merits, but I prefer hosting images separately: -``` +```bash # strip file extension ext="${1##*.}" diff --git a/posts/termux_tandem.md b/posts/termux_tandem.md index 7c61beb..8344d40 100644 --- a/posts/termux_tandem.md +++ b/posts/termux_tandem.md @@ -45,4 +45,4 @@ Alright, I don't really listen to music via `cmus`, but I did use it a couple times when my default music player was acting up. `cmus` is a viable option: -[![cmus.png](https://u.peppe.rs/CP.jpg)](https://u.peppe.rs/CP.jpg) +[![](https://u.peppe.rs/CP.jpg)](https://u.peppe.rs/CP.jpg) -- cgit v1.2.3