上一页 1 2 3 4 5 6 ··· 24 下一页
摘要: 1、Tmux,连接开发机可以让在任务在开发机一直执行,不用nohup &这种了也相对稳定,还有session可以记录当时的状态。 常用命令: tmux new -s name 指定名字开启一个tmux session tmux ls 显示sessions tmux a -t name 指定name连 阅读全文
posted @ 2019-03-07 11:39 丶Blank 阅读(5004) 评论(0) 推荐(0) 编辑
摘要: 今天在mac下用sed试图替换\t ,结果发现不生效,Google之后发现mac作为unix分支的系统上的sed与GNU版本的sed行为不太一致。 使用以下命令安装GNU命令套件: brew install coreutils 使用以下命令安装gnu-sed: brew install gnu-se 阅读全文
posted @ 2018-11-26 22:05 丶Blank 阅读(3677) 评论(0) 推荐(0) 编辑
摘要: 练习3.3是peak展示为红色,valley展示为蓝色。 练习3.4是将svg图像打印到浏览器中。 阅读全文
posted @ 2018-10-09 23:00 丶Blank 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 题目: 剑指offer的题目有挺多都挺典型的,就像这一道。不过书中的代码写的真是ugly,有很多题目LeetCode上都有,可以去LeetCode讨论区看看,经常有一些大神分享,写的代码真是高效、简洁、清晰,剑指offer上的代码不仅变量名定义又长又不知所云,让人看着就很不清晰明了,还有各种没必要的 阅读全文
posted @ 2018-09-16 00:08 丶Blank 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-09-14 18:01 丶Blank 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-09-14 16:10 丶Blank 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2018-09-14 14:16 丶Blank 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2018-09-14 11:13 丶Blank 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). Y 阅读全文
posted @ 2018-09-13 23:43 丶Blank 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 今天在iPad上下了个小游戏,主要是一个计算器的界面,有开始值,目标值,限定步数,以及一些加减乘除,还有作者脑洞想出来的功能键,主要有左移,直接把一个数加到末尾,将其中的某个数改为另一个数等等。。玩到20几关的时候感觉每道题要想一会儿才能解出来,于是有了下面的程序,写完程序就不想玩了。 游戏界面如下 阅读全文
posted @ 2018-08-25 01:10 丶Blank 阅读(608) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 24 下一页