This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var userName = "Perry"; | |
| var userName = "Jerry"; // эта переменная перетрет верхнюю | |
| let age = 10; | |
| // let age = true; // нельзя повторно объявить переменную через let или const если она была объявлена раннее | |
| let secondUser = { | |
| name: userName, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "recommendations": [ | |
| /* https://open-vsx.org/vscode/item?itemName=<exntension-id> */ | |
| "vadimcn.vscode-lldb", | |
| "alefragnani.bookmarks", | |
| "usernamehw.errorlens", | |
| "tobermory.es6-string-html", | |
| "tamasfe.even-better-toml", | |
| "github.github-vscode-theme", | |
| "esbenp.prettier-vscode", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "esa" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| eframe = "0.34.1" | |
| egui-async = "0.4.1" | |
| env_logger = { version = "0.11.10", features = ["auto-color", "humantime"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.22 | |
| RUN apk update && \ | |
| apk upgrade && \ | |
| apk add --no-cache \ | |
| zsh \ | |
| git \ | |
| curl \ | |
| neovim \ | |
| ripgrep \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Example MSSQL Language server support in VS Code | |
| */ | |
| import { LanguageClient, ServerOptions, TransportKind, LanguageClientOptions } from "vscode-languageclient"; | |
| import * as vscode from "vscode"; | |
| let client: LanguageClient; | |
| export async function activate(context: vscode.ExtensionContext) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //#region Polyfills & TypeScript utils | |
| if (typeof Object.create !== "function") { | |
| /** | |
| * Polyfill | |
| * {@link https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/Object/create#polyfill} | |
| */ | |
| Object.create = (function () { | |
| /** @constructor */ | |
| function Temp() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @typedef {Object} MyObject | |
| * @property {string} knownProperty - Известное свойство | |
| */ | |
| /** | |
| * @returns {MyObject & { [key: string]: any }} | |
| */ | |
| function createObject() { | |
| const obj = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| void main() async { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| final prefs = await SharedPreferences.getInstance(); | |
| runApp(App( | |
| themeController: ThemeController(prefs), |
NewerOlder