Skip to content

Instantly share code, notes, and snippets.

Avatar

Oliver Georgi slackero

  • webverbund.de + ООО Систрон
  • Moscow + Dessau
  • Twitter @slackero
View GitHub Profile
View resumable-download.php
<?php
class ResumeDownload {
private $file;
private $name;
private $boundary;
private $delay = 0;
private $size = 0;
function __construct($file, $delay = 0) {
if (! is_file($file)) {
@slackero
slackero / jquery.touchclick.js
Created Dec 22, 2015 — forked from comm1x/jquery.touchclick.js
jQuery event touchclick
View jquery.touchclick.js
$.event.special.touchclick = {
setup : function(data) {
var elt = $(this);
elt.data($.extend({
sens : 25 // Available touch offset in pixels
}, data));
elt.bind("touchstart", $.event.special.touchclick.onTouchstart);
elt.bind("touchend", $.event.special.touchclick.onTouchend);
View db_utf8_fix.php
<?php
/******************************************/
// db_utf8_fix.php //
// Original author: J. van Hemert //
// Original Date: 26-10-2011 //
// //
// Fixes encoding when utf-8-encoded data //
// is stored in tables with other (e.g. //
// latin_swedish_ci) encoding. //
// Will convert all columns in all tables //