- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 959 for Wain (0.21 sec)
-
.github/actions/comment-docs-preview-in-pr/app/main.py
class PartialGithubEventWorkflowRun(BaseModel): head_commit: PartialGithubEventHeadCommit class PartialGithubEvent(BaseModel): workflow_run: PartialGithubEventWorkflowRun if __name__ == "__main__": logging.basicConfig(level=logging.INFO) settings = Settings() logging.info(f"Using config: {settings.json()}") g = Github(settings.input_token.get_secret_value())
Python - Registered: 2023-12-03 07:19 - Last Modified: 2022-07-11 19:30 - 2K bytes - Viewed (0) -
docs/extensions/s3zip/examples/minio-go/main.go
package main import ( "context" "io" "log" "os" "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" ) func main() { s3Client, err := minio.New("minio-server-address:9000", &minio.Options{ Creds: credentials.NewStaticV4("access-key", "secret-key", ""), }) if err != nil { log.Fatalln(err) } var opts minio.GetObjectOptions // Add extract header to request:
Go - Registered: 2023-12-03 19:28 - Last Modified: 2021-06-14 18:04 - 694 bytes - Viewed (0) -
cni/cmd/install-cni/main.go
// See the License for the specific language governing permissions and // limitations under the License. package main import ( "context" "os" "os/signal" "syscall" "istio.io/istio/cni/pkg/cmd" "istio.io/istio/pkg/log" ) func main() { // Create context that cancels on termination signal ctx, cancel := context.WithCancel(context.Background()) sigChan := make(chan os.Signal, 1)
Go - Registered: 2023-11-29 22:53 - Last Modified: 2023-05-23 17:08 - 1.2K bytes - Viewed (0) -
cni/cmd/istio-cni/main.go
// parses prevResult according to the cniVersion package main import ( "fmt" "os" "github.com/containernetworking/cni/pkg/skel" "github.com/containernetworking/cni/pkg/version" "istio.io/istio/cni/pkg/plugin" "istio.io/istio/pkg/log" istioversion "istio.io/istio/pkg/version" ) func main() { if err := log.Configure(plugin.GetLoggingOptions("")); err != nil { os.Exit(1) }
Go - Registered: 2023-11-29 22:53 - Last Modified: 2023-09-19 22:25 - 1.5K bytes - Viewed (0) -
docs/debugging/healing-bin/main.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package main import ( "archive/zip" "bytes" "encoding/json" "fmt" "io" "log" "os" "strings" "github.com/minio/cli" "github.com/tinylib/msgp/msgp" ) func main() { app := cli.NewApp() app.Copyright = "MinIO, Inc." app.Usage = "healing.bin to JSON" app.HideVersion = true
Go - Registered: 2023-12-03 19:28 - Last Modified: 2022-09-19 18:05 - 3.2K bytes - Viewed (0) -
okcurl/src/commonMain/kotlin/okhttp3/curl/Main.kt
* limitations under the License. */ package okhttp3.curl import com.github.ajalt.clikt.core.CliktCommand import okhttp3.Call import okhttp3.Request expect class Main() : CliktCommand { val method: String? val data: String? val url: String? val referer: String? val headers: List<String>? val showHeaders: Boolean val userAgent: String
Plain Text - Registered: 2023-12-01 11:42 - Last Modified: 2022-08-15 14:21 - 1K bytes - Viewed (0) -
okcurl/src/jvmMain/kotlin/okhttp3/curl/Main.kt
import okhttp3.curl.internal.commonRun import okhttp3.curl.logging.LoggingUtil import okhttp3.internal.platform.Platform import okhttp3.logging.HttpLoggingInterceptor import okhttp3.logging.LoggingEventListener actual class Main : CliktCommand(name = NAME, help = "A curl for the next-generation web.") { actual val method: String? by option("-X", "--request", help="Specify request command to use")
Plain Text - Registered: 2023-12-01 11:42 - Last Modified: 2022-08-15 14:21 - 5.6K bytes - Viewed (0) -
analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/Main.kt
internal fun SmartPrinter.printCopyright() { println(COPYRIGHT) println() } internal fun SmartPrinter.printGeneratedMessage() { println(GeneratorsFileUtil.GENERATED_MESSAGE) println() } fun main() { val rootPath = Paths.get("analysis/analysis-api-fir/src").toAbsolutePath() val packageName = "org.jetbrains.kotlin.analysis.api.fir.diagnostics"
Plain Text - Registered: 2023-12-01 08:18 - Last Modified: 2023-11-16 14:27 - 1.5K bytes - Viewed (0) -
docs_src/app_testing/app_b_an_py310/main.py
} app = FastAPI() class Item(BaseModel): id: str title: str description: str | None = None @app.get("/items/{item_id}", response_model=Item) async def read_main(item_id: str, x_token: Annotated[str, Header()]): if x_token != fake_secret_token: raise HTTPException(status_code=400, detail="Invalid X-Token header") if item_id not in fake_db:
Python - Registered: 2023-12-03 07:19 - Last Modified: 2023-03-18 12:29 - 1.1K bytes - Viewed (0) -
docs_src/app_testing/app_b_an_py39/main.py
} app = FastAPI() class Item(BaseModel): id: str title: str description: Union[str, None] = None @app.get("/items/{item_id}", response_model=Item) async def read_main(item_id: str, x_token: Annotated[str, Header()]): if x_token != fake_secret_token: raise HTTPException(status_code=400, detail="Invalid X-Token header") if item_id not in fake_db:
Python - Registered: 2023-12-03 07:19 - Last Modified: 2023-03-18 12:29 - 1.1K bytes - Viewed (0)