Measure Zero


  • About

  • Quotes

  • Notes

  • Sitemap

  • Search

一次找短租的经历

2020-07-29 | ~ | Miscellanea

可用的工具

  • 微信小程序
    • 暖房直租. 提供了实用的避坑指南, 推荐阅读.
    • 拼室友. 可以发布求租信息.
  • 豆瓣. 在 “城市+租房” 小组中发布信息或者在小组中搜索地铁名/小区名/路名等. 这里特别要注意的是由于别人发布可能只提及小区名, 所以搜索小区名是很关键的操作.
  • Airbnb. 在 app store 中评价是独一档的高.
  • 其他民宿短租平台: 小猪, 蚂蚁, 途家. 没有用过, 可以参考 四大民宿短租平台对比:Airbnb 、小猪、蚂蚁、途家谁最靠谱?.
  • 中介. 没用过.

其他大平台, 如链家, 贝壳等往往不能短租; 但是可以参考他们提供的信息, 比如房价, 设施等, 根据这个制定 checklist.

Read more »

建站记录

2020-07-23 | ~ 2022-01-13 | Miscellanea

当前状况

在 Jekyll 版本的 NexT 主题上做了若干修改. 目前初步搬运完成, 还需要进一步 debug.

线下使用 VNote 写作, 目前发现的和线上 md 的区别:

  • 链接 [discription](url) 描述中如果有 | 的话线上会编译成 table, 需要转义.
Read more »

Game Log for Tactics Ogre LUCT One Vision Mod

2020-07-17 | ~ 2021-01-02 | Games

I have moved some contents (including cheatcode generators) to wiki to reduce clutter. (2020/11/1)

Here is the new post. (2021/1/2)

Read more »

动画资料杂录

2020-07-11 | ~ 2021-08-15 | Anime

制作流程和基本知识

  • 《白箱》. 除了科普, 本身素质就可圈可点. 了解一些知识之后再看体验更佳. A 站可以免费观看, 并且字幕组翻译得很好, 注释也非常良心. 付 zecy 的白箱解说.
  • 一个视频让你彻底了解动画是怎么做出来的——Anitama解新番特别篇第一期.
  • 制作一部动画需要多少种分工?
  • 日本动画中的摄影是一个什么样的岗位?
  • 动画方面主要推荐两个人, 值得看的内容很多: anitama (各平台, 核心人物是 nbht), zecy (知乎)
  • 京都动画作画手册
  • 有哪些动漫方面研究资料值得推荐?
  • 没什么卵用的术语——日本动画常用术语翻译
Read more »

关于《浪客剑心》的几句话

2020-07-02 | ~ | Anime

Read more »

皇家骑士团 命运之轮 国外改版 OV mod 中文指南

2020-06-24 | ~ 2021-01-21 | Games

Tactics Ogre One Vision Mod

写了简易版, 若没有反馈就不再补充.

有问题可以直接问我.

Read more »

关于《向山进发》的几句话

2020-06-16 | ~ 2021-02-18 | Anime

Read more »

Refutation of an Article on Shuffling in TCG

2020-06-14 | ~ | Mathematics

Months ago I came across an article on the methods of shuffling cards in TCG tournaments. Given limited time in a match, the author, hyakkoTCG@hyakko_tcg sought a way to mix a deck thoroughly by shuffling three times. However, at least to me, it is obvious that the methodology proposed is fundamentally flawed. Later I found out in surprise that the article was widely disseminated: it got 2.3k retweets and 3.1k likes on twitter.

Read more »

厨艺杂录

2020-06-08 | ~ 2021-01-01 | Food and Cooking

本系列起始于 2019 年夏天, 目的是记录自己学习厨艺的过程, 尽量把烹饪流程拆分成原子操作, 并探究其原理. 不过因为实践的次数极少所以进展龟速, 另外原理部分我是外行, 全靠查资料, 这进一步拖慢了进度. 姑且先发出来之后慢慢填坑.

Read more »

编程题杂录

2020-06-08 | ~ 2020-07-19 | Algorithms

LeetCode 847. Shortest Path Visiting All Nodes

2020/7/19

广度优先搜索.

一个 trick 是可以用二进制数表示访问过的节点, 1 表示访问过, 0 表示未访问过. 比如一共 5 个节点 (0-indexed), 则可以用 11001 表示访问过节点 0, 3, 4. 位运算 1<<n 比 2**n 快得多.

from collections import deque

class Solution:
    def shortestPathLength(self, graph: List[List[int]]) -> int:
        '''
        binary representation
        e.g. 11001 for nodes 034 visited and 12 unvisited
        '''
        goal = (1<<len(graph)) - 1
        # (curr_node, visited_nodes, steps)
        queue = deque((node, 1<<node, 0) for node in range(len(graph)))
        seen = set()
        while queue:
            curr_node, visited_nodes, steps = queue.popleft()
            if visited_nodes == goal:
                return steps
            for adj_node in graph[curr_node]:
                state = (adj_node, visited_nodes | 1<<adj_node, steps+1)
                if state not in seen:
                    seen.add(state)
                    queue.append(state) 
        return -1
Read more »
1 … 15 16 17 18
Shiina

Shiina

知乎 豆瓣 bangumi Instagram Weibo
Creative Commons
RSS
© 2019 - 2025   Shiina   CC BY-NC-ND 4.0
RSS  
Powered by Jekyll
 
Theme NexT.Mist