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
| package main; | |
| import ("log"; "os"; "net"; "bufio";"crypto/tls";"crypto/x509") | |
| var caPool *x509.CertPool; | |
| var tlsConf tls.Config; | |
| func connLoop(conn net.Conn) { | |
| sconn := tls.Server(conn, &tlsConf); | |
| err := sconn.Handshake(); |
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
| #ifndef TEXR_CROSS_H | |
| #define TEXR_CROSS_H | |
| #if TARGET_OS_IPHONE | |
| #define IPHONE 1 | |
| #else | |
| #define IPHONE 0 | |
| #endif | |
| #define on_iphone(x) {} |
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
| from flask import Flask | |
| from flask.ext.hopak import FlaskHopak | |
| from flask.ext.pymongo import PyMongo | |
| import models | |
| def create_app(): | |
| # Create flask app | |
| app = Flask(__name__) |
NewerOlder