This file contains 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 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') |
This file contains 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
DATATABLES_LANGUAGE_CN = { //语言配置-中文 | |
"sLengthMenu": "每页显示 _MENU_ 条记录", | |
"sZeroRecords": "对不起,查询不到任何相关数据", | |
"sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_ 条记录", | |
"sInfoEmpty": "找不到相关数据", | |
"sEmptyTable": "表中没有可用数据", | |
"sInfoFiltered": "数据表中共为 _MAX_ 条记录", | |
"sProcessing": "正在加载中...", | |
"sSearch": "搜索 ", // 后面加一个空格好看一点 | |
"oPaginate": { |
This file contains 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
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 |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>row and col</title> | |
<style> | |
.row { | |
margin-right: -15px; | |
margin-left: -15px; | |
} |
This file contains 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 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([]) | |
} |
This file contains 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
Javascript library: | |
This file contains 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
JSON API: | |
http://jsonapi.org.cn/ |
This file contains 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
Mock.js 是一款模拟数据生成器,旨在帮助前端攻城师独立于后端进行开发,帮助编写单元测试。 http://mockjs.com/ |
This file contains 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
neocomplcache |
OlderNewer