Skip to content

Instantly share code, notes, and snippets.

View LordJohn42's full-sized avatar
🪆

Eugene LordJohn42

🪆
View GitHub Profile
@marco79cgn
marco79cgn / dm-toilet-paper.js
Last active February 29, 2024 17:35
iOS Widget, das die Anzahl an Klopapier Packungen in deiner nächsten dm Drogerie anzeigt (für die scriptable.app)
// dm Klopapier Widget
//
// Copyright (C) 2020 by marco79 <marco79cgn@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
@barinbritva
barinbritva / frontend-live-2020.md
Last active December 12, 2021 14:47
Список ссылок с доклада "TypeScript как фундамент архитектуры приложения" FrontendLive 2020

Ссылки

Рефакторинг

Refactoring.Guru - всё про рефакторинг: что такое рефакторинг, как понять, что настало время проводить рефакторинг, как его проводить, паттерны проектирования с примерами на многих языках, включая TypeScript.

Разворачивание проекта на TypeScript

  • init-typescript-app - мой пакет для разворачивания проектов, на котором был создан проект для презентации. Возможность выбирать "строгость" TypeScript для новичков или опытных, публикация вашего пакета в NPM.
  • TSDX - разворачивание TypeScript проекта, prettier, rollup, eslint
  • oclif и Gluegun - разворачивание TypeScript для создания CLI утилит
  • Nest TypeScript Starter - официальный темплейт для создания бекенд-приложений на NestJS

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

@XaveScor
XaveScor / contextVsStateManager.MD
Last active February 2, 2024 10:57
Context vs StateManager

По мотивам вопросов чатика react.js@telegram

Оффтоп: пожалуйста, не нужно в сотый раз объяснять уже набившую оскомину тему новичку, который задаст подобный вопрос. Просто поделитесь ссылкой на этот текст. С уважением, Андрей @XaveScor Звёздочка


Краткий ответ на этот вопрос, если вы не хотите разбираться детальнее:

  • Если вы экспериментируете, то можете взять в качестве стейт-менеджера что угодно. Буквально. Опыт лишним не будет.
@primaryobjects
primaryobjects / 1-reverse-vowels.js
Created February 4, 2017 21:01
Reverse Vowels of a String
/* Approach 1. Loop through string and store vowels on array, placeholders in string. Then loop through string again and replace in vowels in reverse order. */
var reverseVowels = function(s) {
var result = '';
var string = [];
var vowels = [];
// Start from front of string to find consonants and vowels.
for (var i=0; i<s.length; i++) {
var orig = s[i];
@monolithed
monolithed / WYSIWYG.md
Last active August 19, 2023 14:28
WYSIWYG редакторы

Обзор WYSIWYG-редакторов (2017 г.):

  • Свободная лицензия (в идеале)
  • API
  • Масштабировать текст по количеству символов (в идеале)
  • Быть кроссбраузерным
  • Сокращать ссылки и подсвечивать ссылки
  • Иметь защиту от XSS
  • Конфигурироваться
  • Поддерживать историю
@vasanthk
vasanthk / System Design.md
Last active March 29, 2024 06:27
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 24, 2024 02:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vertexclique
vertexclique / cracking.md
Last active February 26, 2024 03:43
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text