Skip to content

Instantly share code, notes, and snippets.

View jorged104's full-sized avatar
🏠
Working from home

Jorge Daniel Monterroso Nowell jorged104

🏠
Working from home
View GitHub Profile
# apiVersion: networking.k8s.io/v1beta1 # for k8s < v1.19
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-ingress
namespace: linkerd-viz
annotations:
nginx.ingress.kubernetes.io/upstream-vhost: $service_name.$namespace.svc.cluster.local:8084
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Origin "";
class Node():
def __init__(self,data : str ) -> None:
self.data = data
self.next = None
class Node():
def __init__(self, data : str):
super().__init__()
self.data = data
self.next = None
@jorged104
jorged104 / circular_list.py
Created November 29, 2021 15:58
circular_list.py
class circular_list():
def __init__(self):
self.head :Node = None
def append(self,data :str ):
new_nodo = Node(data)
temp_node = self.head
if temp_node == None:
@jorged104
jorged104 / Linked_list.py
Created July 16, 2021 16:58
Linked list
class linked_list():
def __init__(self):
#Head is a fist node at list
self.head =None
def append(self,data:str):
new_nodo = nodo(data)
if self.head == None: