Skip to content

Instantly share code, notes, and snippets.

Avatar

Mikhail Davydov azproduction

View GitHub Profile
@azproduction
azproduction / LICENSE.txt
Created November 28, 2011 14:03 — forked from 140bytes/LICENSE.txt
A turing machine in 79! bytes of javascript
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@azproduction
azproduction / dump-indexed-db.js
Created July 8, 2021 11:22
Dumps all IndexedDB databases and saves all of them into a json file
View dump-indexed-db.js
;(async () => {
async function dumpDatabase(dbName) {
var dbExists = await new Promise(resolve => {
var request = window.indexedDB.open(dbName)
request.onupgradeneeded = e => {
e.target.transaction.abort()
resolve(false)
}
request.onerror = () => resolve(true)
request.onsuccess = () => resolve(true)
@azproduction
azproduction / LICENSE.txt
Created October 31, 2011 12:44 — forked from 140bytes/LICENSE.txt
DoF and frame params calculator
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 azproduction http://azproduction.ru/
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@azproduction
azproduction / accept_parser.js
Created December 13, 2012 09:03
Accept-Language, Accept, Accept-Encoding header parser in JavaScript http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
View accept_parser.js
/**
* Accept-* header parser in JavaScript - rfc2616 sec 14.4
*
* @param {String} string Accept-*
*
* @return {Array} ordered by weight list of accepted values
*
* @example
* acceptLanguageParser('nl;q=0.6, en;q=0.8,el;q=0.4, en-US , de;q=0.2');
* // ["en-US", "en", "nl", "el", "de"]
@azproduction
azproduction / scrollIntoView.js
Created December 23, 2014 09:38
scrollIntoView.js
View scrollIntoView.js
/*!
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
*/
/**
* Better Element.scrollIntoView() implementation
*
* @see https://github.com/jquery/jquery-ui/blob/master/ui/menu.js#L409-L425
*
@azproduction
azproduction / index.md
Last active February 27, 2019 07:04
Спецификация 1CSS (статус: черновик спецификации)
@azproduction
azproduction / LICENSE.txt
Created May 24, 2011 19:16 — forked from 140bytes/LICENSE.txt
Desktop browser detection script
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 azproduction
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@azproduction
azproduction / README.md
Created September 24, 2012 16:42
Распределенные вычисления на JavaScript - протокол
View README.md

Базовые понятия

Кластер распределенных вычислений

Один или несколько серверов объединенных одной целью

Цель: Цель кластера распределенных вычислений

Глобальная задача на которую кластер выделяет свои ресурсы

@azproduction
azproduction / LICENSE.txt
Created January 17, 2012 08:21 — forked from 140bytes/LICENSE.txt
Tiny ajax
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mikhail Davydov <azazel.private@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@azproduction
azproduction / LICENSE.txt
Created December 13, 2011 13:56 — forked from 140bytes/LICENSE.txt
Lazy (and synchronous) Module Declaration in 126 bytes
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mikhail Davydov
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE