Skip to content

Instantly share code, notes, and snippets.

View zikkeung's full-sized avatar

zheng mingyou zikkeung

  • 盈合机器人
  • 深圳
View GitHub Profile
set nocompatible " 设置不兼容VI
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'bling/vim-airline'
"Bundle 'kien/ctrlp.vim'
"Bundle 'scrooloose/nerdtree'
@zikkeung
zikkeung / git.md
Last active August 29, 2015 14:17 — forked from suziewong/git.md

1.同一台电脑可以有2个git账号(不同网站的)

首先不同网站,当然可以使用同一个邮箱,比如我的github,gitlab,bitbucket的账号都是monkeysuzie[at]gmail.com 这时候不用担心密钥的问题,因为这些网站push pull 认证的唯一性的是邮箱 比如我的windows 上 2个账号一个gitlab 一个github (用的都是id_rsa)

host github
  hostname github.com
  Port 22

host gitlab.zjut.com

/*上,下边框*/
.tBor:before,
.bBor:after{
position:absolute;
content: "";
height:1px;
background:red;
left:0;
right:0;
}
@zikkeung
zikkeung / 渐变文字
Created July 23, 2013 09:51
-webkit-text-fill-color: transparent;
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>Document</title>
<style type="text/css">
p{
font-size:20px;
background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
-webkit-background-clip: text;
@zikkeung
zikkeung / IE支持CSS3多背景
Created July 23, 2013 10:15
多背景CSS中中越靠前的图片越在上面显示,对于IE浏览器,滤镜所带来的背景是在上面显示的,由于滤镜的背景图无法定位
#multi-bg {
background: url(images/bg-image-1.gif) top left repeat;
background: url(images/bg-image-1.gif) center center no-repeat, url(images/bg-image-2.gif) top left repeat;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='images/bg-image-2.gif', sizingMethod='crop');
}
@zikkeung
zikkeung / HTML5视频
Created July 29, 2013 01:27
HTML5视频
<video width="640" height="360" controls>
<source src="__VIDEO__.MP4" type="video/mp4" />
<source src="__VIDEO__.OGV" type="video/ogg" />
<object width="640" height="360" type="application/x-shockwave-flash" data="__FLASH__.SWF">
<param name="movie" value="__FLASH__.SWF" />
<param name="flashvars" value="controlbar=over&amp;image=__POSTER__.JPG&amp;file=__VIDEO__.MP4" />
<img src="__VIDEO__.JPG" width="640" height="360" alt="__TITLE__"
title="No video playback capabilities, please download the video below" />
</object>
</video>
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000;
-moz-perspective: 1000;
-ms-perspective: 1000;
perspective: 1000;
@zikkeung
zikkeung / 调用开发工具
Created August 2, 2013 02:29
Devtools for developers
window.addEventListener('keydown', function (e) {
if (e.keyIdentifier === 'F12') {
require('nw.gui').Window.get().showDevTools();
}
});
<input name="frameworks" list="frameworks" />
<datalist id="frameworks">
<option value="Foundation">
<option value="Bootstrap">
<option value="Dojo Toolkit">
<option value="jQuery">
<option value="YUI">
</datalist>
* {
margin: 0;
padding: 0;
}
#container * {
border: 1px solid black;
}