This file contains 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
action,add,after,animate,append,arguments,baseURI,before,code,constructor,createContextualFragment,decodeURI,dialogArguments,documentURI,data,domain,eval,file:,frames,Function,has,hash,href,import url,index,indexedDB,init,innerHTML,insertAdjacentHTML,insertAfter,insertBefore,javascript,JSON,jQuery,localStorage,location,name,onevent,onmessage,open,outerHTML,parent,parseHTML,pathname,prepend,pushState,referrer,replaceAll,replaceWith,search,self,sessionStorage,setInterval,setTimeout,showModalDialog,scape,src,tel:,top,url,urlunencoded,value,wrap,wrapAll,wrapInner,write,writeln |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head prefix="og:http://ogp.me/ns#"> | |
<meta charset="utf-8"> | |
<link rel="icon" href="data:;base64,iVBORw0KGgo="> | |
<title>Index.html</title> | |
<meta property="og:type" content="website"> | |
<meta name="theme-color" content="#ffffff"> | |
<style> | |
body { |
This file contains 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
import fs from 'fs/promises'; | |
const sumBytesHexadecimal = async (inputFile: string) => { | |
try { | |
const outputFile = `${inputFile}.5um`; | |
const data = await fs.readFile(inputFile); | |
// Asegurarse de que la longitud sea múltiplo de 4 | |
const paddedLength = Math.ceil(data.length / 4) * 4; | |
const paddedData = Buffer.alloc(paddedLength); |
This file contains 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
" Paste this code to the end of your .vimrc | |
" To expand my template write html:sm<tab> | |
" You can edit the html or create your own templates | |
" Add custom snippets: | |
function! AddHtmlSnippet(snippet) | |
let emmet_file = expand('~/.vim/plugged/emmet-vim/autoload/emmet.vim') | |
let emmet_content = readfile(emmet_file) | |
let start_pattern = "\\\\\\s*'html:5': \"<!DOCTYPE html>\\\\n\"" |
This file contains 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
import React, { useState, useEffect } from 'react'; | |
import { render, Text } from 'ink'; | |
import si from 'systeminformation'; | |
async function getCPUPercentages() { | |
try { | |
const cpuData = await si.currentLoad(); | |
const numCores = cpuData.cpus.length; | |
const corePercentages = cpuData.cpus.map((core) => { |
This file contains 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
#!/usr/bin/env bash | |
# TODO: Check if curl and jq are installed | |
# load a file into a variable | |
loadFile() { | |
local -n _result=$2; | |
_result=$(cat $1); | |
} |
This file contains 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
#!/usr/bin/env bash | |
# TODO: Check if curl and jq are installed | |
# load a file into a variable | |
loadFile() { | |
local -n _result=$2; | |
_result=$(cat $1); | |
} |
This file contains 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
#!/usr/bin/env bash | |
# TODO: Check if curl and jq are installed | |
# load a file into a variable | |
loadFile() { | |
local -n _result=$2; | |
_result=$(cat $1); | |
} |