Skip to content

Instantly share code, notes, and snippets.

# b) Dilation (Genişletme): Nesnelerin kenarlarına piksel ekleme.
dilation = cv2.dilate(image, kernel, iterations=1)
# Config.ps1
# Default configuration path
$script:DEFAULT_CONFIG_PATH = Join-Path $PSScriptRoot "config.json"
# Global configuration object
$script:GlobalConfig = $null
function Initialize-Config {
param (
@CozmaRares
CozmaRares / Makefile
Created February 11, 2025 16:57
cpp makefile example
STDVER = c++17
CXX = g++
CXXFLAGS = \
-Wall -Wextra -Wcast-qual -Wshadow -Wconversion -Wpedantic -Werror \
-fdiagnostics-color=always -fno-exceptions \
-O2 -std=$(STDVER)
SRCDIR = src
SRCS = $(shell find $(SRCDIR) -name "*.cpp")
# a) Erosion (Aşındırma): Nesnelerin kenarlarından piksel kaybı sağlar.
erosion = cv2.erode(image, kernel, iterations=1)
#ifndef CURRENCY_H
#define CURRENCY_H
#include <string>
#include <iomanip>
#include <iostream>
class Currency {
protected:
int whole; //whole is the note amount such as 1 whole for 1 dollar.
{
"database": {
"serverInstance": "localhost",
"username": "sa",
"defaultPassword": "Password123!",
"port": 1433,
"connectionTimeout": 30,
"databases": [
"entity-service",
"uploader-service",
# 3. Morfolojik işlemler için çekirdek (kernel) tanımlayalım.
# Burada 5x5 boyutunda dikdörtgen bir çekirdek kullanıyoruz.
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))
#include <iostream>
int main() {
int rows, cols, num;
std::cout << "Введіть кількість рядків: ";
std::cin >> rows;
std::cout << "Введіть кількість стовпців: ";
std::cin >> cols;
std::cout << "Введіть число: ";
graph TD
A[User Requests App] --> B{Auto Rollout Option?}
B -->|False| C[Business Application Owner]
B -->|True| E[SAGA: Grant Access]
C --> D{Business Owner Decision}
D -->|Accept| E
D -->|Reject| F[Request Rejected]
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.ssl_ import create_urllib3_context
from urllib3.poolmanager import PoolManager
# Custom SSL adapter to force the hostname for SSL verification
class HostHeaderSSLAdapter(HTTPAdapter):
def init_poolmanager(self, *args, **kwargs):
context = create_urllib3_context()
kwargs['ssl_context'] = context