Skip to content
/ til Public

My documentation of different interesting things i learned over the years.

License

Notifications You must be signed in to change notification settings

ahodieb/til

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Today I learned (#TIL)

I always enjoy learning learning new things, so i made it a habbit to learn something new everyday. This documents different interesting topics i learend over the years.

Random

  • Tuning forks are used to tune pianos. Wikipedia
  • Tuning forks are a building block of the quartz crystal powering watches. Wikipedia
  • 1st of jan wasn't always the first day in the year. It was different in alot of countries, e.g. Russia.
  • How regular locks work gif

Science

Tech

Development & Coding

Python

  • Print method
    • I knew most of it, but it had surprising small useful nuggets.
    • Didn't know about end=, that makes animation on the terminal possible (using sequences of '\r')
    • Mocking print in unit tests.
  • map can take multiple iteratiors as extra parameters
    • It passes 1 element for each iterator to to the function, similar to zip
    • Example: map(f, a1, a2, a3) is equevelant to map(f, zip(a1, a2, a3)) #f in the zip case takes a tuple as a parameter
    • Also similar to zip if the arrays are of different length, the elements in the longer arrays are ignored from the combined operation
    • Example
      a1 = [1, 1, 1, 1]
      a2 = [1, 1, ,1]
      a3 = [1, 1]
      list(map(lambda a,b,c: a+b+c, a1, a2,a3)) =>  [3 , 3]

Javascript

Uncategorized dump of the remaining things.

The two generals problem. 
CORBA [common object request broker architecture].
MMX , SIMD SSE



The idea of prime factorization. 
The idea of packet switching vs circuit switching.

Euclidian GCD
The number of counts in a range is given by (range /gcd (range, increment ))

SPARC has a very clever idea of using windows to avoid accessing the memory alot for saving and reading.  Shifting the Window by one makes the output as input for the next instruction.

Quantum computers
The basic idea of qubits . But still no idea about the computation techniques.

The intellectual venture labs . Applying the hacker mind set solving world problems. 

A slight insight into string theory. Visualization of the 9/11 dimensions




Euclidian infinite prime numbers. 

The event horizon.  Black Holes. Thought it might be disproved.

How regular key locks work

Branch predectors.  The behavior of sorting an array of random numbers on their speed

The Apollo navigation system.  How software was woven by wires! 

Convix hull.  A region where any two points can be connected by a straight line.

A real life kinda . use for chain rule in defrentiation.because a variable is dependant on another variable

Before clocks the word "sunwise" was used to indicate "clockwise" direction.
Clocks traditionally rotate "clock wise" because of the clock's predecessor: the sundial.
Clocks with hands were first built in the Northern Hemisphere  and they were made to work like sundials.

Why female lions hunt.
Males protect the pride
Females are less conspicuous.

Gaussian curvature:
Curvature gives strength.
hyperboloid shape is better than regular cylindrical chimneys because its curved in both direction 

Hens vs chickens

Microsoft uses a multi layered approach for it's AVhttps://blogs.technet.microsoft.com/mmpc/2017/12/11/detonating-a-bad-rabbit-windows-defender-antivirus-and-layered-machine-learning-defenses/

Go is type oriented, struct != class. so you can define methods to types.
https://twitter.com/rob_pike/status/942528032887029760

rlwrap
mokcito.verify(times(1)) is implicit


About

My documentation of different interesting things i learned over the years.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published