Skip to content

Instantly share code, notes, and snippets.

View QETHAN's full-sized avatar
🎯
Focusing

QETHAN QETHAN

🎯
Focusing
View GitHub Profile
@QETHAN
QETHAN / markdown_syntax.md
Last active December 16, 2015 14:29
markdown syntax
@QETHAN
QETHAN / log.js
Last active December 16, 2015 14:49
node.js log工具 来自CNode社区
var fs = require('fs');
/*
Foreground Colours
30 Black
31 Red
32 Green
33 Yellow
34 Blue
35 Magenta
@QETHAN
QETHAN / goods_nav.html
Created April 24, 2013 13:23
商品展示列表导航(JQuery, CSS)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>导航条在项目中的应用</title>
<script language="javascript" type="text/javascript"
src="Jscript/jquery-1.4.2.min.js"></script>
<style>
body{font-size:13px}
#divFrame{border:solid 1px #666;width:301px;overflow:hidden}
#divFrame .clsHead{background-color:#eee;padding:8px;height:18px;cursor:hand}

##获取code

https://github.com/login/oauth/authorize?client_id=7602b13793442f76185d

##获取access_token

https://github.com/login/oauth/access_token?client_id=7602b13793442f76185d&amp;client_secret=0decbd9568fe947270774835e55c4f39521f4e20&amp;code=94a6da1344c4474115fc
@QETHAN
QETHAN / github.css
Created April 26, 2013 08:14
markdown语法CSS
#epiceditor-wrapper{
background:white;
}
#epiceditor-preview{
padding-top:10px;
padding-bottom:10px;
font-family: Helvetica,arial,freesans,clean,sans-serif;
font-size:16px;
line-height:1.6;
@QETHAN
QETHAN / cnodejs_main.js
Created April 27, 2013 01:42
cnodejs 回到顶部脚本
$(document).ready(function () {
$('#search_form').submit(function (e) {
//e.preventDefault();
search();
});
function search() {
var q = document.getElementById('q');
if (q.value) {
/*
@QETHAN
QETHAN / cnodejs_topic_create页面布局
Created April 27, 2013 01:44
cnodejs/topic/create页面布局
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- meta -->
<meta charset="utf-8" />
<meta name='description' content='CNode:Node.js专业中文社区'>
<meta name="author" content="EDP@TaoBao" />
<meta property="wb:webmaster" content="617be6bd946c6b96" />
@QETHAN
QETHAN / navbar.css
Created April 27, 2013 02:57
Bootstrap_navbar_css
.navbar-fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.navbar-fixed-top .navbar-inner {
padding-left: 0;
padding-right: 0;
@QETHAN
QETHAN / Bootstrap_span[1-12]_offset[1-11].css
Created April 27, 2013 03:02
Bootstrap_span[1-12]_offset[1-11]
.span1 {
width: 60px;
}
.span2 {
width: 140px;
}
.span3 {
width: 220px;
}
.span4 {
@QETHAN
QETHAN / cnodejs_两栏布局.css
Created April 27, 2013 03:26
main只设置width, min_height, content不设置float, sidebar设置float:right,两栏不设置高度
/* base */
body,p {
font-size: 12px;
line-height: 16px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
word-break: break-all;
}
#wrapper {
background: #d0d6db;