案例背景:在大型网站中,css样式划分为多个模块文件,如reset.css,layout.css,skin.css等等(颗粒化越小,样式重用率越高),页面需要的时候引入它们即可!回到less项目中这里,我们也可以将划分为reset.less,layout.less,skin.less等,然后在本页面...
分类:
其他好文 时间:
2014-05-23 10:50:45
阅读次数:
384
恢复到最后一次提交的改动:
git
checkout -- + 需要恢复的文件名
但是,需要注意的是,如果该文件已经 add 到暂存队列中,上面的命令就不灵光喽
需要先让这个文件取消暂存:
git
reset HEAD -- + 需要取消暂存的文件名
然后再使用第一条命令。
如果感觉命令多了记不住,那就做一两个匿名呗,比如:
git
config ...
分类:
其他好文 时间:
2014-05-22 23:34:55
阅读次数:
319
There are four types of interrupts on the CPU.
? Reset
? Maskable
? Nonmaskable
? Exception(异常也可视为中断)
These first three types are differentiated by their
priorities. The
reset interrupt has t...
分类:
其他好文 时间:
2014-05-22 13:14:59
阅读次数:
245
//不说那么多了,直接上程序
void ADC1_DeInit(void)
{
ADC1->CSR = ADC1_CSR_RESET_VALUE;
ADC1->CR1 = ADC1_CR1_RESET_VALUE;
ADC1->CR2 = ADC1_CR2_RESET_VALUE;
ADC1->CR3 = ADC1_CR3_RESET_VALUE;
...
分类:
其他好文 时间:
2014-05-22 11:21:55
阅读次数:
226
My97DatePicker日历控制按日、按周和按月选择
1、设计源码
日历控件
$(function(){
$("#reset").click(function(){
});
...
分类:
其他好文 时间:
2014-05-21 07:01:20
阅读次数:
540
Customizing the user login, register, and
password reset pages is fairly simple, and uses the following
concepts:preprocessing to set variablesregistr...
分类:
其他好文 时间:
2014-05-19 21:32:08
阅读次数:
487
问题1
[root@localhost ~]# gluster peer status
Connection failed. Please check if gluster daemon is operational.
原因:未开启glusterd服务
解决方法:开启glusterd服务
/etc/init.d/glusterd start
问题2
[root@loc...
分类:
其他好文 时间:
2014-05-16 02:50:16
阅读次数:
391
git出现error: bad signature fatal: index file
corruptgit的index被损坏解决方法:需要重新生成index文件,rm -f .git/indexgit reset --mixed HEAD
分类:
其他好文 时间:
2014-05-15 11:41:50
阅读次数:
2932
NAMEtput, reset - initialize a terminal or
query terminfo databaseSYNOPSIS tput [-Ttype] capname [parms ... ] tput [-Ttype]
init tpu...
分类:
系统相关 时间:
2014-05-14 08:51:13
阅读次数:
601