Skip to content

Instantly share code, notes, and snippets.

View nepsdotin's full-sized avatar

Napoleon Arouldas nepsdotin

View GitHub Profile
@nepsdotin
nepsdotin / make_flat_array.php
Last active October 27, 2016 04:22
Make Flat Array
<?php
// Input Array
$a = [[1,2,[3]],4];
/**
* [make_flat_array Makes the given input array into a flat single dimension array]
* @param array $array_in [input array]
* @param array $array_out [output array]
* @return array
*
@nepsdotin
nepsdotin / Git push deployment in 7 easy steps.md
Created February 13, 2016 18:02 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
<?php
//database class
class database
{
protected $host;
protected $user;
protected $password;
protected $dbname;
protected $conxn;
public $result;