number

[LeetCode] Counting Bits

Problem Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Exampl

[LeetCode] Counting Bits

Problem Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array. Exampl

tincon基于jQuer的浏览器标题的数字提醒

Tinycon 可在浏览器的网站图标上显示冒泡的数字,支持 Chrome 和 Firefox 浏览器,如下图所示: 可以通过npm install tommoor/tinycon --save安装使用。 使用方法很简单:Tinycon.setBubble(number); number为需要显示的数字。 可以对显示数字的样式进行设置: Tinycon.setOptions(

Linu网卡命名enp3s0说明

用了很多年Linux的我在升级Ubuntu 16.04之后竟然发现我的以太网卡的名字竟然不是eth0,变成了enp3s0,每次想要修改什么配置,都要先ifconfig查一下网卡名,真是让我很郁闷!去网上搜索一下才知道,这次的Ubuntu 16的更新幅度很大,当属systemd替换掉了initd来引导系统这个动作给用户带来的影响最大,原来习惯service什么的来控制系统服务