码迷,mamicode.com
首页 >  
搜索关键字:space    ( 18273个结果
sed 替换命令 ‘s///g’ 与 ‘s///’ 的区别
sed‘s///g‘与sed‘s///‘其实是有很大区别的,要是不注意肯定出错,请看例子:题目:删除一个文件里开头的空白ps:/^*/匹配以空格开头的字符 /^\s/匹配任何空白字符,包括空格、制表符、换页符等等。等价于[\f\n\r\t\v] /^[[:space:]]*/匹配以空格或者是\t制表符开头的字符amp1:~#..
分类:其他好文   时间:2015-05-12 19:02:03    阅读次数:831
UICollectionView 不同大小Cell 等间距的实现
在IOS项目中有时会用到UICollectionView控件,大家应该都不太陌生,即便有没用过的同学,看一下教程也能轻松的掌握。不过要实现cell大小不同,又要等间距,应该怎么做呢?如下图: 一、首先需要创建EqualSpaceFlowLayout继承UICollectionViewFlowLayout,如下面的代码: #import @protocol EqualSpa...
分类:其他好文   时间:2015-05-12 18:57:48    阅读次数:439
多行文本溢出显示省略号
单行文本的溢出显示省略号(……)1 overflow: hidden;2 text-overflow: ellipsis;3 white-space: nowrap;但是这个属性并不支持多行文本溢出显示省略号,这里根据应用场景介绍几种方法。WebKit浏览器或移动端的页面在WebKit浏览器或移动端...
分类:其他好文   时间:2015-05-12 13:10:34    阅读次数:142
Linux Command - 我的常用指令
du - estimate file space usage? du?-ahc?/temp?:?显示目录下所有子目录和文件的可读大小 du?-sh?/temp:???只显示目录的总大小 du?-cbha?--exclude="*.txt":以byte为单位显示除txt文件以外的所有文...
分类:系统相关   时间:2015-05-12 11:49:54    阅读次数:138
Remove Duplicates from Sorted Array ——解题报告
【题目】 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in ...
分类:其他好文   时间:2015-05-12 11:24:49    阅读次数:92
white-space norma nowrap强制同一行内显示所有文本文字,让所有文字内容中一排显示不换行
日常我们为了让文字内容在一行内显示完,哪怕宽度不够也不能换行,我们可以使用white-space样式,但如果遇到了html br强制换行标签,无论是设置white-space与否都会被强制换行。昨天仿照娜姐做的标题滚动,自己照着那个js也写了一个,结果发现死活就是不滚动,今天早上发现原来还有一段CS...
分类:其他好文   时间:2015-05-12 09:18:24    阅读次数:140
【leetcode】Length of Last Word
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 ...
分类:其他好文   时间:2015-05-12 08:09:32    阅读次数:108
【Length of Last Word】cpp
题目:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word ...
分类:其他好文   时间:2015-05-11 23:57:44    阅读次数:154
LeetCode 26 Remove Duplicates from Sorted Array (C,C++,Java,Python)
Problem: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this...
分类:编程语言   时间:2015-05-11 21:58:56    阅读次数:186
Install Debian note
environment: already install xp,win7 and win8PE, left 87G space to install Debian, this space not format for any tpye.Download Debian system image, an...
分类:其他好文   时间:2015-05-11 17:21:22    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!