Skip to content

Instantly share code, notes, and snippets.

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

Kcko

🦜
fly like a bird ...
View GitHub Profile
@Kcko
Kcko / kraje a mesta CR.csv
Created April 6, 2024 18:45 — forked from MichalKalita/kraje a mesta CR.csv
Kraje a města České Republiky, neobsahuje obce
id parent_id name
1 Hlavní město Praha
2 Jihočeský
3 Jihomoravský
4 Karlovarský
5 Královéhradecký
6 Liberecký
7 Moravskoslezský
8 Olomoucký
9 Pardubický
@Kcko
Kcko / HeidiDecode.js
Created March 18, 2024 15:31 — forked from jpatters/HeidiDecode.js
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));
------Creating Stored Procedures in MySQL------
--Make sure you have version 5 of MySQL:
SELECT VERSION();
+-----------+
| VERSION() |
@Kcko
Kcko / tailwind.config.js
Last active September 9, 2022 12:34 — forked from hacknug/tailwind.config.js
TailwindCSS default config
/*
Tailwind - The Utility-First CSS Framework
A project by Adam Wathan (@adamwathan), Jonathan Reinink (@reinink),
David Hemphill (@davidhemphill) and Steve Schoger (@steveschoger).
Welcome to the Tailwind config file. This is where you can customize
Tailwind specifically for your project. Don't be intimidated by the
length of this file. It's really just a big JavaScript object and
@Kcko
Kcko / splice-object-array.js
Last active August 8, 2022 14:01 — forked from scottopolis/splice-object-array.js
Remove object from array of objects in Javascript
// source: http://stackoverflow.com/questions/16491758/remove-objects-from-array-by-object-property
// we have an array of objects, we want to remove one object using only the id property
var apps = [{id:34,name:'My App',another:'thing'},{id:37,name:'My New App',another:'things'}];
// get index of object with id:37
var removeIndex = apps.map(function(item) { return item.id; }).indexOf(37);
// remove object
apps.splice(removeIndex, 1);
@Kcko
Kcko / jquery.plugin_pattern.js
Created February 28, 2020 22:46 — forked from mateuszwrobel/jquery.plugin_pattern.js
jQuery: plugin pattern
/*
* Project:
* Description:
* Author:
* License:
*/
// the semi-colon before function invocation is a safety net against concatenated
// scripts and/or other plugins which may not be closed properly.
;(function ( $, window, document, undefined ) {
@Kcko
Kcko / singleton.js
Last active February 28, 2020 22:47 — forked from mateuszwrobel/singleton.js
JS: patterns Singleton
var mySingleton = (function () {
// Instance stores a reference to the Singleton
var instance;
function init() {
// Singleton
// Private methods and variables
@Kcko
Kcko / meta-tags.md
Created February 24, 2020 12:34 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@Kcko
Kcko / FooForm.latte
Created February 11, 2020 19:19 — forked from zraly/FooForm.latte
Formulář jako komponenta s vlastní šablonou / Form as a component with its own template
{form myForm}
<div class="form-group">
{label book class => 'control-label'/}
{input book class => form-control}
</div>
<div class="form-group">
{input send class => 'btn btn-primary'}
</div>
{/form}
@Kcko
Kcko / iteration-and-recursive-iteration.php
Last active January 31, 2020 11:21 — forked from hakre/iteration-and-recursive-iteration.php
Iteration and Recursive Iteration Examples Code
<?php
/*
* Iteration and Recursive Iteration Examples Code
*
* @link http://stackoverflow.com/questions/12077177/how-does-recursiveiteratoriterator-works-in-php
* @author hakre <http://hakre.wordpress.com>
*/
### To have these examples to work, a directory with subdirectories is needed,
### I named mine "tree":