Skip to content

Instantly share code, notes, and snippets.

Wouter Soudan rhythmus

Block or report user

Report or block rhythmus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rhythmus
rhythmus / markdownForFileNames.md
Last active Oct 4, 2018
Proposal for a lightweight, database-less, general purpose, name-based file management app
View markdownForFileNames.md

Proposal for a lightweight, database-less, general purpose, name-based file management app

First draft, Easter Sunday 2014

In line with current trends toward lean and simple software solutions reviving and repurposing long-established standards (open plain text vs proprietary rich text formats; file-based static site generators vs bloated database-driven CMSs), the present proposal inquires into a method (and its application) to device a lightweight, general-purpose solution for small-scale digital asset management.

No database is to be used, there shall be no external dependencies, all information carriers should be self-containing, and everything would be file-based. The software would build on a (yet to be established) convention of file naming, which would store metadata for arbitrary files inside the file name, advancing its portability across platforms.

Put as a — somewhat far-fetched — YC-style one-liner pitch: this proposal is about *

@rhythmus
rhythmus / SassDynamicVariables.scss
Created Jul 30, 2012
dynamic variables for Sass (squaring the circle :-)
View SassDynamicVariables.scss
@mixin makecircle($method) {
// ? $height: getvalue(height).this;
// ? $width: getvalue(width).this;
@if ($method == area) {
// using https://github.com/scottkellum/Sassy-math to do the math
$radius: sqrt(($height * $width)/pi());
@include border-radius($radius);
}
height: $radius*2;
width: $radius*2;
You can’t perform that action at this time.