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
| use std::{sync::Arc, time::Instant}; | |
| use datafusion::{ | |
| arrow::{array::RecordBatch, json::ArrayWriter}, | |
| prelude::SessionContext, | |
| }; | |
| use iceberg::{io::FileIO, table::StaticTable, TableIdent}; | |
| use iceberg_datafusion::IcebergTableProvider; | |
| use lambda_runtime::{ | |
| run, service_fn, |
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
| use axum::{ | |
| extract::{Extension, Path}, | |
| routing::get, | |
| AddExtensionLayer, Router, | |
| }; | |
| use hyper::service::make_service_fn; | |
| use std::{ | |
| convert::Infallible, | |
| sync::{Arc, Mutex}, | |
| }; |
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
| upstream node_server { | |
| server localhost:3000; | |
| } | |
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /usr/share/nginx/html; |
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 ( | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| "fmt" | |
| ) | |
| func main() { | |
| // New functionality written in Go | |
| http.HandleFunc("/new", func(w http.ResponseWriter, r *http.Request) { |
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
| Server.java | |
| /* ------------------ | |
| Server | |
| usage: java Server [RTSP listening port] | |
| ---------------------- */ | |
| import java.io.*; | |
| import java.net.*; |