Skip to content

Instantly share code, notes, and snippets.

View emir's full-sized avatar

Emir Karşıyakalı emir

View GitHub Profile
@bruceoutdoors
bruceoutdoors / DbmigrateController.php
Last active June 2, 2019 12:30
Laravel 4 Convert existing MySQL database to migrations. This is a fork of Christopher Pitt's work http://laravelsnippets.com/snippets/convert-an-existing-mysql-database-to-migrations, which is based off michaeljcalkins's work at http://paste.laravel.com/1jdw#sthash.0nEgQzQR.dpuf. His original source code doesn't really work out of the box in my…
<?php
/* * **
*
* This script converts an existing MySQL database to migrations in Laravel 4.
*
* 1. Place this file inside app/controllers/
*
* 2. In this file, edit the index() method to customize this script to your needs.
* - inside $migrate->ignore(), you pass in an array of table
@lisachenko
lisachenko / Example.php
Last active December 21, 2015 18:09
Autowiring preview
<?php
use Warlock\Annotation\Autowired;
class Example
{
/**
* @Autowired("logger", required=true)
* @var LoggerInterface
@anchetaWern
anchetaWern / php_unit_testing.markdown
Created December 6, 2012 11:06
Getting Started with Unit Testing in PHP

I finally got the time to play around with unit testing in PHP. I've heard about the term months ago but I really never had the time to play around with it because I considered it as not absolutely necessary for my development workflow. I mean I can still produce useable programs without writing a test for it right?

But admit it, testing the program that you have written is not really that exciting as writing the program itself. Sometimes we even get lazy and not test the program at all only to find things breaking on production. (Note: I'm referring to in-browser testing here)

@cihann
cihann / sublime2-python-django.md
Created November 3, 2012 02:34 — forked from vigo/sublime2-python-django.md
Sublime Text 2, Python + Django ve Virtualenv ile otomatik tamamlama + PEP kontrolü

Sublime Text 2, Python + Django ve Virtualenv ile otomatik tamamlama + PEP kontrolü

Gerekenler

  1. [Sublime Text 2][1]
  2. [Sublime Paket Yöneticisi][2]

Kurulum

Zaten python, virtualenv vs gibi şeylerin kurulu olduğunu varsayıyorum.

@mikedfunk
mikedfunk / README.md
Created August 28, 2012 21:17
CodeIgniter Pagination for Twitter Bootstrap

This uses Twitter Bootstrap classes for CodeIgniter pagination.

Drop this file into application/config.