Skip to content

Instantly share code, notes, and snippets.

View melihbuyuk's full-sized avatar

Melih Buyukbayram melihbuyuk

View GitHub Profile
$schools = DB::table('schools')
->select(DB::raw('
schools.name,
i.id as institute_school_id,
i.id as institute_id,
st.name as school_type,
l1.name as location_1_name,
l2.name as location_2_name
'))
->join('institutes as i', 'i.id', '=', 'schools.institute_id')
@melihbuyuk
melihbuyuk / gist:00262f4b9830f754b54c559057a26dc0
Last active December 19, 2016 10:45
Ubuntu Phalcon PHP 7 Installation
#!/bin/bash
# PhalconPhp with PHP7 installation on ubuntu:16.04
sudo apt-get update
sudo apt-get install -y php7.0-fpm \
php7.0-cli \
php7.0-curl \
php7.0-gd \
{
"status": true,
"authentication": true,
"collection": [{
"wall_type": "blog",
"blog": [{
"_id": null,
"title": "Sıra Dışı Görüntüleriyle Herkesi Büyüleyen 20 Değişik Hayvan",
"slug": "sira-disi-goruntuleriyle-herkesi-buyuleyen-20-degisik-hayvan",
"description": "Birbirinden ilginç hayvanlar",

EFENDY IOS SWIFT MVVM Project

Project Structure

Name Description
Define/ The most time static values will be put here, such as third party keys, colors, fonts...
Define/App.swift App or third party keys/credientials will be defined here

EFENDY IOS SWIFT MVVM Project

Project Structure

Name Description
Define/ The most time static values will be put here, such as third party keys, colors, fonts...
Define/App.swift App or third party keys/credientials will be defined here

EFENDY IOS SWIFT MVVM Project

Project Structure

Name Description
Define/ The most time static values will be put here, such as third party keys, colors, fonts...
Define/App.swift App or third party keys/credientials will be defined here
Define/String.swift Localizable strings will be defined here
@melihbuyuk
melihbuyuk / swift
Created January 7, 2019 05:52
Swift Comment Style
/**
Pop up a prompt panel.
- parameters:
- key: A localization key. "alert.`key`.title" will be used as alert title, and "alert.`key`.message" will be the informative text.
- titleComment: (Optional) Comment for title key.
- messageComment: (Optional) Comment for message key.
- sheetWindow: (Optional) The window on which to display the sheet.
- callback: (Optional) Completion handler.
- Returns: Whether user dismissed the panel by clicking OK. Only works when using `.modal` mode.
*/