Skip to content

Instantly share code, notes, and snippets.

View ZeroDragon's full-sized avatar
🌮
Tacos de canasta

Zero Dragon ZeroDragon

🌮
Tacos de canasta
View GitHub Profile
@ZeroDragon
ZeroDragon / what.js
Created October 16, 2020 19:30
Pega esto en tu consola :P
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(!
@ZeroDragon
ZeroDragon / diff.js
Created October 14, 2020 00:03
Rclone Diff generator
const fs = require('fs')
const { spawn } = require('child_process')
const [,,from, to] = process.argv
const UUID = () => {
var dt = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (dt + Math.random()*16)%16 | 0;
dt = Math.floor(dt/16);
:root {
--gray1: #0a0b10;
--section-bg: #1a1b26;
--app-bg: #14171f;
--transition: rgba(20, 23, 31, 0.7);
}
/* Chat top left logo text color */
.nHjhsd {
opacity: 0.8;
}
@ZeroDragon
ZeroDragon / asignador.js
Last active June 3, 2020 21:55
Asignador de items a users
const fs = require('fs')
const file = fs.readFileSync(__dirname + '/data.txt', { encoding: 'utf8' })
const clients = file
.split('\n')
.filter(line => line !== '')
.map(qty => qty.replace('$', '').replace(',', ''))
.map(qty => parseFloat(qty))
const workers = [
{ name: 'a plus' },
class Database {
constructor(table) {
this.table = table
const request = indexedDB.open('mydatabase', 1)
request.onerror = event => {
console.error(event)
}
request.onupgradeneeded = event => {
const db = event.target.result
this._db = db.createObjectStore(this.table)
@ZeroDragon
ZeroDragon / stylesheet.css
Created April 24, 2020 18:48
Tokyo Night Style for Google Chat
/*
Use this stylesheet with https://userstyles.org/ extension in chrome
Created By ZeroDragon
Original Ventura Dark created by https://userstyles.org/styles/181809/ventura-dark-google-chat
*/
:root {
--gray1: #0a0b10;
--section-bg: #1a1b26;
--app-bg: #14171f;
@ZeroDragon
ZeroDragon / EventEmitter.js
Last active February 20, 2020 23:02
Browser side eventEmitter
class EventEmitter {
constructor () {
this.DOM = document.createElement("p")
}
on(channel, fn) {
this.DOM.addEventListener(channel, event => {
fn(event.detail)
})
}
dispatch(channel, data) {
@ZeroDragon
ZeroDragon / lazyloadnvm.sh
Created February 9, 2020 03:40
Lazy Loading NVM
# Justa change the default NVM loading scripts from your .bashrc or .zshrc or .whateverbashrc
# to this lazy loaders. Adjust your most used commands
if [ -s "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm"
. "$NVM_DIR/bash_completion"
declare -a __node_commands=('nvm' 'node' 'npm' 'yarn' 'gulp' 'grunt' 'webpack')
function __init_nvm() {
for i in "${__node_commands[@]}"; do unalias $i; done
. "$NVM_DIR/nvm.sh"

Keybase proof

I hereby claim:

  • I am zerodragon on github.
  • I am zerodragon (https://keybase.io/zerodragon) on keybase.
  • I have a public key ASBGo9HaYLL0cd-rCKJLUFN9YjjwDR9dgPGSBoR0qmuitQo

To claim this, I am signing this object: