Skip to content

Instantly share code, notes, and snippets.

View Kcko's full-sized avatar
🦜
fly like a bird ...

Roman Janko Kcko

🦜
fly like a bird ...
View GitHub Profile
https://codepen.io/t-kanjariya/pen/myrPvXW
@Kcko
Kcko / index.css
Last active March 28, 2026 08:12
/* 1 */
html {
scroll-behavior: smooth;
/* Set this to the height of your header */
scroll-padding-top: 80px;
}
/* 2 */
.anchor-section::before {
<!--
https://medium.com/@TusharKanjariya/four-lines-in-head-changed-my-site-speed-449bfeb396a2
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My App</title>
<?php
$tableStructure = $this->connection->getStructure()->getTableStructure($table);
$tableStructure['domain_id']->setDomainFilter($bcId === self::ALL_BC ? false : ($bcId ?? $this->getCurrentBrandCloudId()));
$selection = $this->connection->table($table, $tableStructure);
/* Grid Table */
.gridTable {
display: grid;
border-collapse: collapse;
width: 100%;
grid-template-columns: repeat(3, auto);
border: #36304a solid 1px;
background: #fff;
border-radius: 10px;
overflow: hidden;
@Kcko
Kcko / how.js
Last active February 28, 2026 08:11
// 1 install
npm install class-variance-authority clsx tailwind-merge
// 2 /lib/utils.ts
/*
clsx handles conditional logic and class composition
tailwind-merge removes conflicting Tailwind classes
*/
import { clsx } from "clsx"
@Kcko
Kcko / zustand.js
Last active February 28, 2026 08:08
// 1 install
npm install zustand
// 2 create
// store.js
import { create } from 'zustand';
const useStore = create((set) => ({
count: 0, // Initial state
increase: () => set((state) => ({ count: state.count + 1 })),
@Kcko
Kcko / index.php
Last active February 27, 2026 14:47
<?php
declare(strict_types=1);
/**
* ============================================================
* VARIANTA 1
* Jednoduchá request-level cache pomocí static proměnných
* ============================================================
*/
@Kcko
Kcko / App.j
Created February 25, 2026 13:00
_
We couldn’t find that file to show.