text-align:justify; word-break:break-all; stext-justify:distribute-all-lines; /*ie6-8*/ text-justify:inter-ideograph; -webkit-text-align-last:justify; ...
分类:
其他好文 时间:
2016-05-14 13:57:08
阅读次数:
109
Z shell’s (zsh) popularity has increased in the last years. I have not moved too zsh yet, but I am going to do that. zsh is not installed in Linux by ...
分类:
系统相关 时间:
2016-05-14 11:24:14
阅读次数:
284
工作中使用到一些特殊的字符串,比如‘50-1-1-2-3’,当需要得到‘50-1-1-2’时可使用以下自定义函数DELIMITER$$
USE`mydb`$$
DROPFUNCTIONIFEXISTS`get_content_before_last_separator`$$
CREATEDEFINER=`root`@`%`FUNCTION`get_content_before_last_separator`(charStrVAR..
分类:
数据库 时间:
2016-05-14 01:25:46
阅读次数:
530
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word ...
分类:
编程语言 时间:
2016-05-13 10:29:41
阅读次数:
140
When you first started coding, errors were probably the last thing you wanted to see.
After all, it’s not a far stretch to associate “error” with “I messed up”.
Hopefully by now you’ve come to appre...
分类:
其他好文 时间:
2016-05-13 02:02:05
阅读次数:
150
在mini2440上,整个移植过程分三个步骤:(1)编译x264;(2)编译ffmpeg;(3)移植成功后,进行测试,即使用ffmpeg录像。
??(1)编译x264
官网上下了个最新的x264,地址http://www.videolan.org/developers/x264.html。我下载的文件是last_x264.tar.bz2。
120版本地址
http://pan.baidu....
分类:
其他好文 时间:
2016-05-13 00:28:36
阅读次数:
396
1584 - Circular Sequence
Time limit: 3.000 seconds
Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol ``...
分类:
其他好文 时间:
2016-05-13 00:24:17
阅读次数:
208
iOS网络缓存扫盲篇
--使用两行代码就能完成80%的缓存需求
下篇预告:使用80%的代码来完成剩下的20%的缓存需求 。敬请 star (右上角)持续关注。
目录
当我们在谈论缓存的时候,我们在谈论什么?
GET网络请求缓存
80%的缓存需求:两行代码就可满足
控制缓存的有效性
文件缓存:借助ETag或Last-Modified判断文件缓存是否有效
Last-Mod...
分类:
移动开发 时间:
2016-05-13 00:10:47
阅读次数:
423
这里以 为例
1.第一个为li的子元素,最后一个为li的子元素 $("li:first") $("li:last")
2.第n个子元素(从0开始索引) $("li:eq(n-1)")
3.获取包含“text”字符串内容的全部元素对象 $( " li:contains ( ' text ' ) " )
4.获取指定包含某个元素名的全部元素,比如含p元素 ...
分类:
Web程序 时间:
2016-05-13 00:03:27
阅读次数:
360
基本过滤选择器
1.:first 选取第一个元素
$('tr:first') 返回第一个 tr 元素
2.:last 选取最后一个元素
$('tr:last')
3.:not(selector) 去除与给定选择器匹配的元素
$('tr:not(".new")') 首先选择所有的 tr 元素,然后取出所有包含 class="new" 的 t...
分类:
其他好文 时间:
2016-05-12 22:19:04
阅读次数:
143