Skip to content

Instantly share code, notes, and snippets.

View rodion-arr's full-sized avatar
💻
while (awake()) { code() }

Rodion Abdurakhimov rodion-arr

💻
while (awake()) { code() }
View GitHub Profile
@rodion-arr
rodion-arr / Dockerfile
Last active December 30, 2023 18:51
NestJS Dockerfile example
FROM node:20-alpine AS development
WORKDIR /usr/src/app
COPY ./package*.json ./
RUN npm install
COPY ../.. .
@rodion-arr
rodion-arr / README.md
Created May 26, 2022 10:16 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@rodion-arr
rodion-arr / install.md
Created September 6, 2021 09:58 — forked from Ryanb58/install.md
How to install telnet into a alpine docker container. This is useful when using the celery remote debugger in a dev environment.
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found

/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
@rodion-arr
rodion-arr / ci.yml
Last active November 26, 2022 19:43
GitHub Actions for PHP
name: PHP Composer
on:
schedule:
- cron: '23 4 * * *' # Once, nightly
push:
branches: [ master ]
pull_request:
branches: [ master ]
@rodion-arr
rodion-arr / what-forces-layout.md
Created March 4, 2021 12:16 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent