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
DROP PROCEDURE IF EXISTS moja_test_procedura;
DELIMITER //
CREATE PROCEDURE moja_test_procedura()
BEGIN
-- 1. Deklarace handleru MUSÍ být na začátku bloku BEGIN
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
ROLLBACK;
@Kcko
Kcko / app.css
Last active August 5, 2026 07:53
/* https://dyinglightgame.com/news/patch-notes */
.news-index__filter--active:before {
content: "";
position: absolute;
inset: 0;
-webkit-mask: url(/img/masks/mega.svg#button-border) no-repeat 0 0 / 151% 100%;
mask: url(/img/masks/mega.svg#button-border) no-repeat 0 0 / 151% 100%;
background: #d26370;
z-index: -1;
https://sky-blue2022.github.io/javascript-coding-with-ai/07-10-touch-events/example-1.html
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 })),