摘要: 应用场景 sh/bash实在写不习惯 我还是想写c#…. dotnet: https://dotnet.microsoft.com/en-us/download dotnet tool install -g dotnet-script 脚手架 dotnet script init Note: 脚手架 阅读全文
posted @ 2022-09-25 16:54 仙贝 阅读(205) 评论(0) 推荐(0)
摘要: left=0 right=length-1时,当进行left和right移动的时候一定要等于二分点+1或二分点-1 (不然,假设终止条件是left>right,当target=arr[lenth-1]的时候会死循环) left=0 right=length时, 当进行left和right移动的时候就 阅读全文
posted @ 2021-12-01 22:23 仙贝 阅读(170) 评论(0) 推荐(0)
摘要: Universal hashing https://en.wikipedia.org/wiki/Universal_hashing Notion \(\delta_f(x,y) = \begin{cases}1 &f(x)==f(y)&and&x\neq y\\0&otherwise\end{cas 阅读全文
posted @ 2020-12-27 18:38 仙贝 阅读(223) 评论(0) 推荐(0)
摘要: 用安装镜像进入rescue模式 chroot /mnt/sysimage/ rescue模式不会自动配置网络,需要手动配置。使用ip link命令。 ip link set dev xxxx up ip addr add xx.xx.xx.xx/24 dev xxxx ip route add de 阅读全文
posted @ 2020-08-14 20:05 仙贝 阅读(2991) 评论(0) 推荐(0)
摘要: If you get this error when booting any menuentry:error: no suitable mode foundBooting howeverThen you need to initialize GRUB graphical terminal (gfxt... 阅读全文
posted @ 2015-10-20 13:54 仙贝 阅读(3390) 评论(0) 推荐(0)
摘要: http://www.codeproject.com/Articles/732646/Fast-digital-I-O-for-Arduinohttp://www.codeproject.com/Articles/589299/Why-is-the-digital-I-O-in-Arduino-sl... 阅读全文
posted @ 2015-07-04 22:54 仙贝 阅读(204) 评论(0) 推荐(0)
摘要: 相信大家对SQL中的参数化查询并不陌生吧?可是有时候我总是记不住where in 语句的参数化查询方法该怎么写。于是写在这里给自己做个备忘,顺便也提醒一下和我有一样毛病的朋友。 1 using System; 2 using System.Collections.Generic; 3 usi... 阅读全文
posted @ 2015-02-08 14:02 仙贝 阅读(2138) 评论(0) 推荐(0)