Skip to content

Instantly share code, notes, and snippets.

@sinchang
sinchang / gist:9780049
Created March 26, 2014 10:00
a Markdown css by Markdownpad
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: 29d1c5bc36da364ad5aa86946d420b7bbc54a253 */
/* Source: https://github.com/nicolahery/markdownpad-github */
/* RESET
=============================================================================*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
<HTML>
<HEAD>
<meta http-equiv="refresh"content="0; url=http://s.click.taobao.com/t?e=m%3D2%26s%3Dz2azpXBAt4QcQipKwQzePDAVflQIoZepK7Vc7tFgwiFRAdhuF14FMcER0Spqs0%2BQ5x%2BIUlGKNpUHxNb6Z8dZquGfNq8ttQY0zhDO3lKQ2vB6UTNUu2cQbs7EZT4hNQpc">
</HEAD>
</HTML>
#!/usr/bin/env python2
# vim: set fileencoding=utf8
from __future__ import unicode_literals
import os
import sys
import re
import json
import collections
#ccc 1px 1px 8px 0
0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.24)
0 6px 12px rgba(0,0,0,.175)
0 0 3px 0 rgba(0,0,0,.2)
@sinchang
sinchang / gulpfile.js
Last active March 1, 2017 07:42
gulpfile.js
//引入gulp
var gulp = require('gulp');
//引入组件
var htmlmin = require('gulp-htmlmin'),
imagemin = require('gulp-imagemin'),
sass = require('gulp-ruby-sass'),
concat = require('gulp-concat'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<title>标题</title>
@sinchang
sinchang / 常用代码块
Last active February 10, 2017 15:14
常用代码块
// 回到顶部
$('.backtop').click(function(){
$("body,html").animate({
scrollTop:0}, 800);
return false;
});
$(window).scroll(function(){
var scroll = $(window).scrollTop();
if (scroll >= 100){
1、
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
#navi ul li.hl a {
color: red;
// layer alert 的回调
layer.alert('有了回调', {icon:1},function(index){
//do something
layer.close(index);
});
//错误信息放到父框里的最底部
errorPlacement: function (error, element) {
error.appendTo(element.parents('.form-con'));
}
let webpack = require('webpack');
let path = require('path');
module.exports = {
entry: {
app: './resources/assets/js/app.js',
vendor: ['vue', 'axios']
},
output: {