Skip to content

Instantly share code, notes, and snippets.

View myfonj's full-sized avatar

Michal Čaplygin myfonj

View GitHub Profile
@myfonj
myfonj / capo.svg
Last active June 26, 2023 01:18 — forked from rviscomi/capo.svg
RE: How do I add this emoji to the middle of the SVG? 👤
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@myfonj
myfonj / calendar.html
Last active June 30, 2022 05:25 — forked from erkiesken/calendar.html
compact calendar
<html>
<body>
<style>
.month {
--unit: 1.25rem;
padding-left: calc(var(--firstWeekDay) * var(--unit));
}
.day {
display: inline-block;
width: var(--unit);
@myfonj
myfonj / index.css
Created February 26, 2020 17:20 — forked from stereokai/index.css
Trigonometry in CSS
//----------------------------------*\
// TRIGONOMETRY FUNCTIONS
//----------------------------------*/
// # Trigonometry in CSS
//
// - Through Taylor/Maclaurin polynomial representation: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf
// - Useful if you don't want to use JS.
// - With CSS Variables.
// - `calc()` can't do power (x ^ y) so I used multiplication instead.
/*
* Bookmarklet for viewing source in iPad Safari
*/
javascript:(function(d,t){
d.write(t);
d.close();
d.body.appendChild(d.createTextNode(document.documentElement.outerHTML));
})(window.open('about:blank').document,'<!DOCTYPE html><title>Source of ' + location.href + '</title><meta name="viewport" content="width=device-width" /><body style="font-family: monospace, monospace; white-space: pre-wrap;">');