2.0考虑所有的entity
,比如user
,project
,采用collection entity
来表示:
字段 | 类型 | 可选 | 说明 |
---|---|---|---|
name | string | 否 | 真实名字,不能为空 |
nick | string | 否 | 显示名字 |
addr | address |
否 | 地址 |
contact | contact |
否 | 联系方式 |
var arxiv_url_pattern = "arxiv.org/abs/"; | |
const LINK_MODE_LINKED_URL = 3; | |
var s = new Zotero.Search(); | |
s.libraryID = ZoteroPane.getSelectedLibraryID(); | |
s.addCondition('url', 'contains', arxiv_url_pattern); | |
var ids = await s.search(); | |
if (!ids.length) { | |
return "No items found"; | |
} else { | |
Zotero.warn("Find " + ids.length + " items"); |
# coding=utf-8 | |
__author__ = "Qiang Zhang" | |
__maintainer__ = "Qiang Zhang" | |
__email__ = "zhangtemplar@gmail.com" | |
""" | |
Add documentation of this module here. | |
""" | |
import json | |
import os |
"""This module contains the ``SeleniumMiddleware`` scrapy middleware""" | |
from importlib import import_module | |
from scrapy import signals | |
from scrapy.exceptions import NotConfigured | |
from scrapy.http import HtmlResponse | |
from selenium.webdriver.support.ui import WebDriverWait | |
from .http import SeleniumRequest |
""" | |
This script crawl the videos from instagram for a given url. | |
""" | |
from selenium import webdriver | |
import os | |
import time | |
import random | |
from sets import Set | |
FROM node | |
MAINTAINER zhangtemplar | |
# Prepare app directory | |
RUN mkdir -p /usr/src/app | |
ADD . /usr/src/app | |
# Install dependencies | |
WORKDIR /usr/src/app | |
RUN npm install |
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump.sql | sqlite3 database.sqlite |