亲爱的用户, 你好!欢迎使用PingMedium!
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
| #coding: utf-8 | |
| import requests | |
| import re | |
| from requests import * | |
| import pyquery | |
| from pyquery import PyQuery as pq | |
| from lxml import etree | |
| import urllib | |
| import sys | |
| reload(sys) |
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
| App.ApplicationRoute = Ember.Route.extend | |
| setupController: (controller,model)-> | |
| this._super(controller,model) | |
| controller.set('menu',App.Menu.find()) | |
| return |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # 分别统计中文和英文的字数,不包括标点符号。 | |
| # Author: Pan Junyong from zopen.cn, panjy at zopen dot cn | |
| import re | |
| import sys | |
| from types import StringType | |
| import operator | |
| import urllib2 | |
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
| #coding: utf-8 | |
| import os | |
| import hashlib | |
| my_path = os.path.dirname(os.path.abspath(__file__))+'/qrcodes' | |
| def get_all_files_from_directory(): | |
| files = os.listdir(my_path) | |
| return files | |
| def caculate_file_md5(file): |
- Replace the
user-datafile on your coreos-vagrant directory. - Run command:
vagrant provision - Run command:
vagrant reload - Open the docker-web site, have fun :)
OlderNewer