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 ZCL_TVARVC definition | |
public | |
abstract | |
final | |
create public . | |
public section. | |
class-methods CHECK_VALUE | |
importing |
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 logClass(target: any) { | |
// save a reference to the original constructor | |
var original = target; | |
// a utility function to generate instances of a class | |
function construct(constructor, args) { | |
var c : any = function () { | |
return constructor.apply(this, args); | |
} |
OlderNewer