Skip to content

Instantly share code, notes, and snippets.

View moocss's full-sized avatar
๐Ÿ
I may be slow to respond.

ๅƒๆ ‘ไธ€ๆ ทๆˆ้•ฟ๏ผ moocss

๐Ÿ
I may be slow to respond.
View GitHub Profile
@moocss
moocss / demo.js
Created April 12, 2016 13:26 — forked from kevinma2010/demo.js
ๅŸบไบŽ jQuery Ajax ๅฎšๅˆถ่‡ชๅทฑๅ–œ็ˆฑ็š„ API
//้™„ๅŠ ๅ…ฌๅ…ฑๅ‚ๆ•ฐ
$http.global("token","abcd321");
$http.use("/api", function (res) {
if (res.success) {
return true;
}
var err = res.error;
if (err.code === 1001) {
location.href = "/login.html";
} else {
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass
@moocss
moocss / dabblet.css
Created February 16, 2012 05:49 — forked from anonymous/dabblet.css
Tags (vertical)
/*=tags
-----------------------------*/
ol.tags {
width: 25%;
}
ol.tags li a {
display: block;
padding: 4px 8px;
}
ol.tags li a span.meta {
@moocss
moocss / dabblet.css
Created February 16, 2012 03:40 — forked from anonymous/dabblet.css
img list
/**
* img list
*/
ol.slats li {
margin: 0 0 10px 0;
padding: 0 0 10px 0;
border-bottom: 1px solid #eee;
}
ol.slats li:last-child {
margin: 0;