This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| /* | |
| * Node Module | |
| */ | |
| module.exports = function(grunt) { | |
| // Task configuration | |
| grunt.initConfig({ | |
| /** | |
| * Get package meta data | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // require modules | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var merge = require('merge-stream'); | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var autoprefixer = require('gulp-autoprefixer'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var concat = require('gulp-concat'); // 合并js | |
| var uglify = require("gulp-uglify"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The ‘rc’ suffix goes back to Unix's grandparent, CTSS. | |
| It had a command-script feature called "runcom". Early | |
| Unixes used ‘rc’ for the name of the operating system's | |
| boot script, as a tribute to CTSS runcom. | |
| "http://stackoverflow.com/questions/11030552/what-does-rc-mean-in-dot-files" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 第一步,在/etc/yum.repos.d/目录下创建一个源配置文件nginx.repo: | |
| cd /etc/yum.repos.d/ | |
| vim nginx.repo | |
| 填写如下内容: | |
| [nginx] | |
| name=nginx repo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| font-size: 16px; | |
| } | |
| // Or you can use html | |
| // html { | |
| // font-size: 16px; | |
| // } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scripts": { | |
| "clean": "rm -f resources/css/style.css", | |
| "autoprefixer": "postcss -u autoprefixer -r resources/css/style.css", | |
| "scss": "node-sass --output-style compressed --source-map true resources/sass/PPP.scss resources/css/style.css", | |
| "serve": "browser-sync start --proxy 'ping.dev' --files 'resources/css/*.css, resources/images/*'", | |
| "build:css": "npm run scss && npm run autoprefixer", | |
| "build": "npm run build:css", | |
| "watch:css": "onchange 'resources/sass/*.scss' -- npm run build:css", | |
| "start": "npm-run-all -p serve watch:css", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function xhr(options) { | |
| var deferred = Q.defer(), | |
| req = new XMLHttpRequest(); | |
| req.open(options.method || 'GET', options.url, true); | |
| // Set request headers if provided. | |
| Object.keys(options.headers || {}).forEach(function (key) { | |
| req.setRequestHeader(key, options.headers[key]); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installing AutoConf and Fixing Phpize on OSX 10.9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;(function (designWidth, maxWidth) { | |
| var doc = document, | |
| win = window; | |
| var docEl = doc.documentElement; | |
| var tid; | |
| var rootItem, rootStyle; | |
| function refreshRem() { | |
| var width = docEl.getBoundingClientRect().width; | |
| if (!maxWidth) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Use Non-ASCII Font" : true, | |
| "Tags" : [ | |
| ], | |
| "Ansi 12 Color" : { | |
| "Green Component" : 0.57647058823529407, | |
| "Blue Component" : 0.97647058823529409, | |
| "Red Component" : 0.74117647058823533 | |
| }, |
OlderNewer