Skip to content

Instantly share code, notes, and snippets.

View gmann1982's full-sized avatar

George Rome gmann1982

  • Stoke On Trent, England
View GitHub Profile
<?php
/**
*
*/
ini_set("memory_limit", "256M");
class Reports
{
public $conn_count = 0;
public $un_conn_count = 0;
<?php
/**
*
*/
class Dealer
{
public function buildSqlQuery($sql, $distinct_field=false, $where_field=array(), $order_field=array(), $limit=false) {
<?php
/**
*
*/
class Dealer
{
public function buildSqlQuery($sql, $distinct_field=false, $where_field=array(), $order_field=array(), $limit=false) {
@gmann1982
gmann1982 / st-setup
Created August 30, 2013 11:10
sublime text setup
{
"bold_folder_labels": true,
"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).tmTheme",
"detect_slow_plugins": false,
"font_face": "Ubuntu Mono",
"font_options": "subpixel_antialias",
"font_size": 12,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
@gmann1982
gmann1982 / provider
Last active December 21, 2015 22:29
service provider
<snippet>
<content><![CDATA[
<?php
namespace $1\Repositories;
class Elequent$2Repository implements $2RepositoryInterface
{
public function instance($data = array())
{
return new $2($data);
@gmann1982
gmann1982 / repo
Created August 29, 2013 07:54
repository
<snippet>
<content><![CDATA[
<?php
namespace $1\Repositories;
class Elequent$2Repository implements $2RepositoryInterface
{
public function instance($data = array())
{
return new $2($data);
@gmann1982
gmann1982 / interface
Created August 29, 2013 07:53
repository interface snippet
<snippet>
<content><![CDATA[
<?php
namespace $1\Repositories;
interface $2RepositoryInterface
{
public function instance();
}
]]></content>
@gmann1982
gmann1982 / database config
Created July 24, 2013 18:09
database config
<?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
@gmann1982
gmann1982 / terminal theme
Created July 24, 2013 16:54
terminal theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@gmann1982
gmann1982 / my zsh config
Created July 24, 2013 16:50
my zsh config
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
alias ukfast='ssh [email protected] -p 2020'
alias ovh1='ssh [email protected]'
alias zshconfig="vim ~/.zshrc"
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"