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
.386 | |
.model flat, stdcall | |
.stack 1024 | |
GetStdHandle PROTO, ; get standard handle | |
nStdHandle:DWORD ; type of console handle | |
;Returns: (HANDLE) EAX = A handle to the specified device, | |
; or INVALID_HANDLE_VALUE flag if function fails. | |
ReadConsoleA PROTO, |
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
.386 | |
.model flat, stdcall | |
.stack 1024 | |
GetTickCount PROTO ; get elapsed milliseconds | |
; since computer turned on | |
ExitProcess PROTO, ; exit program | |
dwExitCode:DWORD ; return code |
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 | |
use GuzzleHttp\Psr7\Response; | |
use Psr\Http\Message\ServerRequestInterface; | |
function get_ip(ServerRequestInterface $request) | |
{ | |
$data = ["ip" => get_client_ip()]; | |
$queryString = $request->getQueryParams(); |
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
<template> | |
<div class="widget"> | |
<div v-if="activeItems && activeItems.length > 0"> | |
<ul> | |
<li | |
v-for="item in activeItems" | |
:key="item.id" | |
> | |
{{ item.name }} | |
</li> |
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\Services; | |
use App\Mail\WelcomeNewCustomer; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Mail; | |
class CustomerService | |
{ |
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 App\Http\Requests\Customer\CustomerStoreRequest; | |
use App\Services\CustomerService; | |
class CustomerController extends Controller | |
{ | |
public function __construct(protected CustomerService $customerStoreService) |
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 Tests\Unit; | |
use App\Mail\WelcomeNewCustomer; | |
use Tests\TestCase; | |
use Illuminate\Support\Facades\Mail; | |
class CustomerStoreTest extends TestCase | |
{ |