Skip to content

Instantly share code, notes, and snippets.

View Limonadovy-joe's full-sized avatar
🇨🇿

Limonadovy-joe

🇨🇿
View GitHub Profile
@Limonadovy-joe
Limonadovy-joe / nvmCommands.js
Created September 19, 2023 14:02 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@Limonadovy-joe
Limonadovy-joe / _functions.scss
Created February 1, 2022 12:23
Sass convertor function: String -> Number
/// Convert string to number
/// @access public
/// @group string
/// @param {String} $value - string value to parse to number
/// @return {Number} - parsed string to number
@function to-number($value) {
@if type-of($value) == "number" {
@return $value;
} @else if type-of($value) != "string" {
@error 'Value for `to-number` should be a number or a string.';
@Limonadovy-joe
Limonadovy-joe / _mixins.scss
Last active February 1, 2022 12:29
Create font-face with support for old browsers
@use "sass:map";
@use "sass:string";
@import "./_helpers.scss";
@import "./_variables.scss";
/// Output a @font-face declaration
/// @access public
/// @group webfonts
/// @param {String} $font-family - name of font-family
/// @param {String} $path - address of the source font, can be an absolute HTPP or relative
@Limonadovy-joe
Limonadovy-joe / _functions.scss
Last active February 1, 2022 14:09
Generate color-palette for the given color (default 10 tints)
@use "sass:map";
@use "sass:list";
@use "sass:math";
@use "sass:string";
/// Generate color palette
/// @access public
/// @group colors
/// @param {Color} $color-base - specify the color that you want to start generate tints
/// @param {Map} $tints - color tints