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
package com.mugbya.cjtrade.activiti.test; | |
import org.activiti.engine.RepositoryService; | |
import org.activiti.engine.RuntimeService; | |
import org.activiti.engine.TaskService; | |
import org.activiti.engine.repository.Deployment; | |
import org.activiti.engine.runtime.ProcessInstance; | |
import org.activiti.engine.task.Task; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; |
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
console.log('Loading a web page'); | |
var fs = require('fs'); | |
var page = require('webpage').create(); | |
page.open('http://cd.house.qq.com/', function() { | |
var links = page.evaluate(function() { | |
var links = new Array(); | |
var len = document.body.getElementsByTagName("object").length; | |
for( var i = 0; i < len; 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
# coding: utf-8 | |
import xlsxwriter | |
from weixin.tools.db import queryMany | |
from weixin.tools.table_fields import TABLE_FIELDs | |
from openpyxl.writer.excel import ExcelWriter | |
from openpyxl import load_workbook | |
class FileHandler(object): | |
''' |
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
from sanic.response import html | |
from jinja2 import Environment, PackageLoader | |
from config.settings import PACKAGE_NAME, TEMPLATES | |
class SanicJinja2: | |
def __init__(self, loader=None, **kwargs): | |
self.env = Environment(**kwargs) | |
if not loader: | |
loader = PackageLoader(PACKAGE_NAME, TEMPLATES) |
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
import datetime | |
import time | |
import base64 | |
import json | |
import hmac | |
from hashlib import sha1 as sha | |
expire_time = 30 | |
upload_dir = settings.ALIYUN_OSS_DIRECTORY_PREFIX |
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
# -*- coding: utf-8 -*- | |
import scrapy | |
from uuid import uuid1 | |
import logging | |
logger = logging.getLogger(__name__) | |
class TiebaSpider(scrapy.Spider): | |
name = "facebook" | |
allowed_domains = ['www.facebook.com'] |