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
.replace(new RegExp(','.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"), 'g'), '.') |
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
[...new Set($$("[class]").flatMap(e => [...e.classList]))] |
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
[...new Set($$("*").map(e => e.nodeName.toLowerCase()))] |
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
.normalize('NFD').replace(/[\u0300-\u036f]/g, ""); |
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
SELECT 'private '||( | |
CASE | |
WHEN data_type = 'integer' or data_type = 'bigint' THEN 'int' | |
WHEN data_type = 'timestamp with time zone' or data_type = 'timestamp without time zone' or data_type = 'time without time zone' | |
or data_type = 'character varying' or data_type = 'character' or data_type = 'char' or data_type = 'date' or data_type = 'text' THEN 'String' | |
WHEN data_type = 'double precision' or data_type = 'numeric' THEN 'double' | |
ELSE data_type END)||' '||column_name||';' | |
FROM information_schema.columns WHERE | |
table_name = 'nome_da_tabela'; |
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
socat pty,link=/dev/virtualcom0,rawer tcp-listen:8081 & | |
socat pty,link=/dev/virtualcom1,rawer tcp:192.168.0.139:8081 & |
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
<html> | |
<head> | |
<title></title> | |
<meta content=""> | |
<style></style> | |
</head> | |
<body> | |
</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
.reduce((a, d) => { | |
if (!a.includes(d)) { a.push(d); } return a; | |
}, []) |
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
items.filter(function(reg) { | |
return Object.values(reg).find(function(prop) { | |
return prop !== null && prop.toString().normalize('NFD').replace(/[\u0300-\u036f]/g, "").toUpperCase().indexOf(query.toUpperCase()) >= 0; | |
}) !== undefined; | |
}); |
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
items.filter(function(reg, i) { | |
reg.index = i; | |
return Object.values(reg).find(function(prop) { | |
return prop !== null && prop.toString().normalize('NFD').replace(/[\u0300-\u036f]/g, "").toUpperCase().indexOf(query.toUpperCase()) >= 0; | |
}) !== undefined; | |
}).map(function(reg) {return reg.index}); |
OlderNewer