Skip to content

Instantly share code, notes, and snippets.

View yutingzhao1991's full-sized avatar
🚀
Go Go Go!

愚指导 yutingzhao1991

🚀
Go Go Go!
View GitHub Profile
@yutingzhao1991
yutingzhao1991 / gist:86238c8a61e5620bdcfe
Created September 9, 2014 00:44
将点点网的BLOG导出的XML转化Markdown格式的文件
var cheerio = require('cheerio')
var fs = require('fs')
var moment = require('moment')
var upndown = require('upndown')
var text = fs.readFileSync("blogs.xml", 'utf8')
var $ = cheerio.load(text)
var posts = $('post')
@yutingzhao1991
yutingzhao1991 / gist:a2fcceec35fb476ce3eb
Created September 24, 2014 09:54
data tables 中文配置
DATATABLES_LANGUAGE_CN = { //语言配置-中文
"sLengthMenu": "每页显示 _MENU_ 条记录",
"sZeroRecords": "对不起,查询不到任何相关数据",
"sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_ 条记录",
"sInfoEmpty": "找不到相关数据",
"sEmptyTable": "表中没有可用数据",
"sInfoFiltered": "数据表中共为 _MAX_ 条记录",
"sProcessing": "正在加载中...",
"sSearch": "搜索 ", // 后面加一个空格好看一点
"oPaginate": {
@yutingzhao1991
yutingzhao1991 / TOPIC
Last active January 7, 2016 06:17
数据可视化
财新网设计师:数据新闻可视化经验谈 - http://www.36dsj.com/archives/6173
react 深入浅出React(一):React的设计哲学 - 简单之美 http://www.infoq.com/cn/articles/react-art-of-simplity
@yutingzhao1991
yutingzhao1991 / gist:8f42fee4de798e86e1aa
Last active August 29, 2015 14:07
Interesting topic
2014 10
Bootstrap how to achieve grid system.
The best way to use js module in NodeJS and Browser.
Is html single tag need end with '/' ?
NodeJS env NODE_TLS_REJECT_UNAUTHORIZED
2014 11
File Encoding
@yutingzhao1991
yutingzhao1991 / gist:8622548d0516c4509bc2
Created October 20, 2014 13:41
Simple bootstrap grid system
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>row and col</title>
<style>
.row {
margin-right: -15px;
margin-left: -15px;
}
@yutingzhao1991
yutingzhao1991 / No Recursive 非递归
Last active August 29, 2015 14:08
Cartesian product 笛卡尔积 with Javascript
var test = [[1,2],[3,4,5],[7,8]]
var result = []
var count = 1
for (var i = 0 ; i < test.length ; i ++) {
count *= test[i].length
}
for (var i = 0 ; i < count ; i ++) {
result.push([])
}
@yutingzhao1991
yutingzhao1991 / gist:e42af9afee899a72feb8
Created November 1, 2014 03:11
Interesting github repository
Javascript library:
@yutingzhao1991
yutingzhao1991 / 开发规范
Last active August 29, 2015 14:08
web前端
JSON API:
http://jsonapi.org.cn/
Mock.js 是一款模拟数据生成器,旨在帮助前端攻城师独立于后端进行开发,帮助编写单元测试。 http://mockjs.com/