Skip to content

Instantly share code, notes, and snippets.

View ycd's full-sized avatar

Yagiz Degirmenci ycd

  • Istanbul, Turkey
View GitHub Profile
def send_100_requests():
URL = "http://httpbin.org/uuid"
result = []
async def send_request():
r = requests.get(URL)
result.append(r.text)
async def main():
@ycd
ycd / app.py
Last active February 11, 2023 13:32
FastAPI One Liner
app = (lambda fastapi, typing: (lambda app: (app,app.get("/")(lambda: {"Quite ": "ugly"}),app.post("/annotate",)(lambda x, y: {"How to annotate this": int(x) + int(y)}),)[0])(fastapi.FastAPI()))(__import__("fastapi"), __import__("typing"))
@ycd
ycd / gitlab.ci.yaml
Created January 11, 2021 12:51
AWS Lambda auto deployment pipeline for GO (Golang)
stages:
- test
- deploy
test:
stage: test
image: golang:1.15-alpine
script:
- apk add build-base
- go test $(go list ./... | grep -v /vendor/)
@ycd
ycd / kafka_logger.py
Created February 2, 2021 23:10
async logger for kafka
import logging
import json
import asyncio
from typing import Dict, Any
from threading import Thread
import confluent_kafka
from confluent_kafka.cimpl import KafkaException
@ycd
ycd / keybase.md
Last active January 21, 2025 20:37

Keybase proof

I hereby claim:

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
(CNN) -- New Mexico Gov. Bill Richardson sharply disputed that he made any promises to Bill Clinton about presidential endorsements, as Clinton reportedly has claimed.
"I never did," Richardson said Wednesday on CNN's "The Situation Room." "I never saw [President Clinton] five times. I saw him when he watched the Super Bowl with me. We made it very clear to him that he shouldn't expect an endorsement after that meeting."
Bill Clinton made the remarks in a gathering with some California superdelegates, the San Francisco Chronicle reported. Clinton became "red-faced" when the subject of Richardson's endorsement of Sen. Barack Obama came up and said, "Five times to my face he said that he would never do that," the newspaper reported.
Shortly after Richardson's endorsement, former Clinton White House aide and political strategist James Carville, who is also a CNN political analyst, told The New York Times that Richardson's decision was an "act of betrayal."
The endorsement "came right around the anniversary