Skip to content

Instantly share code, notes, and snippets.

View rhythmus's full-sized avatar

Wouter Soudan rhythmus

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

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 July 30, 2012 22:45
dynamic variables for Sass (squaring the circle :-)
@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;