V2ROOT

the way to root.


  • 首页

  • 分类

  • 归档

  • 标签

  • 搜索
close

新的折腾

发表于 2016-04-11   |   分类于 life   |     |   阅读次数

昨晚和今天又折腾了下这个博客,从MWEB自带的换到了HEXO,因为这个主题我很喜欢,用的人也很多,所以打算折腾一下,结果这折腾不要紧,一下子花了好多时间。

阅读全文 »

test mweb

发表于 2016-04-11   |   分类于 test   |     |   阅读次数

test mweb editor

阅读全文 »

First Post

发表于 2016-04-10   |   分类于 test   |     |   阅读次数

test test test

Markdown 语法和 MWeb 写作使用说明

Markdown 的设计哲学

Markdown 的目標是實現「易讀易寫」。
不過最需要強調的便是它的可讀性。一份使用 Markdown 格式撰寫的文件應該可以直接以純文字發佈,並且看起來不會像是由許多標籤或是格式指令所構成。
Markdown 的語法有個主要的目的:用來作為一種網路內容的寫作用語言。

阅读全文 »

It's Time To Leave

发表于 2014-09-19   |   分类于 life   |     |   阅读次数

Dream.

阅读全文 »

LeetCode 5, Sell Stock II

发表于 2014-08-18   |   分类于 program , leetcode   |     |   阅读次数

####题目
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 complete as many transactions as you like (ie, buy one and sell one share of the stock multiple times). However, you may not engage in multiple transactions at the same time (ie, you must sell the stock before you buy again).

阅读全文 »

清醒反省

发表于 2014-08-16   |   分类于 life   |     |   阅读次数

清醒清醒,为什么这么说呢,因为这过去的一周我似乎陷入了一种无法控制的迷茫和混沌状态。记录一下反省和思考吧

阅读全文 »

一个简单的利用UEVENT监控USB热插拔的例子

发表于 2014-08-12   |   分类于 program , linux   |     |   阅读次数

最近工作中要用到UEVENT这个东东,记录一下. 最主要的就是怎么把UEVENT收到的消息给分析一下,刚开始不知道,直接打出来一串东西,原来返回的值里面有‘\0’, 把它换为‘\n’就能打出来了。这个东西虽然很简单,但是不知道的情况下还是需要研究一番才能用起来,而且KMD那边印度哥们给我的patch不能用,会导致系统挂掉,我研究了一下,貌似是由于异步的原因,kernel发送event上来的时候貌似是要走异步的,但印度哥们可能为了偷懒给我直接嫁接在isr的handler里面了,没有放到队列里导致的。不知道这个是我们KMD驱动的设计问题还是内核这样要求的,有空在研究一下。

阅读全文 »

删除 Mac 上下载失败的 App 图标

发表于 2014-08-11   |   分类于 technology   |     |   阅读次数

最近从网上发现了这么一个技巧,记录一下,以免以后强迫症犯了图标删不干净抓狂。

阅读全文 »

Time for Leisure

发表于 2014-08-10   |   分类于 life   |     |   阅读次数

最近这段时间好像什么都没有做,每天下班回家就是吃吃饭、写写字、溜溜弯、玩电脑。但是其实还是一直在折腾一件事情,就是不停的测速、翻墙、找性价比高的VPS,真是又犯了年轻时的毛病、魔怔了。

阅读全文 »

LeetCode 4, Reverse Integer

发表于 2014-08-04   |   分类于 program , leetcode   |     |   阅读次数

题目:

Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321

Have you thought about this?
Here are some good questions to ask before coding. Bonus points for you if you have already thought through this!

If the integer’s last digit is 0, what should the output be? ie, cases such as 10, 100.

Did you notice that the reversed integer might overflow? Assume the input is a 32-bit integer, then the reverse of 1000000003 overflows. How should you handle such cases?

Throw an exception? Good, but what if throwing an exception is not an option? You would then have to re-design the function (ie, add an extra parameter).

阅读全文 »
12
usufu

usufu

18 日志
6 分类
13 标签
© 2016 usufu
由 Hexo 强力驱动
主题 - NexT.Mist