Skip to content

Instantly share code, notes, and snippets.

View mikield's full-sized avatar
🌒
Showing her my love 🖤

Vladyslav G. mikield

🌒
Showing her my love 🖤
View GitHub Profile
@mikield
mikield / BoardcastServiceProvider.js
Last active September 27, 2017 07:50
AdonisJS Laravel Echo Broadcaster
'use strict'
/*
* Application-Broadcaster
*
* (c) Vladyslav Gaysyuk <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@mikield
mikield / NotificationServiceProvider.js
Created September 26, 2017 17:06
Notify a user to Private channel with Laravel Echo Server + Broadcaster
'use strict'
/*
* Applicaiton-Nofifier
*
* (c) Vladyslav Gaysyuk <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

Keybase proof

I hereby claim:

  • I am mikield on github.
  • I am mikield (https://keybase.io/mikield) on keybase.
  • I have a public key ASADcczCmvypWoe86W9-8MJ5iku-umgYYtSwwPCv7YFN-go

To claim this, I am signing this object:

УКРАЇНА ПОНАД Мюслі UA
Unholy (feat. Kim Petras) Sam Smith & Kim P
Step Back! 1nonly & Sxmpra
Ти любиш соба Oisho btz
Breathe (feat. Sean Pau Blu Cantrell & Se
The Middle Seth Hills
Your Love (9PM) ATB & Topic & A7S
Baby Boy (feat. Beyoncé Sean Paul & Beyon
Shake That - Radio Edit Eminem & Nate Dogg
Мене не пре Oisho btz
1 Games played | 0 Games won | 👑 53 WPM | ø 53 WPM
―― Recent races (Average ø 53 WPM)
███████████████████████████████████ 53 WPM
@mikield
mikield / Web3PubKeyAuthProvider
Created September 2, 2022 14:33
A Laravel Auth Provider to create a Web3 Public key auth system.
<?php
namespace App\Providers\Web3PubKey;
use App\Models\User;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\UserProvider;
use SodiumException;
use Tighten\SolanaPhpSdk\Exceptions\InputValidationException;
use Tighten\SolanaPhpSdk\Util\Buffer;
@mikield
mikield / DiscordHelper.php
Created December 10, 2024 19:19
Laracord Pagination example
/**
* @throws Exception
*/
public static function paginate(callable $transformer, BuilderContract $builder, ?int $page = 1, ?int $perPage = 15): Message
{
$paginator = $builder->paginate(perPage: $perPage, page: $page);
$message = self::buildMessage(self::transform(collect($paginator->items()), $transformer));
$message->button('⏮️', self::buildPrevButton($perPage, $page, $builder, $transformer), disabled: $paginator->previousPageUrl() === null);
@mikield
mikield / RoutedDiscordCommandClient.php
Last active December 25, 2024 19:14
Extend DiscordCommandClient with Pipelines
<?php
namespace App\Extentions;
use Discord\CommandClient\Command;
use Discord\Discord;
use Discord\DiscordCommandClient;
use Discord\Helpers\Collection;
use Discord\Helpers\RegisteredCommand;
use Discord\Parts\Embed\Embed;