Discover gists
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
import numpy as np | |
import matplotlib.pyplot as plt | |
import japanize_matplotlib | |
from scipy.special import gamma | |
def generalized_normal_pdf(x, beta, mu=0): | |
""" | |
分散を1に標準化した一般化正規分布の確率密度関数を返す。 | |
パラメータ: | |
beta : 形状パラメータ |
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
# b) Dilation (Genişletme): Nesnelerin kenarlarına piksel ekleme. | |
dilation = cv2.dilate(image, kernel, iterations=1) |
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
# Config.ps1 | |
# Default configuration path | |
$script:DEFAULT_CONFIG_PATH = Join-Path $PSScriptRoot "config.json" | |
# Global configuration object | |
$script:GlobalConfig = $null | |
function Initialize-Config { | |
param ( |
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
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") |
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
# a) Erosion (Aşındırma): Nesnelerin kenarlarından piksel kaybı sağlar. | |
erosion = cv2.erode(image, kernel, iterations=1) |
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
#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. |
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
{ | |
"database": { | |
"serverInstance": "localhost", | |
"username": "sa", | |
"defaultPassword": "Password123!", | |
"port": 1433, | |
"connectionTimeout": 30, | |
"databases": [ | |
"entity-service", | |
"uploader-service", |
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
# 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)) |
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
#include <iostream> | |
int main() { | |
int rows, cols, num; | |
std::cout << "Введіть кількість рядків: "; | |
std::cin >> rows; | |
std::cout << "Введіть кількість стовпців: "; | |
std::cin >> cols; | |
std::cout << "Введіть число: "; |
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
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] |
NewerOlder