Skip to content

Instantly share code, notes, and snippets.

View PovilasKorop's full-sized avatar
💭
Explaining code in a human-friendly way.

PovilasKorop

💭
Explaining code in a human-friendly way.
View GitHub Profile
@PovilasKorop
PovilasKorop / login.blade.php
Last active December 3, 2025 20:23
Flux buttons for Social Login
<x-layouts.auth>
<div class="flex flex-col gap-6">
<x-auth-header :title="__('Log in to your account')" :description="__('Enter your email and password below to log in')" />
<!-- Session Status -->
<x-auth-session-status class="text-center" :status="session('status')" />
<!-- Social Login Buttons -->
<div class="flex flex-col gap-3">
<flux:button variant="outline" class="w-full justify-center" href="{{ route('socialite.redirect', 'google') }}">
@PovilasKorop
PovilasKorop / settings.local.json
Created September 22, 2025 17:02
Claude Code Hook for Checking Git Status on Session Start
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "git rev-parse --git-dir > /dev/null 2>&1 && (! git diff-index --quiet HEAD -- && echo '⚠️ You have uncommitted changes in your git repository.' && echo '' && echo 'Changes:' && git status --porcelain || echo '✅ Git repository is clean')"
}
]
@PovilasKorop
PovilasKorop / index.php
Created February 14, 2022 06:24
PHP NumberFormatter Demo
<?php
function getFormattedNumber(
$value,
$locale = 'en_US',
$style = NumberFormatter::DECIMAL,
$precision = 2,
$groupingUsed = true,
$currencyCode = 'USD',
) {