Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
---
# Python 简介
@su27 and @menghan
----
高级
-
易学易读易维护
| from flask.ext.sqlalchemy import SQLAlchemy | |
| from app import db | |
| class User(db.Model): | |
| id = db.Column(db.Integer, primary_key = True) | |
| username = db.Column(db.String(80), unique = True, | |
| index = True, nullable = False) | |
| email = db.Column(db.String(120), unique = True, nullable = False) | |
| password = db.Column(db.String(100), nullable = False) |
| project-x | |
| ========= | |
| project-x is a better way to achieve this and that, by leveraging the new API, | |
| blablabla. | |
| ## Usage | |
| ... |
| @media screen and (min-width: 921px) { | |
| body { | |
| color: red; | |
| } | |
| } | |
| @media screen and (max-width: 920px) { | |
| body { | |
| color: blue; | |
| } | |
| } |
| main(); | |
| function main() { | |
| var users = ['guxizhao', 'zou-dao-kou', 'xiaodaoren', 'cai-tong', 'xu-xiang-nan', 'unogzx', 'shenbin', 'PeterDeng', 'namiheike', 'wu-si-yang-32', 'yskin', 'jixin']; | |
| var results = new Array(); | |
| var usercursor = 0; | |
| var search_result = '<div id="bg" style="width:100%;height:100%;top:0;left:0;position:absolute;background-color:rgba(0, 0, 0, 0.2);z-index:9999;"></div><div id="search-result" style="width: 480px;left:50%;top:20%;margin-left: -240px; position: fixed; background: white; z-index: 99999;"><div class="search-result-header" style="background-color: rgb(200, 200, 169); margin: 0px;"><h1 style="margin:0px;">loading</h1></div><div class="search-result-body" style="background-color: rgb(131, 175, 155); margin: 0px; overflow-y: auto; height: 400px;"></div></div><iframe class="spilder-frame" src="" style="display:none"></iframe>'; | |
| $("body").append(search_result); | |
| next_user(); | |
| //finished loading the iframe |
| <span id="ajaxButton" style="cursor: pointer; text-decoration: underline"> | |
| Make a request | |
| </span> | |
| <script type="text/javascript"> | |
| (function() { | |
| var httpRequest; | |
| document.getElementById("ajaxButton").onclick = function() { makeRequest('test.html'); }; | |
| function makeRequest(url) { | |
| if (window.XMLHttpRequest) { // Mozilla, Safari, ... |
| var d1 = [[0, 1], [1, 2], [4, 5], [6, 100]]; | |
| var data = [ | |
| {label: "shit", data: d1} | |
| ] | |
| var options = { | |
| series: { | |
| lines: { show: true}, | |
| points: {show: true} | |
| }, | |
| grid: {clickable: true, hoverable: true}, |
| #triangle-bottom{ | |
| width:0px; | |
| height:0px; | |
| border:10px solid; | |
| border-color:transparent transparent #339966 transparent; | |
| } |
| .Center-Container { | |
| position: relative; | |
| } | |
| .Absolute-Center { | |
| width: 50%; | |
| height: 50%; | |
| overflow: auto; | |
| margin: auto; | |
| position: absolute; |
| <form action="" post="get" role="form"> | |
| <fieldset> | |
| <div class="form-group"> | |
| <label for="email">Email</label> | |
| <div class="input-group"> | |
| <span class="input-group-addon"> | |
| <i class="glyphicon glyphicon-user"></i> | |
| </span> | |
| <input type="email" name="username" class="form-control" placeholder="Your Email"> | |
| </div> |