# Tianke Youke

A Base for Secreting and Running at Night

0%

## Short Circuit

• a and b evaluates to a if a is falsey, otherwise it evaluates to b
• a or b evaluates to a if a is truthy, otherwise it evaluates to b
• not a evaluates to True if a is falsey, otherwise it evaluates to False
• True is represented as 1, and False is represented as 0.

# Type System

## What are types:

• 意义的逻辑含义
• 一个契约，要求所有成员有共同的特性
• 所有值、变量都有type
• 所有对象object都有type
• 所有class、trait都type

value types & reference types

The Clustrmaps widget can show the visitors' map of my website. It is nice, but its 3D global version is buggy when put on the Hexo website. So I put its .js file locally, and modified several parts in it, to make it displayed normally on Hexo websites.

Maybe one day the .js file will be updated by Clustrmaps, and I'll need to revise it again. So I record what I did here.

1. Download the js file, put it here:/themes/next-new-version/source/js/clustrmaps.js, then the script label in the sidebar.swig is change as: <script type="text/javascript" id="clstr_globe" src="/js/clustrmaps.js?d=gWCOZyJlHF_Sc1eqXROD53yLLxxfC2y7Ytvw9JUfmFg"></script>. This way, I can modify codes in the .js file, or it would cause the following bugs.

2. The variable's name velocity is duplicated with that of Hexo😂😂. So I replaced all with velocityD in the .js file.

3. When the .js script is executed, the Hexo hasn't rendered the page yet, so the container of this widget still has width of 0. However, in the script, it fetches parent's width and sets it at that time! So it will disappear since its width is 0😅. To fix that, I changed the 302 line as:

The parent of parent of parent of the script label has normal width... This is funny but useful...

Write a function to take in a tuple of integers, and it will return the smallest integer that is a multiple of every number in the tuple. Sample run:

>>> print(smallestMultiple((2, 3, 5,)))

30

>>> print(smallestMultiple((1, 2, 3, 4)))

12

>>> print(smallestMultiple((399, 772, 163, 959, 242)))

832307365428

### 概念和定理

My ideal 5 years' cognition plan🤔：

（关于精神分析：拉康/齐泽克）

## 关于生活

《攻壳》TV版的剧集一般都分主线剧集或独立故事剧集，主线之间穿插着独立的故事。第二季第2话就是一集独立故事，总时长也不到半小时，因此如果感兴趣不妨去看一看，b站上就有。《攻壳机动队》TV版第二季第2话