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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
* .-'---`-. | |
*,' `. | |
*| \ | |
*| \ | |
*\ _ \ | |
*,\ _ ,'-,/-)\ | |
*( * \ \,' ,' ,'-) | |
* `._,) -',-') | |
* \/ ''/ | |
* ) / / |
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
use Doctrine\Common\Annotations\Annotation; | |
use Doctrine\Common\Annotations\Annotation\Target; | |
/** | |
* Class Action | |
* @package App\Core | |
* @Annotation() | |
* @Target("METHOD") | |
*/ | |
class CheckAction |
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
AnnotationRegistry::registerLoader('class_exists'); |
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 | |
/* | |
in app.php add | |
$app->routeMiddleware([ | |
'action' =>\App\Http\Middleware\ActionMiddleware::class, | |
]); | |
AnnotationRegistry::registerLoader('class_exists'); | |
in route add something like | |
$app->group([ |
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
Function GetCellWidth(ra As range) As Double | |
Dim vColWidth As Double | |
Dim cell As range | |
vColWidth = ra.ColumnWidth | |
If ra.MergeCells Then | |
vColWidth = 0 | |
For Each cell In ra.MergeArea.Cells | |
vColWidth = vColWidth + cell.ColumnWidth | |
Next | |
End If |
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
Function GetCellPage(ra As range) As Long | |
Dim ws As Worksheet | |
GetCellPage = 0 | |
Set ws = ra.Parent | |
Dim iRow As Long | |
If ws.HPageBreaks.Count > 0 Then | |
iRow = ra.Row | |
Do | |
GetCellPage = GetCellPage + 1 |
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
CLASS zcl_call_fbl1n DEFINITION | |
PUBLIC | |
ABSTRACT | |
FINAL | |
CREATE PUBLIC . | |
PUBLIC SECTION. | |
TYPES: | |
tt_bukrs TYPE STANDARD TABLE OF bukrs WITH DEFAULT KEY . |
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
class-methods SY2RETURN | |
exporting | |
!ES_RETURN type BAPIRET2 | |
changing | |
!CT_RETURN type BAPIRET2_T optional . | |
METHOD sy2return. | |
CALL FUNCTION 'BALW_BAPIRETURN_GET2' | |
EXPORTING | |
type = sy-msgty |
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
*DEFINITION | |
private section. | |
types: | |
begin of ts_dest, | |
bskey type SLD_BSKEY, | |
logsys type TBLSYSDEST-logsys, | |
dest type TBLSYSDEST-rfcdest, | |
end of ts_dest, | |
tt_dest type HASHED TABLE OF ts_dest with UNIQUE key bskey. |
OlderNewer