Skip to content

Instantly share code, notes, and snippets.

View boardev's full-sized avatar

Boar boardev

  • MHP
  • Ukraine
  • 01:06 (UTC +02:00)
View GitHub Profile

Hexadecimal color code for transparency

All hex value from 100% to 0% alpha:

sample

  • 100% — FF
  • 99% — FC
  • 98% — FA
  • 97% — F7

Open Powershell and run the following commands to install oh-my-posh and posh-git

Set-ExecutionPolicy Bypass -Scope Process -Force 

Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))

PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force

Open Notepad to config Powershell profile

function flow(...fns) {
return arg => fns.reduce((res,fn) => fn(res),arg);
}
function partial(fn,initialArgs) {
return (nextArgs = []) => fn(...initialArgs,...nextArgs);
}
function pick(prop) {
return obj => obj[prop];
}
function prepend(prefix) {
@boardev
boardev / Commands.md
Last active July 13, 2023 19:50
Vscode
debug.addConfiguration
debug.installAdditionalDebuggers
debug.logToDebugConsole
debug.removeBreakpoint
debug.removeWatchExpression
debug.renameWatchExpression
debug.setVariable
debug.toggleBreakpoint
editor.action.addCommentLine
@boardev
boardev / emojis.md
Created May 30, 2023 16:38 — forked from jreisinger/emojis.md
emojis

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@boardev
boardev / index.ts
Last active July 1, 2023 19:29 — forked from gabrielcsapo/index.js
removes all eslint-disable comments
import fs from 'node:fs'
import os from 'node:os'
import fg from 'fast-glob'
import chalk from 'kolorist'
import workerpool from 'workerpool'
const maxWorkers = Math.ceil(os.cpus().length / 3)
const pool = workerpool.pool(`${__dirname}/worker.js`, { maxWorkers, workerType: 'thread' })