Skip to content

Instantly share code, notes, and snippets.

View da411d's full-sized avatar
💻
Freelancer

Manzhula David da411d

💻
Freelancer
View GitHub Profile
<template>
<div
ref="wrap"
:id="id"
class="vue-slide-bar-component vue-slide-bar-horizontal"
:style="calculateHeight"
@click="wrapClick"
>
<div
ref="elem"
@da411d
da411d / custom1.css
Created December 9, 2021 11:21
Holyrics Plugin custom CSS by @da411d
:root {
--animation_out_delay: 300;
}
@keyframes nome_da_animacao_de_entrada {
from {opacity: 0.0}
to {opacity: 1.0}
}
@keyframes nome_da_animacao_de_saida {
const rand = (mi, ma) => {
return Math.floor(Math.random() * (ma - mi + 1) + mi);
};
// IN: 7
// OUT: [1, 8, -2]
const generateAdditionsArray = n => {
const additions = [];
const from = Math.min(-10000, -Math.abs(n * 2));
var yourWindow = window.open("", "hide_referrer");
yourWindow.opener = null;
yourWindow.document.open();
yourWindow.document.writeln('<!DOCTYPE html><html><head></head><body>123</body></html>');
yourWindow.document.close();
let localForage = {
getItem: function (sKey) {
if (!sKey || !this.hasOwnProperty(sKey)) {
return null;
}
return unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)" + escape(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"), "$1"));
},
key: function (nKeyId) {
return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/, "").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[nKeyId]);
},
@da411d
da411d / js-deobfuscator.js
Created August 12, 2019 17:40
Скрипт для деобфускації js-файлів, обфускованих через obfuscator.io
const fs = require('fs').promises;
const beautify = require('js-beautify').js;
const path = require('path');
const _done_prefix = "/*DAKI:DONE*/";
async function walk(dir, fileList = []) {
const files = await fs.readdir(dir)
for (const file of files) {
const stat = await fs.stat(path.join(dir, file))
[
{
"id": "BOARD-SY2BZ4BV9N1PLEW9",
"name": "THE RAJISA PROJECT",
"tasks": [
{
"id": "TASK-2YUYE7SQ3C7T3S8E",
"name": "debug omnibus for Eve",
"description": "Donec et convallis urna. Donec tristique luctus sem ut egestas. Maecenas ultrices blandit faucibus. Nullam quis mi vel ex pretium congue. Nam mollis pulvinar lorem, molestie consequat lectus ullamcorper lacinia",
"status": 2,
@da411d
da411d / ready.js
Last active March 5, 2019 19:37
Ready from jQuery
function ready(fn){
let done = false;
function act(){
if(done)return;
done = true;
fn();
}
if (
@da411d
da411d / script.js
Last active September 13, 2019 12:09
Скрипт для конвертування електронного квитка в файл Google-календаря (https://booking.uz.gov.ua/result/.../)
(() => {
HTMLDocument.prototype.qq = HTMLDocument.prototype.querySelector;
HTMLDocument.prototype.qqq = HTMLDocument.prototype.querySelectorAll;
HTMLElement.prototype.qq = HTMLElement.prototype.querySelector;
HTMLElement.prototype.qqq = HTMLElement.prototype.querySelectorAll;
function download(filename, text) {
var element = document.createElement('a');
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);
element.style.display = 'none';
function rand(mi, ma){return Math.floor(Math.random() * (ma - mi + 1) + mi);}
function randId(){return (new Date()-0).toString(36).replace(/[^a-z]+/g, "").substr(0,8) + "_" +rand(1000000, 9999999);}
function byId(id){return document.getElementById(id);}
function ajax(u, f, p){
t = (u+"").toString();
if (t.match(/\?/)) {
t += '&rand='+randId();
} else {
t += '?rand='+randId();