Skip to content

Instantly share code, notes, and snippets.

View mennansevim's full-sized avatar
🤖
I may be slow to respond.

MENNAN SEVİM mennansevim

🤖
I may be slow to respond.
View GitHub Profile
@mennansevim
mennansevim / commencis-tech-radar.json
Last active April 30, 2025 11:23
commencis-tech-radar
[
{
"name": "Apache Kafka",
"ring": "trial",
"quadrant": "Languages & Frameworks",
"isNew": "FALSE",
"description": "We are currently evaluating Apache Kafka for real-time data streaming and message queueing scenarios. If the trials prove successful in terms of scalability and reliability, we plan to adopt it broadly across more projects."
},
{
"name": "Code Review",
@mennansevim
mennansevim / datacontract.yaml
Last active June 6, 2024 15:25
medium-article-datacontract-yaml
dataContractSpecification: 0.9.3
id: create_user_request
info:
title: Create User Request
description: Model representing a request to create a user.
version: "0.0.1"
links:
documentation: https://example.com/docs/create_user_request
servers:
main:
# -- Use bash script in this file
#!/bin/bash
function line() {
echo -e "\n----------------------------------------------------------------------------------------------------"
}
function log() {
echo -e "\n$(date '+%Y-%m-%d %H:%M:%S') $1"
line
# This command is used if the build should be executed in context
# of another user (the shell executor)
cat generated-bash-script | su --shell /bin/bash --login user
# This command is used if the build should be executed using
# the current user, but in a login environment
cat generated-bash-script | /bin/bash --login
# This command is used if the build should be executed in
# a Docker environment
# List all badges of a project
GET /projects/:id/badges
Example:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/:id/badges"
# Gets a badge of a project.
GET /projects/:id/badges/:badge_id
# face_recognition ve opencv kütüphanelerini import ederek başlıyoruz
import face_recognition
import cv2
from playsound import sayHelloToMiray
from playsound import stopMusic
def stopPlayingMusic():
stopMusic()
globals()['__nowPlaying']=False
return
@mennansevim
mennansevim / spagetti_code_sample.bas
Last active January 23, 2021 21:09
Spagetti Code
INPUT "How many numbers to sort? "; T
DIM n(T)
FOR i = 1 TO T
PRINT "NUMBER:"; i
INPUT n(i)
NEXT i
'Calculations:
C = T
E180:
C = INT(C / 2)
@mennansevim
mennansevim / register and check runner
Last active June 22, 2020 09:35
GitLab - Register Runner
#!/bin/bash
function log() {
echo -e "\n$(date '+%Y-%m-%d %H:%M:%S') $1"
}
function check() {
if [ ! -f /usr/local/bin/gitlab-runner ]; then
log "gitlab-runner not found!"
sudo wget -q -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
log "gitlab-runner downloaded!"
sudo chmod +x /usr/local/bin/gitlab-runner
public abstract class IGeneralization {
public abstract boolean isCovering();
public abstract boolean isDisjoint();
}
public class SpecialistClass1: IGeneralization {
public boolean isCovering(){
//statement for implement isCovering method
}
class Program
{
static void Main(string[] args)
{
TransferOperation transferOperation = null;
// -- Parametrenin Email geldiğini varsayıyorum
var tType = TransferType.EMAIL;
// -- Türe göre oluşacak nesneyi oluşturuyoruz.
switch(tType)