Sometimes Redis instances needs to be loaded with big amount of preexisting or user generated data in a short amount of time, so that millions of keys will be created as fast as possible.This is calle
Continue reading
PHP常用Variables
$_COOKIE - $HTTP_COOKIE_VARS [deprecated] — HTTP Cookies
$_ENV - $HTTP_ENV_VARS [deprecated] — Environment variables
$_SERVER - $HTTP_SERVER_VARS [removed] — Server and execution enviro
Continue reading
add_filter
apply_filter
add_action
do_action
Continue reading
网站名字 <?php bloginfo('name');?>
网站描述 <?php bloginfo('description');?>
查询Post的主循环:
1// The Query is overly simplistic and problematic way to modify main query of a page by r
Continue reading
#先上一个wordpress的流程图
将网站的各个模板文件拆分开来a. style.cssb. index.phpc. header.phpd. footer.phpe. sidebar.phpf. single.phpg. page.phph. archive.php => category, tag, date-based, author basedi. functions.php =&
Continue reading
今天复习了一下wordpress主题的制作,结合Bootstrap,做一个总结
#首先是bootstrap主题的文件结构
a. style.css主题的css必要文件b. index.php主题的必要的php文件必要文件
主页:
home.php
index.php
文章页:
single-{post_type}.php – 如果文章类型是videos(即视频),WordPress就会去查找si
Continue reading
一直想学习大前端,最近在做公司官网,涉及到了一些切图,动画效果的任务,总结如下:
先从Bootstrap开始
首先学习的时候有一点没有学习到,就是如何定制Bootstrap,使用less或者sass重新编译Bootstrap以达到定制的效果我使用的方法是在main.css文件中覆盖bootstrap.min.css文件里面的css
学习到了一些之前没有注意到的,就是针对移动端的定制,hidden
Continue reading
Grunt用到的组件
connect
grunt-connect
grunt-contrib-clean 目录和文件管理,可以用于清除临时文件和目录
grunt-contrib-concat 合并文件,可以合并多个css或者js文件
grunt-contrib-connect sorry,忘记了,后面补起
grunt-contrib-copy 复制文件到指定目录
grunt-contrib-cs
Continue reading
The Yeoman workflow is comprised of three core tools for improving your productivity and satisfaction when building a web app. These tools are:
yo - the scaffolding tool from Yeoman
A package manager
Continue reading