Open Source Smart Watch

  • Very similar to another project I have already heard about called the Watchy
  • Made by Paul Smith with news over at Hackster.io.
  • The project has a website and a GitHub organization.
  • It has got a micro-USB port for data transfer and charging.
  • The main one has a SD-card slot for data storage. The lite one has no SD-card slot.
  • The components used are:
    • EPS32-micro-D4: 2×240 MHz, 320 KB RAM
    • Bluetooth 4.2 BR/EDR BLE
    • Wi-Fi 2.4GHz 802.11 b/g/n
    • GC9A01 240×240 16bit TFT display (round)
    • BMA400 Accelerometer + Pedometer
    • MCP73831 LiPo Charger
    • CH340E USB Serial
    • In the GPS edition
      • Quectel L96 GPS module
      • 4 MB RAM
      • microSD
  • This is genuinely fascinating to me. Maybe someday I will make my own.

Python

list = ["E", "D", "C", "B", "A"]
print(list)

This gives you the following:

['E', 'D', 'C', 'B', 'A']

Now what if you wanted to print it a different format 🧐. Here are some options from geeksforgeeks:

  1. Using for loop:

    for x in list:
      print(x, end=" ")
    

    This will give you:

    E D C B A
    
  2. Without using loops: * symbol is used to print the list elements in a single line with space as the separator.

    print(*list)
    # or
    print(*list, sep = ", ")
    

    You get:

    E D C B A
    # or
    E, D, C, B, A
    
  3. Convert the list into a string : using the join() method. 1

    print(' '.join(list))
    

    Output:

    E D C B A
    
    • Using map() function : we can convert each item in a list to string and then join them.

      a = [1, 2, 3, 4, 5]
      print(' '.join(map(str, a)))
      

      We get:

      1 2 3 4 5
      

Can use tables inside a footnote of Hugo

As long as the table is aligned below the footnote, this works by default (Hugo version 81.0 with Papermod theme).

Anki

Python

  • Lists are mutable.

  • count() method returns the number of non-overlapping occurrences of substring

  • Lists can have multiple occurrences of the same element.

  • Slice works in [start:stop:step].

  • Negative step in slice notation reverses the direction. Eg:

    t = '12345'
    print(t[::-1])
    print(t[::-2])
    

    produces the output:

    54321
    531
    
  • // is a floor division operator, division rounded down.

    >>> a = 5//2
    >>> print a
    2
    

Math

  • Simply Connected Domain
  • Morera’s Theorem
  • Cauchy’s Integral Theorem
  • Winding Number

  1. Found the difference here.

    MethodFunction
    called by its name; associated to an object (dependent)called by its name (independent)
    the object (where invoked) is implicitly passedparameters (if any) are explicitly passed
    may or may not return any datamay or may not return any data
    only works in the class where it is definedno class involved
     ↩︎