Skip to content

Instantly share code, notes, and snippets.

View darkkain's full-sized avatar
🏠
Working from home

Misha Andreichenko darkkain

🏠
Working from home
View GitHub Profile
@darkkain
darkkain / web-servers.md
Created November 8, 2015 17:03 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@darkkain
darkkain / link-git-tutorial.md
Last active September 19, 2022 16:52
base list of resourses about git
я понятие не имею что творится ниже :D

Хеллоу

Задача была такая:

Вывести модалку, внутри которой будет динамический контент (image + text). Контент берётся из дива по которому кликнули. А была красивая идея, ни в коем случае не создавать больше одной модалки, никаких стилей дублирующих.

Проблема решение в том, что обычными средствами не изменить css т.к. по красивой задумке, изображение вставлялось в псевдоэлемент before.

Всё снизу НЕРЕЛЕВАНТНО, СКРОЛЬ ВНИЗ К КОМЕНТАМ

TL; DR

  • Only "woff", Другие браузеры получает старые «безопасные» шрифты.
  • Download (ttf) and optimization
  • NO CDN!
  • Отдаем их в качестве CSS, URIs с закодированными в base64 данными
      @font-face {
          font-family: 'Aeromatics';
Verifying that +dkk is my openname (Bitcoin username). https://onename.io/dkk