Skip to content

Instantly share code, notes, and snippets.

View mstfsnc's full-sized avatar

mustafa mstfsnc

View GitHub Profile
@mstfsnc
mstfsnc / diff.js
Last active July 19, 2023 19:48
symmetric difference
const first = ["A", "B", "C"]
const second = ["A", "B"]
// 1) long way
const firstArrayDiff = first.filter((f) => {
return second.includes(f) === false
})
const secondArrayDiff = second.filter((s) => {
return first.includes(s) === false
@mstfsnc
mstfsnc / woeid.json
Created May 16, 2020 12:34
bazı şehirlerin woeid idleri
[
{
"name": "Mersin",
"url": "http://where.yahooapis.com/v1/place/2323778",
"woeid": 2323778
},
{
"name": "Adana",
"url": "http://where.yahooapis.com/v1/place/2343678",
"woeid": 2343678
FROM python:3.7-slim
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
WORKDIR /code
RUN pip install --upgrade pip && pip install pipenv
COPY Pipfile Pipfile.lock /code/
RUN pipenv install --system
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
[
{"name":"Adana", "slug": "adana"},
{"name":"Adıyaman", "slug": "adiyaman"},
{"name":"Afyonkarahisar", "slug": "afyonkarahisar"},
{"name":"Ağrı", "slug": "agri"},
{"name":"Amasya", "slug": "amasya"},
{"name":"Ankara", "slug": "ankara"},
{"name":"Antalya", "slug": "antalya"},
{"name":"Artvin", "slug": "artvin"},
{"name":"Aydın" , "slug": "aydin"},
@mstfsnc
mstfsnc / bin.json
Last active February 23, 2024 11:58
banka bin numaraları
[
{
"banka_adi": "T.C.Z\u0130RAAT BANKASI A.\u015e.",
"marka": "maximum",
"kredi_karti": {
"master_card": [
"540134",
"547287",
"542374",
"540130",