Skip to content

Instantly share code, notes, and snippets.

Avatar

Anonymous muratsplat

  • USA
View GitHub Profile
@muratsplat
muratsplat / bach_prompt.sh
Last active Jul 20, 2016
Bash Git Prompt Patch for Git 2.9.2
View bach_prompt.sh
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
# Shamelessly copied from https://github.com/gf3/dotfiles
# Screenshot: http://i.imgur.com/s0Blh.png
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
@muratsplat
muratsplat / post.go
Created Feb 25, 2016
Simple Web Server written in Golang
View post.go
package main
import (
"fmt"
"log"
"net/http"
"strings"
"time"
)
@muratsplat
muratsplat / app.yml
Last active Oct 14, 2015
Example of app.yml for Laravel5.x + Elixir on Google App Engine
View app.yml
application: yourApp
version: one
runtime: php55
api_version: 1
handlers:
- url: /favicon\.ico
static_files: public/favicon.ico
upload: public/favicon\.ico
@muratsplat
muratsplat / babelAngularExtention.js
Last active Aug 30, 2015
Full support Angular + Babel + Modules + Uglify + Avoid issues of the Dependency Injection by helping ng-Annotate
View babelAngularExtention.js
//babelAngularExtention.js
var gulp = require('gulp');
var Elixir = require('laravel-elixir');
/**
* These for Angular + Babel + Uglify + Avoid issues of the Dependency Injection
*/
var sourcemaps = require('gulp-sourcemaps');
var babel = require('gulp-babel');;
@muratsplat
muratsplat / FileRepository.php
Created Jul 13, 2015
FileBindingOnModel Repository Class For Laravel
View FileRepository.php
<?php namespace Muratsplat\Repository;
use Muratsplat\Repository\IFileRepository;
use Illuminate\Database\DatabaseManager;
use Illuminate\Support\Collection;
use Illuminate\Cache\Repository as Cache;
use Illuminate\Config\Repository as Config;
use Illuminate\Events\Dispatcher;
use RuntimeException;
@muratsplat
muratsplat / SearchController.php
Created Jul 8, 2015
SearchController on Laravel Apps
View SearchController.php
<?php
namespace Muratsplat\mvc\controller\front;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Collection;
use Muratsplat\Multilang\Interfaces\LangInterface;
use Muratsplat\Multilang\Interfaces\MainInterface;
use Muratsplat\mvc\model\Page\Page;
use Muratsplat\mvc\model\Page\PageLang;
@muratsplat
muratsplat / front.blade.php
Created Jun 13, 2015
An Example Layout of Blade Template for Laravel
View front.blade.php
<!doctype html>
<html lang="{{Session::get('lang')}}" class="no-js">
{{-- HEAD --}}
@include('Muratsplat\mvc\view\front::_head')
{{-- END OF HEAD --}}
<body class="@yield('cssOnBody')">
<!-- background wrapper -->
<div id="container">
{{-- HEADER TOP MENU --}}
@include('Muratsplat\mvc\view\front::_header_top_menu')
@muratsplat
muratsplat / httpPrefix.js
Last active Aug 29, 2015
HttpPrefix Directive with test For Angular, This directive make force user to entry 'http://' on input element
View httpPrefix.js
'use strict';
/**
* @ngdoc directive
* @name boruu.directive:httpPrefix
* @description
* # httpPrefix
*/
angular.module('yourApp')
.directive('httpPrefix', function () {
@muratsplat
muratsplat / Example Repository Abstract Clas.php
Last active Aug 29, 2015
A abstract class for repository
View Example Repository Abstract Clas.php
<?php namespace Boruu\Root\Mvc\Repository;
/**
* Core Repository for Eloquent
*
* @author Murat Ödünç <murat.asya@gmail.com>
* @copyright (c) 2015, Murat Ödünç
* @license http://www.gnu.org/licenses/gpl-3.0.html GPLv3
* @package Repository
You can’t perform that action at this time.