Skip to content

Instantly share code, notes, and snippets.

View swarog's full-sized avatar

Aleksandr Fomin swarog

View GitHub Profile
package ru.exceedscm.crawler.monitoring;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.publisher.UnicastProcessor;
import ru.exceedscm.crawler.task.TaskJobFactory;
import ru.exceedscm.crawler.task.dto.TaskDescription;
@swarog
swarog / appcachefix.js
Created January 23, 2016 08:47
Fix for appcache issue with playing audio in offline mode in the Chrom on Android.
/**
* AppCache audio tag caching fix main code
*/
(function () {
//document.addEventListener("DOMContentLoaded", function () {
hashCode = function (str) {
var hash = 0;
if (str.length == 0) return hash;
for (var i = 0; i < str.length; i++) {
char = str.charCodeAt(i);