Skip to content

Instantly share code, notes, and snippets.

@antaranyan
antaranyan / START - Template for work experience.md
Created November 6, 2024 10:42
START - Template for work experience.md

Meta

Company, project, date

Situation

What was the situation, problem, or conflict you were facing?

Example: The trainees were learning too slowly and could not navigate the company’s data tracking system by the end of the two-week training period. Instead, they were not ready for another two weeks.

Խայամն ասավ իր սիրուհուն. «Ոտըդ ըզգույշ դիր հողին,
Ո՜վ իմանա՝ որ սիրունի բիբն ես կոխում դու հիմի...»
Հե՜յ, ջա՜ն, մենք էլ ըզգույշ անցնենք, ո՜վ իմանա, թե հիմի
Էն սիրուհու բի՞բն ենք կոխում, թե հուր լեզուն Խայամի։

Testing randomness in Deno

Run tests

deno test random.test.ts

Run tests with seeded random (ensure same sequence for Math.random)

typedef Compare = int Function(Object a, Object b);
class SortedCollection {
Compare compare;
SortedCollection(this.compare);
}
// Initial, broken implementation.
int sort(Object a, Object b) => 0;
@antaranyan
antaranyan / README.md
Last active October 28, 2022 11:28
Space Age

Given an age in seconds, calculate how old someone would be on:

Earth: orbital period 365.25 Earth days, or 31557600 seconds.

Planet Orbital period in Earth years
Mercury 0.2408467
Venus 0.61519726
Mars 1.8808158
Jupiter 11.862615
@antaranyan
antaranyan / maze.md
Last active December 2, 2019 12:32
Maze 🚧
  • bulkUpdateMenuProductsViaCSV (service action)
    • TagController.getAll (service controller)
      • Tags.findAll (model method)
    • SubTagController.getAll (service controller)
      • SubTags.findAll (model method)
    • updateProduct (service action)
      • model.update (model method)

        where model = leaflogixProductModel
        
module Main where
import Prelude
import Data.Tuple
import Control.Monad.Eff.Console (log)
import TryPureScript (render, withConsole)
data Currency
= BTC
| USD