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
Math.random().toString(36).substring(2, 15) |
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 Loader = (function () { | |
function Loader(options) { | |
this.options = options; | |
if (resource.scripts && resource.baseUrl) { | |
for (var i = 0; i < this.options.scripts.length; i++) { | |
this.load('js', this.options.scripts[i]); | |
} | |
for (var i = 0; i < this.options.stylesheets.length; i++) { | |
this.load('css', this.options.stylesheets[i]); | |
} |
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
/** | |
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) | |
* Common usage: wipe images (left and right to show the previous or next image) | |
* | |
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) | |
* @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems) | |
* @version 1.1 (1st September 2010) - support wipe up and wipe down | |
* @version 1.0 (15th July 2010) | |
*/ | |
(function($) { |
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
//需要安装两个依赖包 | |
// npm install mongoskin | |
// npm install moment | |
// 根目录建立一个 markdown 目录保存文章 | |
var mongo = require('mongoskin'); | |
var moment = require('moment'); | |
var fs = require('fs'); | |
//这里需要数据库连接串 | |
var db = mongo.db("mongodb://", {native_parser: true}); |
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
# %W% %E% | |
# | |
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | |
# | |
# Version | |
version=1 | |
# Component Font Mappings |