Skip to content

Instantly share code, notes, and snippets.

🐦
fly like a bird ...

Kcko

🐦
fly like a bird ...
Block or report user

Report or block Kcko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View remove-dia.js
(function ($) {
$.awDiacritics = function (str) {
var defaultDiacriticsRemovalap = [
{'base':'A', 'letters':'\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F'},
{'base':'AA','letters':'\uA732'},
{'base':'AE','letters':'\u00C6\u01FC\u01E2'},
{'base':'AO','letters':'\uA734'},
View aw-filters.js
/*!
* AW Eshop Filters
*
*
* @author Roman Janko <janko@andweb.cz>
* @since 30.01.2019 09:59:25
* @version 1.0.0
*
*/
View custom-select.js
// plugin example
(function($){
// custom select class
function CustomSelect(item, options) {
this.options = $.extend({
foo: 'bar'
}, options);
this.item = $(item);
this.init();
}
View rating.js
/*
* jQuery StarRatingSvg v1.2.0
*
* http://github.com/nashio/star-rating-svg
* Author: Ignacio Chavez
* hello@ignaciochavez.com
* Licensed under MIT
*/
;(function ( $, window, document, undefined ) {
View overlay.js
(function(window, $, undefined) {
if (typeof $ !== 'function') {
return console.error('AW Overlay: jQuery is missing, load it please');
}
var AWOverlay = function () {
var inner = {
self: this,
View toggle.js
// @link: https://forum.nette.org/cs/32804-vyvolani-toggle-pri-zavreni-bootstrap-datepicker
$(':text[data-provide="datepicker"]').datepicker({
language: 'cs'
})
.on('hide', function(e) {
// `e` here contains the extra attributes
var defaultValue = e.currentTarget.defaultValue;
var value = e.currentTarget.value;
View remove.php
<?php
function removeAccents($str)
{
static $map = [
// single letters
'à' => 'a',
'á' => 'a',
'â' => 'a',
'ã' => 'a',
View rescue-modal.js
var rescueModal = (function(){
$(document).ready(function() {
var modalShow = sessionStorage.getItem('rescue-modal') || 0;
console.log(document.location);
@Kcko
Kcko / iteration-and-recursive-iteration.php
Created Dec 3, 2019 — forked from hakre/iteration-and-recursive-iteration.php
Iteration and Recursive Iteration Examples Code
View iteration-and-recursive-iteration.php
<?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":
View sleep.php
<?php
if (ob_get_level() == 0) ob_start();
for ($i = 0; $i<10; $i++){
echo "<br> $i Line to show.";
echo str_pad('',4096)."\n";
ob_flush();
You can’t perform that action at this time.