Source: https://github.com/getify/You-Dont-Know-JS/blob/master/up%20&%20going/ch2.md#equalityFalse Values in JS""(empty string)0,-0,NaN(invalidnumber)...
分类:
编程语言 时间:
2015-07-01 09:50:07
阅读次数:
139
例行的Linux软中断分发机制与问题Linux的中断分为上下两半部,一般而言(事实确实也是如此),被中断的CPU执行中断处理函数,并在在本CPU上触发软中断(下半部),等硬中断处理返回后,软中断随即开中断在本CPU运行,或者wake up本CPU上的软中断内核线程来处理在硬中断中pending的软中断。 换句话说,Linux和同一个中断向量相关的中断上半部和软中断都是在同一个CPU上执...
分类:
系统相关 时间:
2015-07-01 07:30:56
阅读次数:
173
连连看游戏设计连连看是一种很受大家欢迎的小游戏。微软亚洲研究院的实习生们就曾经开发过一个类似的游戏--Microsoft Link-up。图1-17为Microsoft Link-up的一个截图。如果用户可以把两个同样的图用线(连线拐的弯不能多于两个)连到一起,那么这两个头像就会消掉,当所有的头像全...
分类:
其他好文 时间:
2015-06-30 20:25:28
阅读次数:
157
《—》
1、执行 service network restart
出现以下错误
Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.
2、根据上面的提示,执...
分类:
Web程序 时间:
2015-06-30 15:03:15
阅读次数:
142
Today I finally got ruby debugging working in Eclipse. Below are the major setup steps involved, as well as some problems one might encounter along th...
分类:
其他好文 时间:
2015-06-29 22:12:15
阅读次数:
185
原题如下:
Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root).我的算法:
1. 首先获得树的高度
2. 层序递归遍历二叉树实现如下:package leet...
分类:
其他好文 时间:
2015-06-29 15:02:29
阅读次数:
130
Warm up 2
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 1895 Accepted Submission(s): 862
Problem Description
Some 1×2 dominoes a...
分类:
其他好文 时间:
2015-06-29 14:58:39
阅读次数:
155
AN4187 - Using the CRC peripheral in the STM32 familyAt start up, the algorithm sets CRC to the Initial_Crc XOR with the Input_Data.Once CRC MSB is eq...
分类:
其他好文 时间:
2015-06-29 06:11:26
阅读次数:
178
https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoS...
分类:
其他好文 时间:
2015-06-28 17:31:17
阅读次数:
127
1.查看IP地址[root@localhost~]#ipa1:lo:<LOOPBACK,UP,LOWER_UP>mtu65536qdiscnoqueuestateUNKNOWNlink/loopback00:00:00:00:00:00brd00:00:00:00:00:00inet127.0.0.1/8scopehostlovalid_lftforeverpreferred_lftforeverinet6::1/128scopehostvalid_lftforeverpreferred_..
分类:
其他好文 时间:
2015-06-28 12:57:51
阅读次数:
205