Skip to content

Instantly share code, notes, and snippets.

@ka66ann
ka66ann / index.markdown
Created October 2, 2022 06:49
xkcd #1820 Printout

Security Tips

(Print out this list and keep it in your bank safe deposit box.)

  • Don't click links to websites
  • Use prime numbers in your password
  • Change your password manager monthly
  • Hold your breath while crossing the border
  • Install a secure font
  • Use a 2-factor smoke detector
@ka66ann
ka66ann / index.html
Created September 5, 2022 17:24
react/firebase accordion
<div class="contain pad">
<div class="row">
<div class="col-2-3 pad-left" id="app"></div>
 </div>
</div>
@ka66ann
ka66ann / tsconfig.json
Created June 23, 2022 13:16 — forked from KRostyslav/tsconfig.json
tsconfig.json с комментариями.
// Файл "tsconfig.json":
// - устанавливает корневой каталог проекта TypeScript;
// - выполняет настройку параметров компиляции;
// - устанавливает файлы проекта.
// Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта.
// Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта.
// Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга.
// Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути.
// Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию.
// Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json".
@ka66ann
ka66ann / Middleware.js
Created June 15, 2022 15:32 — forked from unbug/Middleware.js
Powerful Javascript Middleware Pattern Implementation, apply middleweares to any object. https://unbug.github.io/js-middleware/
'use strict';
/* eslint-disable consistent-this */
let middlewareManagerHash = [];
/**
* Composes single-argument functions from right to left. The rightmost
* function can take multiple arguments as it provides the signature for
* the resulting composite function.
*
export const VE = '1.0.0'
export async function pre() {
console.log('on prepublish')
}
export async function post() {
@ka66ann
ka66ann / index.html
Created June 6, 2022 18:35
Xterm.js input
<!doctype html>
<html>
<head>
<title>Mohamed Elgharbawy</title>
<link rel="stylesheet" href="css/xterm.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xterm/3.14.5/xterm.min.js"></script>
<!-- Favicons -->
<link href="img/m.png" rel="icon">
@ka66ann
ka66ann / index.html
Created June 6, 2022 18:35
Testing Terminal
<div id="container"><p id="terminal"></p></div>
@ka66ann
ka66ann / basic-react-terminal-emulator.markdown
Created June 6, 2022 18:35
Basic React Terminal Emulator