Skip to content

Instantly share code, notes, and snippets.

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

Dennis Groß gdenn

🏠
Working from home
View GitHub Profile
@gdenn
gdenn / STYLE_GUIDE_functional.md
Created February 12, 2025 12:52
Azure Tech Week - .github/copilot-instructions.md
const hello = world();
FROM node:16
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json
# AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
def post(self, p: dict, pd: dict, u: str) -> str:
Request(
pd: pd,
p: p,
u: u,
m: HRMethods.POST,
).do()
def post(self, params: dict, payload: dict, url: str) -> str:
connection.close()
if response.status_code != 200:
raise RequestError("Unexpected http response code {}".format(response.status_code))
class HttpStatusCodes:
SUCCESS = 200
class HttpRequestMethods:
POST = "POST"
GET = "GET"
class HTTPRequest:
REQUEST_HEADERS = {
class HttpClient:
def post(params: dict, payload: dict, url: str) -> str:
encoded_params = urllib.urlencode(params)
headers = {
"Content-type": "application/x-www-form-urlencoded",
"Accept": "text/plain"
}
def fancy_decorator(func):
def wrapper():
return func()
return wrapper
@fancy_decorator
def simple_function():
pass
more_greetings = decorator_hello(decorator_world(more_greetings))
def decorator_hello(func):
def wrapper():
print("hello")
func()
return wrapper
def decorator_world(func):