Skip to content

Instantly share code, notes, and snippets.

View leodevbro's full-sized avatar
Soccer and Table tennis

Levan Katsadze leodevbro

Soccer and Table tennis
View GitHub Profile
assets/app/media/img/users/100_7.jpg 13.4 KiB [emitted]
assets/app/media/img/users/100_8.jpg 13.1 KiB [emitted]
assets/app/media/img/users/100_9.jpg 11.4 KiB [emitted]
assets/app/media/img/users/300_1.jpg 83.5 KiB [emitted]
assets/app/media/img/users/300_10.jpg 75.1 KiB [emitted]
assets/app/media/img/users/300_11.jpg 80.5 KiB [emitted]
assets/app/media/img/users/300_12.jpg 80.6 KiB [emitted]
assets/app/media/img/users/300_13.jpg 108 KiB [emitted]
assets/app/media/img/users/300_14.jpg 87.9 KiB [emitted]
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Users\\leodevbroUser\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'exec',
0 verbose cli '--yes=false',
0 verbose cli '--',
0 verbose cli 'husky-run',
0 verbose cli 'pre-commit'
0 verbose cli ]
1 info using npm@7.19.1
const myPhone = "412341006541651";
const myRegex = new RegExp(`^5[0-9]*`);
const myArray = myPhone.match(myRegex);
if (myArray) {
console.log("this number starts with 5:", myArray.length > 0);
} else {
console.log("this number starts with 5:", false);
}
ჯერ ასე უნდა დააიმპორტო
import lupiLogoBuildPath from "./images/lupi.png";
და მერე ასე უნდა ჩასვა:
<img src={lupiLogoBuildPath} alt="lupi logo" />
const makeStringReverse = (inputString) => {
const stringLength = inputString.length;
const lastIndex = stringLength - 1; // რადგან 0-დან იწყება ინდექსების ათვლა
let pasuxi = ""; // ჯერ ცარიელია
for (let i = lastIndex; i >= 0; i -= 1) {
pasuxi += inputString[i];
}
return(pasuxi);
@leodevbro
leodevbro / asasd.ts
Last active September 2, 2021 17:38
const myFunction = (inputArray) => {
for (let i = 0; i < inputArray.length; i += 1) {
inputArray[i] += 1;
}
return(inputArray);
};
const mySuperArray = [4, 8, 15, 29];
console.log(myFunction(mySuperArray)); // უნდა დაბეჭდოს 5, 9, 16, 30
let a = {v: 0};
let parentFn = () => {
let z = a;
let childFn = () => {
console.log(z.v);
};
return(childFn);
};
let myFn = parentFn();
// 1)
console.log(3, typeof 3); // 3 "number"
console.log("a", typeof "a"); // "a" "string"
console.log(2, typeof 2, "a", typeof "a"); // 2 "number" "a" "string"
// 2) Recursion
/* eslint-disable @typescript-eslint/naming-convention */
// import * as path from "path";
// import * as vscode from "vscode";
import { IExtensionPackage, IGrammar } from "./IExtensionGrammar";
// import fs = require("fs");
import { getRegexForBrackets } from "./bracketUtil";
// import JSON5 = require("json5");
import * as JSON5 from "json5";
import LanguageConfig from "./languageConfig";
// var ab2str = require("arraybuffer-to-string");
@media screen and (min-width: 1281px) {
.slider-header.slider-header.slider-header {
inset: 22% auto auto 40%;
align-items: center;
}
.slider-header.slider-header.slider-header h2 {
margin-right: 0px;
}
}