This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div | |
ref="wrap" | |
:id="id" | |
class="vue-slide-bar-component vue-slide-bar-horizontal" | |
:style="calculateHeight" | |
@click="wrapClick" | |
> | |
<div | |
ref="elem" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ready(fn){ | |
let done = false; | |
function act(){ | |
if(done)return; | |
done = true; | |
fn(); | |
} | |
if ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
NewerOlder