This file contains 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
//https://github.com/Hopsken/openai-api-proxy | |
const upstream = 'https://api.openai.com' | |
export interface Env { | |
OPENAI_API_KEY: string | |
} | |
export default { | |
async fetch( | |
request: Request, |
This file contains 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 python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
import cgi |
This file contains 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
/** | |
* Copyright (c) 2010, Jason Davies. | |
* | |
* All rights reserved. This code is based on Bradley White's Java version, | |
* which is in turn based on Nicholas Yue's C++ version, which in turn is based | |
* on Paul D. Bourke's original Fortran version. See below for the respective | |
* copyright notices. | |
* | |
* See http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/ for the original | |
* paper by Paul D. Bourke. |
This file contains 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
#include "max_sum_submatrix.h" | |
#include <iostream> | |
#include <vector> | |
int main() | |
{ | |
std::vector<int> v = { 4,6,8,3,-233,6,5,-2,83,2,3,6,4 }; | |
std::vector< std::vector<int> > matirx = { |