View datascience-python3.6.Dockerfile
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
FROM alpine:latest | |
LABEL MAINTAINER="Faizan Bashir <faizan.ibn.bashir@gmail.com>" | |
# Linking of locale.h as xlocale.h | |
# This is done to ensure successfull install of python numpy package | |
# see https://forum.alpinelinux.org/comment/690#comment-690 for more information. | |
WORKDIR /var/www/ |
View delete_deployment.py
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
from kubernetes import client, config | |
def delete_deployment(api_instance, deployment_name, namespace): | |
# Delete Deployment | |
api_response = api_instance.delete_namespaced_deployment( | |
name=deployment_name, | |
namespace=namespace, | |
body=client.V1DeleteOptions(propagation_policy="Foreground", grace_period_seconds=5) | |
) | |
print("Deployment deleted") |
View main.py
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 | |
import os | |
import speech_recognition as sr | |
import requests | |
import pyttsx3 | |
def main(): | |
openaiurl = "https://api.openai.com/v1" | |
openai_token = os.environ.get("OPENAI_API_TOKEN") |
View index.html
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Running Python in the browser using WebAssembly and Pyodide</title> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/pyodide/v0.23.0/full/pyodide.js"></script> | |
</head> | |
<body> | |
<h1>Calculate the square of a number using Python in WebAssembly</h1> | |
<input type="number" id="number" placeholder="Enter a number"> |
View go.mod
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
module main | |
go 1.19 | |
require ( | |
github.com/openshift/api v0.0.0-20221103085154-ea838af1820e | |
github.com/openshift/client-go v0.0.0-20221107163225-3335a34a1d24 | |
k8s.io/apimachinery v0.25.0 | |
k8s.io/client-go v0.25.0 | |
) |
View go.mod
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
module k8sdeployment | |
go 1.19 | |
require ( | |
k8s.io/api v0.26.1 | |
k8s.io/apimachinery v0.26.1 | |
k8s.io/client-go v0.26.1 | |
) |
View go.mod
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
module main | |
go 1.19 | |
require ( | |
k8s.io/api v0.26.1 | |
k8s.io/apimachinery v0.26.1 | |
k8s.io/client-go v0.26.1 | |
) |
View main.go
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
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"path/filepath" | |
corev1 "k8s.io/api/core/v1" | |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
View go.mod
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
module main | |
go 1.19 | |
require ( | |
github.com/openshift/api v0.0.0-20221103085154-ea838af1820e | |
github.com/openshift/client-go v0.0.0-20221107163225-3335a34a1d24 | |
k8s.io/api v0.26.0 | |
k8s.io/apimachinery v0.26.0 | |
k8s.io/client-go v0.26.0 |
View go.mod
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
module main | |
go 1.19 | |
require ( | |
k8s.io/apimachinery v0.26.0 | |
k8s.io/client-go v0.26.0 | |
) |
NewerOlder