4 Matching Annotations
  1. Oct 2024
    1. Active recall testing means being asked a question and trying to remember the answer.
    1. When you are programming, you are writing a control flow diagrams embedded with state transition methods through code.

      Acc to structured program theorem, You essentially need three control structures to write any computable program. 1. Sequence <code> <code> <code> ... 2. Selection if <condition> | <code_this> # if true else <code_that> # if false 3. Iteration <loop> | <code> # exists for do..while | if <condition> | escape # if true | <code> # exists for while repeat <loop>

      Due to the reliable ubiquity of the first structure, any set of sequenced program statements could be deemed as a code block. Then, control flow structures command the order in which these various code blocks are executed.

      There are various control flow methods. * Conditionals for selection (like if, switch...) * Loops for iteration (like for, while..) * Routines for abstraction (like function, class...)

    1. Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100, but these centurial years are leap years if they are exactly divisible by 400.

      If you came from programming background; Each year divisible by 4 is a leap year. EXPECT Each year divisible by 100 is not. BUT Each year, that is divisible by 100, which is also divisible by 400, is a leap year. div 4 to div 100 to div 400

  2. Sep 2024
    1. Summary: Markdown is a simple and lightweight markup language. Text files with .md extension can be parsed to HTML code with this markup. Basic features:-

      Heading

      Horizontal Rule


      Paragraphs

      This is text.

      Linebreaks

      This is a line. <br> Another line.

      Lists

      1. item 1

      2. item 2

      Formatting

      bold italics bolditalics

      Block Quotes

      This is a quote

      Code Blocks

      code

      Links

      link

      References

      Here is a citation

      PS: There is no native feature to comment in markdown