Skip to content

Instantly share code, notes, and snippets.

View barisates's full-sized avatar

Barış Ateş barisates

View GitHub Profile

#Starting Python Web development in Mac OS X#

Objective: Getting started with Python Development Operating System: Mac OS X Python version installed: 3.5 (5th December 2015)

Downoad the lastest Python from https://www.python.org/downloads/

Git 2FA, Sourcetree Ayarları

Git için 2FA aktif edildi. Sourcetree bağlantısı için bazı ayalarlar yapılması gerekiyor.

Öncelikle git adresinize giriş yaptıktan sonra aşağıdaki adrese gidin;

User Settings > Access Tokens

Aşağıdaki ekran görütüsünde olduğu gibi ayarları yaptıktan sonra bir Access Token oluşturun.
@barisates
barisates / readme.md
Created September 28, 2020 14:41 — forked from hisvarlar/readme.md
Work with branches

GitLab üzerinde branchler ile çalışmak

Git üzerinden yönettiğimiz projelerde uzaktan çalışırken ekibin takibi , conflict sorunlarını azaltmak ve code review işlerini daha kolaylaştırmak ve bunların yanı sıra ideal kod geliştirme ortamını yakalamak amacı ile artık projelerimizde kişiye ya da göreve özel branchler ile çalışmaya başlıyoruz.

Git-flow modeline göre her projenin çalışan yayına hazır versiyonu master branch olmalıdır ve sadece develop branch den merge edilmelidir.(Acil durumlarda hotfix ten de edilebilir)

  1. newbranch
@barisates
barisates / TakeIf.cs
Last active September 23, 2020 12:59
public static IQueryable<TSource> TakeIf<TSource>(this IQueryable<TSource> source, bool condition, int count)
{
if (condition)
return source.Take(count);
else
return source;
}
@barisates
barisates / usePromiseState.js
Last active December 15, 2020 14:13
State hook with callback function.
import { useState, useEffect } from 'react';
export const usePromiseState = initialState => {
const [state, setState] = useState({
state: initialState,
callback: null,
});
const setPromiseState = (value, callback) => {
setState({ state: value, callback });
@barisates
barisates / Git SSL Ayarları.md
Last active July 14, 2025 07:41
Sourcetree Git SSL ayarları.

Git SSL Ayarları

Git sunucumuz artık https üzerinden yayın yapıyor. Sourcetree üzerinde ekli olan projeler üzerinde adres değişiklikleri yapmamız gerekiyor.

Eğer sıfırdan bir proje clone edilecekse önce .gitconfig değişikliği yapılması gerekiyor.

Bunun için aşağıdaki adımları takip ediniz;
  • Öncelikle adres değişikliği yapmak istediğimiz projeyi Sourcetree üzerinden açıyoruz. Sağ üst köşedeki Settings butonunu tıklıyoruz.
  • Açılan pencereden Remote repository paths listesindeki öğeyi seçip Edit butonuna basıyoruz.
@barisates
barisates / Database Naming Conventions.md
Last active March 10, 2020 07:51
Database Naming Conventions for Developers

MsSQL / MySQL

Table Name

  • We use singular names and our notation is PascalCase. (e.g. User, Product, Role)

Column Name

  • We use singular names and our notation is PascalCase. (e.g. FirstName, Amount)

Stored Procedure Name

  • Use the prefix usp_, names will be singular and notation PascalCase. Stored Procedure name format should be usp_[Object][Action]. (e.g. usp_UserAdd, usp_UserDelete)