Skip to content

Instantly share code, notes, and snippets.

@uyriq
uyriq / composition-components-in-react.markdown
Last active May 9, 2022 20:37
composition components in react
@uyriq
uyriq / index.html
Created May 11, 2022 15:02
meal choice random
<html>
<head>
<meta charset="UTF-8" />
<script src="https://code.s3.yandex.net/react/libs/react.development.js"></script>
<script src="https://code.s3.yandex.net/react/libs/react-dom.development.js"></script>
<script src="https://code.s3.yandex.net/react/libs/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
@uyriq
uyriq / index.html
Created May 28, 2022 11:39
React-adv-9 Hooks, usestate
<html>
<head>
<meta charset="UTF-8" />
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="root"></div>
@uyriq
uyriq / how-to-build-a-website-layout-with-flexbox-burger.markdown
Last active June 22, 2022 20:00
How to Build a Website Layout with Flexbox (burger)
@uyriq
uyriq / index.html
Created June 23, 2022 18:06
ul-li-list-scroll
<div class="full-screen">
<div class="header">Header</div>
<div class="main">
<div class="left">Menu-stuff here. No way this will fit.
<ul>
<li>Menu Entry</li>
<li>Menu Entry</li>
<li>Menu Entry</li>
<li>Menu Entry</li>
@uyriq
uyriq / .vsconfig
Last active August 8, 2022 16:57
bckp-restore "Slack" , "Microsoft VScode", "gnupg", "Notepad\+\+", "Notion" "figma"
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.Component.MSBuild",
"Microsoft.VisualStudio.Component.CoreBuildTools",
"Microsoft.VisualStudio.Workload.MSBuildTools",
"Microsoft.VisualStudio.Component.Windows10SDK",
"Microsoft.VisualStudio.Component.VC.CoreBuildTools",
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
@uyriq
uyriq / some.js
Created September 18, 2022 17:41
obj or not obj?
if (
typeof yourVariable === 'object' &&
!Array.isArray(yourVariable) &&
yourVariable !== null
) {
executeSomeCode();
}
@uyriq
uyriq / winget-upgradeall.ps1
Created October 21, 2022 15:41
a powershell oneliner way to upgrade all upgradeable packages with winget
$pattern = "\b[A-z]+\.[A-z]+"; winget upgrade --include-unknown |Select-String -Pattern $pattern -All | % { $_.Matches } | % { winget upgrade $_.Value }
@uyriq
uyriq / _part_of_.bashrc.sh
Last active June 30, 2023 22:48
function to run code-insiders quick way ; function to count LOCs ; function to find code in files; TODO NO_PUBKEY fix code
# basta to tedious work to type more then 3 char when run up code editor!
function cod ()
{
pathargument=$1
command -v code-insiders >/dev/null 2>&1 || {