This one is late for about… 24 days?
I re-made the image viewer almost from scratch also renamed it to picto.
At the last post I showed the snippet on how imgpop html template looks like. And while I said it was neat, it is not. The new template actually looks like this: in a straight one line.
<ahref="<%= image %>"id="image-<%= id %>"rel="pict"w="<%= full_width %>"h="<%= full_height %>"><imgsrc="<%= scaled_image %>"alt="<%= title %>"class="<%= klass %>"/></a>
So let say I call the imgpop like this
From the tag above the rendered html will looks like this
<ahref="/a/20120327-stony_cat/Screenshot-2012-03-27_22.22.41.png"id="image-1"rel="pict"w="1920"h="1080"><imgsrc="/a/20120327-stony_cat/resized_Screenshot-2012-03-27_22.22.41.png"alt="Tagline for The Pict."class="center"/></a>
Far more simple, and better, no script tag pollution.
The backend magic were performed by MiniMagick (pun intended). As you may see above, I put the resized image rather than the original one inside the post. Just when the image clicked, the original image showed inside a popup, plus tagline at the bottom, and nice resize button feature hidden at the right-top corner. Try hover your mouse to the right top corner of the image and click the resize button. Of course nothing will happen if the image were not resized by MiniMagick, or smaller than your browser portview size.
I apologize for the inconvenience to refreshing your browser cache. For I randomly changing the site’s layout. Now I made the whole page a bit smaller, including the fonts. Also fixed mobile view for navigation bar. Which is hacky.
So it appears that this theme support mobile view (duh). That navigation bar above will shrink and turn into drop down menu if browsed from mobile device. And it happened that I broke this feature when I moved the search box to the sidebar.
So I begin using zsh (again) recently and plug some accessories from oh-my-zsh. Inspired by this and my previous bash prompt here:
PS1=":\[\033[01;36m\]\W \[\033[01;35m\]ยป\[\033[00m\] " I made my own theme.
Basically, I prefer a prompt with minimal yet useful information, so typical theme with two lines prompt is very much a no no.
{% include_code lang:bash fudanchii.zsh-theme %}
In addition, here is my tmux configuration, which I used to show user@host at its bottom-left status bar:
I stumbled upon this project last night.
todo - Todos in the CLI like what. And that’s cute.
So I decide to give it a spin and a bit inspired to extend its potential.
The first thing that bugged me is that todo store its data locally under its installation folder. It might not convenient since that means it can’t be used by multiple user, except each user install its own.