View .bash_aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Directory Aliases | |
alias code="cd $HOME/Code" | |
# Laravel Aliases | |
alias art="php artisan" | |
alias migrate="php artisan migrate" | |
alias rollback="php artisan migrate:rollback --step=1" | |
alias seed="php artisan db:seed" | |
# NPM Aliases |
View mailing_list.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH | |
email_list (concatenated_emails) | |
AS | |
( | |
SELECT | |
ADDEML_0 + ';' | |
FROM | |
AUTILIS | |
WHERE | |
ENAFLG_0 = 2 |
View suppliers_with_first_orders.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------- | |
/** | |
* | |
* All suppliers that have had an order | |
* raised for them. | |
* | |
*/ | |
---------------------------------------- | |
WITH order_list AS ( | |
SELECT |
View orders_raised_by_cpy.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------- | |
/** | |
* | |
* Returns number of purchase orders | |
* raised this period per company. | |
* | |
*/ | |
---------------------------------------- | |
WITH | |
orders_by_company (company, order_count) |
View ZGENT.src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
## | |
## Uploads a file to a given folder and renames. | |
## | |
######################################################### | |
Funprog UPLOAD_FILE_AND_RENAME(TEMPDIR, FILDIR, FILNAM, NEWNAM) | |
Variable Char TEMPDIR, FILDIR, FILNAM, NEWNAM | |
Local Integer COPYSTA | |
Local Integer MOVESTA |
View VAT.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------- | |
/** | |
* | |
* Returns Malta VAT Information. | |
* | |
*/ | |
---------------------------------------- | |
SELECT | |
poh.POHNUM_0 AS order_number, |
View Orders.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------- | |
/** | |
* | |
* Returns unsigned POs over x days old | |
* | |
* ORDDAT (Order date) <= 'xxx' | |
* APPFLG (Signed) < 3 (No/Partly) | |
* CLEFLG (Closed) <> 2 (No) | |
* FLGSIG (Signature) = 3 (To be signed) | |
* |
View phpunit.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="false" | |
bootstrap="vendor/autoload.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailure="false"> |
View AddUserIdToRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class MergeUserIdIntoRequest | |
{ |
View PagesController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class PagesController extends Controller | |
{ | |
/** | |
* Return the requested view. |
NewerOlder