Skip to content

Instantly share code, notes, and snippets.

View Otann's full-sized avatar
centring an emoji inside a circle is indeed difficult

Anton Chebotaev Otann

centring an emoji inside a circle is indeed difficult
View GitHub Profile
https://storage.yandexcloud.net/letoved/dubrodobro/MemoryMediaUtility_5_0_0_mac.zip
https://storage.yandexcloud.net/letoved/dubrodobro/SxSDeviceDriver_5_0_0_mac.zip
https://storage.yandexcloud.net/letoved/dubrodobro/SxSUDFDriver_5_0_0_mac.zip
[gcode_macro HEAT_SOAK]
description: heats the bed for a while
variable_target_temp: 0
variable_stage: None ## heating -> soaking -> done -> None
## in seconds
variable_check_interval: 10
variable_soak_time_remaining: 0
variable_total_time_elapsed: 0
@Otann
Otann / Movies.md
Last active December 28, 2024 12:44
1.	Прибытие поезда (1895)
2.	Путешествие на Луну (1902)
3.	Большое ограбление поезда (1903)
4.	Стенька Разин (1908)
5.	Оборона Севастополя (1911)
6.	Рождение нации (1915)
7.	Пиковая дама (1916)
8.	Кабинет доктора Калигари (1920)
9.	Носферату, симфония ужаса (1922)
10.	Аэлита (1924)
# Generated by Powerlevel10k configuration wizard on 2020-02-13 at 11:50 CET.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 38685.
# Wizard options: nerdfont-complete + powerline, large icons, rainbow,
# angled separators, sharp heads, flat tails, 1 line, compact, few icons, concise.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block, everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

Problem

On Mac if you install almost any version of the powerline, your MacOS Terminal.app would try to inprove contrast of text symbol, which is used as the end of the "bullet train":

Screen Shot 2020-02-13 at 6 42 11 PM

This is somewhat documented in this answer on AskDifferent:

Terminal automatically applies a minimum contrast when displaying an ANSI (or extended 256-color table) color on the terminal background color, or when displaying the terminal foreground/text color on an ANSI background color.

@Otann
Otann / A2.pdf
Created June 1, 2019 19:55
Life Calendar
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
.home_right_column > div:nth-child(1),
.home_right_column > div:nth-child(4),
#userNav,
#universalNav,
#pinnedNav,
#appsNav,
#createNav,
#pagelet_rhc_footer {
-webkit-transition: opacity 250ms ease-in-out;
-moz-transition: opacity 250ms ease-in-out;
(ns probe.components.editable
(:require [rum.core :as rum]))
; Component that will replace itself with an input
; When user clicks on it and back to span when it loses focus
(rum/defcs editable-ui
< rum/reactive (rum/local false ::focused)
[react-state value-atom on-change]
(let [local (::focused react-state)
value (rum/react value-atom)
@Otann
Otann / core.cljs
Created April 15, 2017 12:59
Scum example
(ns probe.core
(:require-macros [cljs.core.async.macros :refer [go go-loop]])
(:require [rum.core :as r]
[scrum.core :as scrum]
[probe.scrum.counter :as counter]))
(defonce reconciler
(scrum/reconciler {:state (atom {})
:controllers {:counter/state counter/counter-controller}}))
(defonce init-ctrl