install Polymer and explore creating our first custom element: bower install polymerindex.html: Polymer include webcomponents-list.j...
分类:
其他好文 时间:
2015-12-22 06:26:27
阅读次数:
172
LeetCode Number of Islands II
分类:
其他好文 时间:
2015-12-22 06:27:41
阅读次数:
146
响应式没有什么课程可以讲,主要的是做手机的屏幕样式,除了还有调式各种屏幕的页面大小不会乱,最近有三个项目,项目页面很多但页面的内容很少,也很简单,主要的是调式的时候比较麻烦。在做一个页面的调式需要在电脑上调式,然后在用手机看页面的样式是否合格了,不合格,在电脑上调式,合格了之后这个页面才算...
分类:
其他好文 时间:
2015-12-22 06:26:19
阅读次数:
214
Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen...
分类:
其他好文 时间:
2015-12-22 06:26:37
阅读次数:
175
题目:Write a program to find the nthsuper ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given prime listprimeso...
分类:
其他好文 时间:
2015-12-22 06:25:36
阅读次数:
187
x+y = n, x*y = m;y = n - x;x * ( n - x) = mnx - x^2 = m;x^2 - nx + m = 0;△ = sqrt(n^2 - 4m)要有整数解即△需要为可开方数即可。/* HDU 2092 整数解 --- 水题 */#include #include...
分类:
其他好文 时间:
2015-12-22 06:23:54
阅读次数:
160
1、安装jdk mkdir -p /usr/java tar zxvf jdk-7u80-linux-x64.tar.gz -C /usr/java/ vi /etc/profile export JAVA_HOME=/usr/java/jdk1.7.0_80 export PATH=$PATH:$...
分类:
其他好文 时间:
2015-12-22 06:23:51
阅读次数:
699
Update:Heikki’s slides arehere!Heikki Linnakangas gave a presentation this past Sunday atFOSDEMabout the improved free space map (FSM), which tracks u...
分类:
其他好文 时间:
2015-12-22 06:23:22
阅读次数:
226
桌上有一叠牌,从第一张牌(即位于顶面的牌)开始从上往下依次编号为1~n。当至少还剩两张牌时进行以下操作:把第一张牌扔掉,然后把新的第一张放到整叠牌的最后。输入n,输出每次扔掉的牌,以及最后剩下的牌。
分类:
其他好文 时间:
2015-12-22 06:25:09
阅读次数:
141
【翻译自mos文章】关于分区索引:Global, Local, Prefixed and Non-Prefixed...
分类:
其他好文 时间:
2015-12-22 01:17:26
阅读次数:
308
注释单行注释就是 #多行注释比较奇怪是 用 = begin 和 =end#!/usr/bin/ruby -w
puts "Hello, Ruby!"
=begin
这是一个多行注释。
可扩展至任意数量的行。
但 =begin 和 =end 只能出现在第一行和最后一行。
=end条件判断if conditional [then]
code...
[elsif conditional [t...
分类:
其他好文 时间:
2015-12-22 01:17:16
阅读次数:
247
/* Open a table. SYNOPSIS open_table() thd Thread context. table_list Open first table in list. action IN...
分类:
其他好文 时间:
2015-12-22 01:16:18
阅读次数:
293
Monthly Expense 题目大意:不废话,最小化最大值 还是直接套模板,不过这次要注意,是最小化最大值,而不是最大化最小值,判断的时候要注意 联动3258 1 #include 2 #include 3 #include 4...
分类:
其他好文 时间:
2015-12-22 01:16:40
阅读次数:
182
package cn.edu.xidian.sselab.array;import java.util.HashMap;import java.util.HashSet;import java.util.Set;/*** * @author zhiyong wang* title: Contains...
分类:
其他好文 时间:
2015-12-22 01:18:08
阅读次数:
209
UIView *topView = [[UIView alloc] init]; topView.backgroundColor = [UIColor redColor]; [self.view addSubview:topView]; topView.translates...
分类:
其他好文 时间:
2015-12-22 01:16:53
阅读次数:
239
psutilpsutil是Python中一个系统信息检索模块,可以获取(系统、CPU、内存、网络、磁盘)等信息,可以应用于系统的监控、健康状态检查,等同于shell中的ps、free、top、df功能的合集CPU psutil.cpu_count psutil.cpu_percent psut...
分类:
其他好文 时间:
2015-12-22 01:14:39
阅读次数:
215
创建方法1.构造函数语法(构造函数的名称通常是首字母大写)1 var myObj = new Object();2 myObj['key1']='value';3 myObj['key2']='value';4 myObj.key='value';5 myObj.key3=' ';6 myObj.k...
分类:
其他好文 时间:
2015-12-22 01:15:28
阅读次数:
219