Skip to content

Instantly share code, notes, and snippets.

View alisaliso's full-sized avatar
🕊️

Sasha alisaliso

🕊️
View GitHub Profile
module.exports = {
env: {
es6: true,
},
globals: {
React: 'writable',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 9,
import react from "eslint-plugin-react";
import reactHooks from "eslint-plugin-react-hooks";
import _import from "eslint-plugin-import";
import unusedImports from "eslint-plugin-unused-imports";
import reactRefresh from "eslint-plugin-react-refresh";
import { fixupPluginRules } from "@eslint/compat";
import perfectionist from "eslint-plugin-perfectionist";
import sonarjs from "eslint-plugin-sonarjs";
export default [

List of Postmortem examples

what is a postmortem?

A postmortem is a written record of an incident. Among other things, it documents the incident’s impact, what caused it, the actions taken to mitigate or fix it, and how to prevent it from happening again.

Title

Date - when it happend?

Authors - list of people who erote the postmortem

@alisaliso
alisaliso / perfectSquare.js
Created November 23, 2020 11:43
Issue #171 of rendezvous with cassidoo question
// Given a positive integer n, write a function that
// returns true if it is a perfect square and false otherwise.
// Don’t use any built-in math functions like sqrt.
// Hint: Use binary search!
const perfectSquare = (num) => {
let start = 1;
let end = num;
let ans = 0;
@alisaliso
alisaliso / 📚 Latest Reads
Last active November 4, 2021 19:36
Latest Reads
Currently reading: Structure and Interpretation of Computer Programs
-------------------------------------------------
Recently read: Functional JavaScript by Michael Fogus
@alisaliso
alisaliso / gimmePizza.js
Last active September 28, 2020 14:25
Issue #163 of rendezvous with cassidoo question
// Given an array of people objects (where each person
// has a name and a number of pizza slices they’re
// hungry for) and a number for the number of slices
// that the pizza can be sliced into, return the number of pizzas
// you need to buy.
const arr = [{ name: 'Joe', num: 9 }, { name: 'Cami', num: 3 }, { name: 'Cassidy', num: 4 }]
const gimmePizza = (arr, num) => {
const slices = arr.reduce((acc, person) => acc + person.num, 0);
@alisaliso
alisaliso / doubleNumbers.js
Created September 23, 2020 13:52
ReactJS Developer komoot 2
// Double input with non-arrow function and it's arguments object
function doubleNumbers() {
return [...arguments].map((a) => a * 2);
}
// or with arrow function and destructured parameters
const doubleNumbers = (...args) => {
return args.map((a) => a * 2);
};
@alisaliso
alisaliso / RenderingAnArrayInReact.js
Last active September 23, 2020 09:40
ReactJS Developer komoot 1
<List>
{["Evan", "Ben", "Maria", "Daniel"].map((name, index) => (
<span key={index}>{name}</span>
))}
</List>