Skip to content

Instantly share code, notes, and snippets.

@dioxide
dioxide / sVim_css
Last active February 25, 2019 06:03
@-webkit-keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#sVim-command {
@dioxide
dioxide / sVim_rc
Last active February 25, 2019 06:12
cVim Setting File.
" Settings
let fullpagescrollpercent = 100
let scrollduration = 25
let scrollstep = 100
let zoomstep = 15
unmapAll
" Shortcuts
@dioxide
dioxide / html5 web meta.js
Created May 4, 2016 03:31
移动端页面布局js
;(function(win, lib) {
var doc = win.document;
var docEl = doc.documentElement;
var metaEl = doc.querySelector('meta[name="viewport"]');
var flexibleEl = doc.querySelector('meta[name="flexible"]');
var dpr = 0;
var scale = 0;
var tid;
var flexible = lib.flexible || (lib.flexible = {});
@dioxide
dioxide / gist:8949256
Created February 12, 2014 02:59
小强 ECstore二次开发规范
ECStore 二次开发规范说明
注意:此文档有利用于团队协作开发,如有异议或补充,可共同讨论并更新此文档
1.在config/config.php是定义二开目录,在文件最下加入一行定义:define('CUSTOM_CORE_DIR',ROOT_DIR.'/custom');
2.当发现app目录下有需要二开的文件时,将其二开后,保持相同路径存入二开目录中,例:
二开前路径:app/b2c/controller/site/brand.php
二开后路径:custom/b2c/controller/site/brand.php
@dioxide
dioxide / Ecstore 切图建议
Created July 23, 2013 03:12
Ecstore 切图建议
ECstore: 切图建议
整体:
1. 页面请考虑ie6(考虑png图片ie6下的透明问题),ie7 (包括360和搜狗的兼容模式)和 ie8,ie9,chrome,safari,opera,firefox浏览器;
2. Javascript框架请避免使用jquery, 与Ecstore的内置框架Mootools有冲突,处理冲突较麻烦; 请基于Mootools 1.3开发javascript模块;
3. 切出的静态页面的Javascript效果要实现,比如商品菜单要能展开二级菜单,有下来菜单的做出下拉效果; tab切换模块要有tab切换效果(若每个tab的内容不同,也要提现出来);
@dioxide
dioxide / php.ini.zh_cn
Created June 18, 2013 07:02
中文版php.ini
;;;;;;;;;;;;;;
;; 简介 ;;
;;;;;;;;;;;;;;
; 本文并非是对英文版 php.ini 的简单翻译,而是参考了众多资料以后,结合自己的理解,增加了许多内容,
; 包括在原有 php.ini 基础上增加了一些实用模块的配置说明,同时对文件内容的安排进行了调整。
; 由于作者不喜欢 no-free 的玩意儿,所以删除了除 MySQL 和 PostgreSQL 以外的其他数据库模块配置选项。
;;;;;;;;;;;;;;;;;
;; 关于php.ini ;;
;;;;;;;;;;;;;;;;;
@dioxide
dioxide / CSS3-learn-tips
Last active December 14, 2015 07:59
CSS3 learn Tips
勒布朗(LeBlance)法则: 稍后等于永不(Later equals never)
生的计划,死的随机
@dioxide
dioxide / shande_review
Created February 27, 2013 09:09
杉德文件修改记录(前端部分)
杉德 2013.2.27 修改文件
/custom/b2c/view/site/member/main.html
/themes/sandpay/widgets/ad_slide/index_partner.html
/themes/sandpay/seller-(4).html
/custom/b2c/view/site/cart/checkout.html
@dioxide
dioxide / Orignal_javascript_collect.js
Created February 18, 2013 04:14
原生Javascript 代码片段合集
/**
* 阻止事件冒泡,和默认行为
* param: Event Object 事件对象
*/
function stop(e) {
if (!e) var e = window.event
// handle event
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
}