Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>MyHtml.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
@syshack
syshack / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/************************************************************************
* 发送邮件模块
*可以发送文本和附件(支持多个附件一起发送)
*Date:2011-12-01
************************************************************************/
#include "StdAfx.h"
#include "sendmail.h"
#include "winsock2.h"
#pragma comment(lib,"WSOCK32")
#pragma comment(lib, "ws2_32")
@syshack
syshack / Cmakelist.txt
Created September 24, 2014 02:30
Cmakelist.text
cmake_minimum_required(VERSION 2.8.4)
project(clionproject)
LINK_DIRECTORIES(
/usr/local/lib
)
TARGET_LINK_LIBRARIES(opencv_core opencv_imgproc opencv_flann
opencv_imgcodecs opencv_videoio opencv_highgui opencv_ml opencv_video
opencv_objdetect opencv_photo opencv_features2d opencv_calib3d
opencv_stitching opencv_videostab opencv_shape)
{% extends "base.html" %}
{% block head %}
{{ super() }}
{% endblock %}
{% block nav %}{{super()}}{%endblock%}
{% block content %}
<legend class="">稳定版虚拟机列表</legend>
<div class="span8">
<div>
{% with messages = get_flashed_messages() %}
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.contrib.spiders import CrawlSpider, Rule
from jdspider.items import ResItem
class CheckResSpider(CrawlSpider):
name = 'check_res'
def __init__(self, url=None, check=None, *args, **kwargs):
super(CheckResSpider, self).__init__(*args, **kwargs)
[scrapyd]
eggs_dir = eggs
logs_dir = logs
items_dir = items
jobs_to_keep = 5
dbs_dir = dbs
max_proc = 0
max_proc_per_cpu = 4
finished_to_keep = 100
poll_interval = 5
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.25</version>
<!-- <configuration>
<contextPath>/</contextPath>
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>-->
</plugin>
<!DOCTYPE html>
<html lang="en">
{% extends 'common/base.html' %}
{% block title %}
<title>五星汇 五星自由行 经深飞</title>
{% endblock %}
{% block css %}
<link href="http://cdn.bootcss.com/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet">
<link href="http://cdn.bootcss.com/twitter-bootstrap/2.3.2/css/bootstrap-responsive.min.css" rel="stylesheet">
{
"spicehosts": [
{
"end_port": 6000,
"deleted": 0,
"ip": "10.28.174.22",
"created_at": "2013-10-17 12:43:18",
"hostname": "cloudNode17422",
"updated_at": null,
"spice_infos": [