Skip to content

Instantly share code, notes, and snippets.

View seven-phases-max's full-sized avatar

Max Mikhailov seven-phases-max

View GitHub Profile
#include <cmath>
#include <iostream>
#include <iomanip>
const double C0 = 16.352;
const double ln2per12 = std::log(2.) / 12;
// your ref and approx frequency values:
const int index[] = {46, 623, 954};
const double refFreq[] = {1.33304775683583476286742097727255895733833313, 37.3506591867008808094396954402327537537, 252.719842525523120002617361024022102356};

momomo:

I've asked about this for years, on Stackoverflow twice, and the question keeps being disregarded and closed down, primarily by @seven-phases-max

Lie. Here's the topic. As you can see there's no even a single downvote. His another question was closed because it was exactly identical to his first one - which is directly against SO rules (closed not even by me - @momomo, before you start lying about someone closing your Q at SO learn how these things work there first).

who refuses to understand why this is even an important thing

Ah, right. "What do I pay him for?"

// establish themes:
#theme(default) {
@primary: black;
@contrast: white;
}
#theme(inverted) {
@primary: white;
@han_cart_icon: fa-shopping-cart;
@han_fa_name: "Font Awesome\ 5 Free";
.change_basket_icon() when (@han_cart_icon = fa-shopping-cart) {
i.ty-icon-moon-commerce,
.ty-icon-basket {
font-family: @han_fa_name;
&:before {
content: "\f07a";
}
@han_cart_icon: fa-shopping-cart;
@han_fa_version: v5;
.change_basket_icon() when (@han_cart_icon = fa-shopping-cart) {
i.ty-icon-moon-commerce,
.ty-icon-basket {
& when (@han_fa_version = v4) {
font-family: FontAwesome;
}
@font-size-min: 16px;
@font-size-max: 18px;
@font-size-diff: (@font-size-max - @font-size-min);
body {
.eval(@font-size-diff);
font-size: calc((100vw - @font-size-min) / @eval-result);
}
.eval(@expr) {
.y {
y: y
}
// Usage:
a {
.text-transform(upper);
}
b {
.text-transform(none);
}