Skip to content

Instantly share code, notes, and snippets.

View atayahmet's full-sized avatar
🎯
Focusing

Ahmet atayahmet

🎯
Focusing
View GitHub Profile
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@atayahmet
atayahmet / schema
Last active August 29, 2015 14:16
design schema
######## RAW DATA ###########
{
activityId: 1,
userId: 1,
activity: {
gameTypeId: 1,
sport: 1,
category: 1,
{
createdAt: 1425994026,
gameType: 1,
sport: 1,
count: {
gameType: {
total: 25,
unique: 12
},
sport: {
@atayahmet
atayahmet / product_relations.md
Last active July 17, 2016 18:48
ecommerce relations

Ürün İlişkilendirme

Yeni bir ürün eklendiğinde bu ürün için gerekli olabilecek ilgili ürünleri kullanıcıya önerme işlemi için aşağıdaki gibi bir yol izlenebilir.

  1. Ürün eklenir.
  2. Gerekli ürünler listesi oluşturulur ve sonrasında ürünler bu listeye eklenir.
  3. Oluşturulan yada var olan ilişkili ürün listesi ana ürüne tanımlanır.

Tablo/Model İlişkileri

Product To Product Relations

Products table:

id name
1 Kırmızı Etek
2 Mavi Etek
3 Siyah Gömlek

Category Relations

category table:

id name
1 Giyim
2 Aksesuar
3 Kozmetik

Tags Relation

## Get the product tags

Tag relation in product model:

<?php
@atayahmet
atayahmet / DI.m3u
Created November 16, 2016 08:17 — forked from sim642/DI.m3u
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi
@atayahmet
atayahmet / rxjs_operators_by_example.md
Created September 12, 2017 10:25 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@atayahmet
atayahmet / Queue.md
Last active April 6, 2018 12:03
Queue Service Docs

Queue Service

Queue servis class that we can use in offline projects.

import:

import { queueInstance } from "./app/extensions/Queue";