Skip to content

Instantly share code, notes, and snippets.

View erenkeskin's full-sized avatar

Hasan Eren Keskin erenkeskin

View GitHub Profile
@erenkeskin
erenkeskin / turkeyBinNumbers.json
Last active January 16, 2024 23:25
Türkiye Güncel BIN Listesi
[
374424, 375550, 375551, 375557, 375622, 375625, 375627, 375628, 375629, 375631, 375632, 375633, 375634, 375635, 375636, 375637, 375638, 375639, 375641, 375642, 375643, 375644,
375645, 375646, 375647, 375648, 375649, 400684, 400709, 400742, 401049, 401072, 401622, 401738, 401856, 402003, 402142, 402275, 402276, 402277, 402278, 402280, 402287, 402299,
402458, 402459, 402526, 402563, 402589, 402590, 402591, 402592, 402770, 402940, 403082, 403134, 403223, 403228, 403280, 403360, 403431, 403595, 403666, 403810, 403836, 404308,
404315, 404350, 404809, 404952, 404990, 405051, 405090, 405903, 405917, 405918, 405919, 406015, 406281, 406386, 406456, 407046, 407112, 407381, 407814, 408538, 408578, 408579,
408581, 408593, 408625, 408969, 409021, 409022, 409070, 409071, 409084, 409219, 409364, 409622, 410105, 410141, 410147, 410555, 410556, 411156, 411157, 411158, 411159, 411222,
411685, 411724, 411769, 411924, 411942, 411943, 411944, 411979, 412345, 412574, 412576, 412931, 413226, 413252, 413382, 413528, 413583,
**Terms & Conditions**
By downloading or using the app, these terms will automatically apply to you – you should make sure therefore that you read them carefully before using the app. You’re not allowed to copy or modify the app, any part of the app, or our trademarks in any way. You’re not allowed to attempt to extract the source code of the app, and you also shouldn’t try to translate the app into other languages or make derivative versions. The app itself, and all the trademarks, copyright, database rights, and other intellectual property rights related to it, still belong to Hasan Eren Keskin.
Hasan Eren Keskin is committed to ensuring that the app is as useful and efficient as possible. For that reason, we reserve the right to make changes to the app or to charge for its services, at any time and for any reason. We will never charge you for the app or its services without making it very clear to you exactly what you’re paying for.
The Agrimentor app stores and processes personal data that you have pro
**Privacy Policy**
Hasan Eren Keskin built the Agrimentor app as a Freemium app. This SERVICE is provided by Hasan Eren Keskin at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Agrimentor unless otherwise defined in this Privacy Policy.
@erenkeskin
erenkeskin / firebaseErrorMessageHandler.js
Last active April 12, 2023 01:11
Using Firebase with error handler, you can check your error.code
export const firebaseErrorMessages = {
// Auth Errors
'auth/admin-restricted-operation': 'Admin restricted operation',
'auth/argument-error': 'Argument error',
'auth/app-not-authorized': 'App not authorized',
'auth/app-not-installed': 'App not installed',
'auth/captcha-check-failed': 'Captcha check failed',
'auth/code-expired': 'Code expired',
'auth/cordova-not-ready': 'Cordova not ready',
'auth/cors-unsupported': 'CORS unsupported',
s0="0"
s1="1"
selectedS=$s0
s=$1
if [ $s -eq 0 ]; then
selectedS=$s0
elif [ $s -eq 1 ]; then
selectedS=$s1
else
@erenkeskin
erenkeskin / test_mock.cpp
Created May 11, 2020 14:19
Mock test code
#include "gtest/gtest.h"
#include "gmock/gmock.h"
using namespace std;
using ::testing::Return;
//
class UserInterface {
public:
virtual ~UserInterface() {;}
# for graphics library: https://mcsp.wartburg.edu/zelle/python/graphics.py
import math
import random
import graphics
POINT_MIN = 0
POINT_MAX = 250
WINDOW_WIDTH = 300
WINDOW_HEIGHT = 300
import xlsxwriter
from xlsxwriter.utility import xl_rowcol_to_cell
import xlrd
hepsiburadaFiyat= r'C:\Users\xxx\Desktop\hepsiburada-fiyat.xlsx'
hepsiburadaSablon= r'C:\Users\xxx\Desktop\hepsiburada-sablon.xlsx'
wbk = xlsxwriter.Workbook('hepsiburada-sablon2.xlsx')
wks = wbk.add_worksheet()
################################################################################################
#
# image resize: https://www.techtrekking.com/how-to-compress-images-using-python/
# resize in directory: http://herenkeskin.com/python-dizin-icerisindeki-gorsellerin-boyutlarini-kucultme
#
################################################################################################
from PIL import Image, ImageDraw, ImageFont
import os
import glob
### Hasan Eren Keskin
### http://herenkeskin.com
### Change all pdf name with space replaced '-' and lowercase
import os
import glob
path = os.getcwd()