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
<!DOCTYPE html> | |
<html lang="zh_CN" > | |
<head> | |
<meta charset="UTF-8" /> | |
<title>梦想家</title> | |
<link rel="icon" sizes="16x16" href="/favicon.ico" /> | |
<meta http-equiv="x-ua-compatible" content="ie=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" /> | |
<link rel="stylesheet" href="/bundles/startweb/css/typo.css" /> | |
<!--[if lt IE 9]> |
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/env python | |
# -*- encoding: utf-8 -*- | |
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: | |
# Created on 2014-02-28 00:15:53 | |
from libs.pprint import pprint | |
from libs.base_handler import * | |
class Handler(BaseHandler): | |
''' |
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
public function add($resume){ | |
$stmt = $this->db->prepare_and_execute( | |
"insert into resume(givename, avatar, url, address, telephone, birthday, | |
email, gender, homelocation, isicv4,jobtitle, nationality, worklocation, | |
worksfor, skills, qq, weibo,github, createdate) values (:givename, | |
:avatar,:url,:address,:telephone,:birthday,:email,:gender,:homelocation: | |
:isicv4:,:jobtitle:,:nationality,:worklocation,:worksfor,:skills,:qq,:weibo, | |
:github,now()) returning id",$resume); | |
$stmt->execute(); | |
$id = $stmt->fetch(); |
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
import sys | |
try: | |
import gevent, gevent.monkey | |
gevent.monkey.patch_all(dns=gevent.version_info[0]>=1) | |
except ImportError: | |
gevent = None | |
print >>sys.stderr, 'warning: gevent not found, using threading instead' | |
import socket |
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
<!-- WPA Button Begin --> | |
<script charset="utf-8" type="text/javascript" src="http://static.b.qq.com/account/bizqq/js/wpa.js?wty=1&type=10&kfuin=4006705100&ws=http%3A%2F%2Fwww.fenggeu.com&title=%E5%9C%A8%E7%BA%BF%E5%AE%A2%E6%9C%8D&btn1=%E4%BC%81%E4%B8%9AQQ%E4%BA%A4%E8%B0%88&fsty=0&fposX=2&fposY=1&csty=5&tx=http%3A%2F%2Fimgplat.store.qq.com%2Fbqq_qfpic%2F1495054106%2F2013011750590439a24748dd5c3e1b9371681d85%2F0&aty=0&a=&key=X1SbWb%0E%3DRaV0VcP8%05e%015RkP%3E%047W9%5C%3A%03g%0Ed%025Yd%001"></script> | |
<!-- WPA Button END --> |
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
<?php | |
$subject = "abcdef"; | |
$pattern = '/^def/'; | |
preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3); | |
print_r($matches); | |
?> |
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
form = Y.one("form"); | |
form.on("submit",function(e){ | |
e.preventDefault(); | |
var icfg={ | |
method:'POST', | |
content_type: "multipart/form-data", | |
form: { | |
id: "wired-add-attachment", | |
upload:true |