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
.PHONY: r d b h n i c run backup deploy help new mkfile init clear goroot | |
ROOT = ~/work/blogsys/ | |
DRAFTS = ${ROOT}blog/src/_drafts/ | |
POSTS = ${ROOT}blog/src/_posts/ | |
BACKUPPOSTS = ${ROOT}blogsources/backup/posts/ | |
BACKUPDRAFTS = ${ROOT}blogsources/backup/drafts/ | |
BACKUPPOSTS_BAC = ${ROOT}databackup/posts/ | |
BACKUPDRAFTS_BAC = ${ROOT}databackup/drafts/ |
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
var fs = require('fs'); | |
var path = require('path'); | |
var exec = require("child_process").exec; | |
var root = '../build/'; | |
var writeFilePath = './urls.txt'; | |
var historyFilePath = './history.txt'; | |
var history = []; | |
var suffix = "http://www.barretlee.com/"; | |
var pushQueue = []; | |
var count = 0; |
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
Show hidden characters
{ | |
// 主题,可以安装 themr 来管理主题 | |
"theme": "Flatland Dark.sublime-theme", | |
// 设置为false时,选择提示的代码按回车或点击可以输出出来,但选择true时不会输出而是直接换行 | |
"auto_complete_commit_on_tab": false, | |
// 设置为true时在当前可视文本视图相应的minimap区域的周围画边框 | |
"draw_minimap_border": true, | |
// 光标淡入淡出 | |
"caret_style": "phase", | |
// 设置为all时所有空格可视,便于区分页面中的空格和TAB。 |
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
tmp | |
*.log | |
node_modules | |
bower_components | |
.idea/* | |
lib |
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
{ | |
"name": "conve", | |
"author": "Barret Lee", | |
"version": "0.0.1", | |
"description": "", | |
"scripts": {}, | |
"license": "MIT", | |
"devDependencies": { | |
"gulp": "~3.8.6", | |
"gulp-uglify": "0.2.1", |
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
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var minicss = require('gulp-minify-css'); | |
var rename = require("gulp-rename"); | |
var del = require('del'); | |
gulp.task('clean', function(cb) { | |
del(['build'], cb); | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Move Obj Demo</title> | |
<style id="jsbin-css"> | |
html, body { | |
height: 100%; | |
overflow: hidden; | |
} |
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
<title>百万数据前端快速流畅显示</title> | |
<style type="text/css"> | |
#box {position: relative; height: 300px; width: 200px; border:1px solid #CCC; overflow: auto} | |
#box div { position: absolute; height: 20px; width: 100%; left: 0; overflow: hidden; font: 16px/20px Courier;} | |
</style> | |
<div id="box"></div> | |
<script type="text/javascript"> | |
var total = 1e5 |