Skip to content

Instantly share code, notes, and snippets.

View myfonj's full-sized avatar

Michal Čaplygin myfonj

View GitHub Profile
@myfonj
myfonj / result-fx-65b1-2018-12-06.txt
Last active January 2, 2019 12:34
Unicode characters that decomposes to ASCII + something
 ¨¯´¸˘˙˚˛˜˝ͺ΄΅᾽᾿῀῁῍῎῏῝῞῟῭΅´῾           ‗ ‾  ゛゜ﱞﱟﱠﱡﱢﱣ﹉﹊﹋﹌ﹰﹲﹴﹶﹸﹺﹼﹾ ̄
!‼⁉︕﹗!
""
#﹟#
$﹩$
%﹪%
&﹠&
''
(⁽₍⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛㈜㈝㈞㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩㈪㈫㈬㈭㈮㈯㈰㈱㈲㈳㈴㈵㈶㈷㈸㈹㈺㈻㈼㈽㈾㈿㉀㉁㉂㉃︵﹙(🄐🄑🄒🄓🄔🄕🄖🄗🄘🄙🄚🄛🄜🄝🄞🄟🄠🄡🄢🄣🄤🄥🄦🄧🄨🄩
)⁾₎︶﹚)
@myfonj
myfonj / font-feature-settings.css
Last active December 5, 2018 16:08
Latin-related font feature settings with descriptions from Wikipedia
/*
https://en.wikipedia.org/wiki/List_of_typographic_features
2018-12-05
*/
html {
font-feature-settings:
/*
Features intended for bicameral [cased] alphabets (Latin, Greek, Cyrillic, etc.)
*/
"smcp" off, /* S1 Small Caps - Substitutes lower-case letters with small caps versions */
aäāăąàáãåæcçćĉċčdďđeèéêëēĕėęěgĝğġģhĥħiìíîïĩīĭįıijjĵķĸlĺļľŀłnñńņňʼnŋoøðòóôõöōŏőœrŕŗřsśŝşštţťŧuùúûüũūŭůűųwŵyýŷÿzźżžþſ
@myfonj
myfonj / ezwinports-batch-download-howto.txt
Created November 25, 2018 19:16
ezwinports bulk download and extract
// prereqs: modern browser, wget, 7zip, text editor
// navigate to:
https://sourceforge.net/projects/ezwinports/files/
// press:
ctrl+shift+k
// type/paste, enter
copy($$('[href$="-bin.zip/download"],[href$="README.txt/download"]').map(e=>e.href).join('\n'))
// paste into file
ezwinports.txt
// sort lines
@myfonj
myfonj / 7+tt.keyboard.txt
Last active August 22, 2023 23:48
Win+Page Up / Down for switching through taskbar items (like tabbing) via 7+ Taskbar Tweaker - Advanced Settings - Keyboard Shortcuts
0x21|win
101
0x22|win
102
@myfonj
myfonj / dabblet.css
Created January 31, 2018 16:05
CSS namespace for feature toggling
/* CSS namespace for feature toggling */
@namespace borders "http://www.w3.org/1999/xhtml";
@namespace darkness "http://www.w3.org/1999/xhtml";
@namespace layout "http://www.w3.org/1999/xhtml";
/* delete 'DELETEME': */
@namespace DELETEMEeffects "http://www.w3.org/1999/xhtml";
/* cripple implicit namespace URL for breaking defaults: */
@namespace "http://www.w3.org/1999/xhtml";
body { font-family: Georgia, serif; }
code { font-family: monospace, monospace; outline: 1px dotted; }
@myfonj
myfonj / RocketChat Compact.md
Last active July 8, 2018 20:48
RocketChat Compact

RocketChat Compact CSS

Makes Rocket.Chat even more compact / condensed

Prerequisites

  • set User (your top left avatar image) > My Account > Messages: View Mode to "Normal" (messages will be affected anyways, but I haven't tested this in other modes).
  • set Sidebar View Mode (list icon, third next to your avatar) to "Condensed",

How to try:

@myfonj
myfonj / dummyze2.html
Last active January 4, 2024 16:00
Dummyze bookmarklet - replace all texts in page with ▒▒▒▒ and images with dummyimage.com counterparts
<p>Bookmarklet:
<a title="Dummyze2" href="javascript:(function (dummyze, entry) {function textWalker(node, cbck) {var i = -1,n, s, w, h;if (!node) {return}if (node.nodeType === 3) {cbck(node, 'nodeValue');return}if (node.tagName == 'IFRAME') {try {textWalker(node.contentDocument.documentElement, cbck)} catch (e) {}return}if (node.tagName == 'STYLE' || node.tagName == 'SCRIPT' || node.tagName == 'SVG') {return}if (node.tagName == 'IMG') {s = getComputedStyle(node);node.src = 'https://dummyimage.com/' + (parseInt(s.width) || 10) + 'x' + (parseInt(s.height) || 10);return}if (node.tagName == 'INPUT' || node.tagName == 'TEXTAREA') {cbck(node, 'placeholder');cbck(node, 'value');return}if (node.tagName) {if ((s = node.getAttribute('style')) &amp;&amp; (s = (s = getComputedStyle(node)).backgroundImage) &amp;&amp; (s != 'none') &amp;&amp; (s = (s.match(/url\(&quot;([^&quot;]+)&quot;\)/))) &amp;&amp; (s = s[1])) {pic = new Image();pic.onload = function () {node.style.backgroundImage = 'url(https://dummyimage.com/' + (p
@myfonj
myfonj / dabblet.css
Last active June 27, 2016 21:33
Chrome radial-gradient closest-side color stop nearing 100% clamps to infinity
/** Chrome radial-gradient closest-side color stop nearing 100% clamps to infinity
*/
.a { background-image: radial-gradient(closest-side, red 50%, white 0) }
.b { background-image: radial-gradient(closest-side, red 99%, white 0) }
.c { background-image: radial-gradient(closest-side, red 99.609371185302727214061491167740314267575740814208984374%, white 0)}
.d { background-image: radial-gradient(closest-side, red 99.609371185302727214061491167740314267575740814208984375%, white 0)}
.e { background-image: radial-gradient(closest-side, red 100%, white 0)}
p { width: 15vw; height: 15vw; margin-right: 2vw; background-color: #ccc; float: left; word-break: break-all; word-wrap: break-word; border: 1px solid; }
@myfonj
myfonj / js_multiline_string.html
Created May 27, 2014 17:46
Javascript multiline string expression shim
<!DOCTYPE HTML><html><head><meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>Javascript multiline string expression shim</title><style type="text/css">
body{background-color:#333;color:#ccc;max-width:40em;margin:0 auto;}
h1,h2,h3,em,strong,th,thead,label,dt,legend,caption{color:#fff}
a:link{color:#6ff}a:visited{color:#9f3}label:hover,a:hover{background-color:#000}
html *{font-family:"Courier New",monospace}
pre{tab-size:2;-moz-tab-size:2;background-color: #444}
</style></head><body>