Skip to content

Instantly share code, notes, and snippets.

Dviejo Dviejopomata

  • Alicante, Spain
View GitHub Profile
View n.py
#%%
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
from scipy.cluster.hierarchy import dendrogram, linkage
from sklearn import datasets
import seaborn as sns
%matplotlib inline
sns.set(style="darkgrid")
#%%
View ribbon.xml
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="Docxmerge">
<group id="ContentGroup" label="Template actions">
<button id="textButton" label="Upload"
screentip="Text" onAction="OnTextButton"
View log.txt
blazor.webassembly.js:1 WASM: [System.DllNotFoundException] MonoPosixHelper
d.printErr @ blazor.webassembly.js:1
put_char @ mono.js:1
write @ mono.js:1
write @ mono.js:1
___syscall4 @ mono.js:1
wasm-function[433]
wasm-function[4312]
wasm-function[2449]
wasm-function[2446]
View migration-postgresql.sql
create table feed_rss_website
(
id uuid not null
constraint "PK_d401ce5af5a14a6c20e76f1ae78"
primary key,
created timestamp default now() not null,
updated timestamp default now() not null,
version integer not null,
url varchar not null,
name varchar not null
View datoCuriosoIntent.js
const DatoCuriosoHandler = {
canHandle(handlerInput) {
return (
handlerInput.requestEnvelope.request.type === "IntentRequest" &&
handlerInput.requestEnvelope.request.intent.name === "datoCurioso"
)
},
handle(handlerInput) {
const speechText =
funFactsAboutFormula1[_.random(0, funFactsAboutFormula1.length)]
View formula1-skill.json
{
"interactionModel": {
"languageModel": {
"invocationName": "formulauno",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
View skill.js
const { SkillBuilders } = require("ask-sdk")
const _ = require("lodash")
const funFactsAboutFormula1 = [
"El coste de un formula 1 es de 6 a 8 millones de euros",
"Un coche posee aproximadamente 80000 componentes",
"El peso de un formula 1 es de 702kg",
"Barrichelo dejo pasar a Schumacher en Austria 2001",
"Barrichelo dejo ganar a Schumacher en Austria 2002",
`Las carreras de automóviles de Fórmula 1 tienen sus raíces en el Grand Prix Motor Racing de Europa de las décadas de 1920 y 1930. La "fórmula" en el nombre se refiere a un conjunto de reglas que todos los participantes y los automóviles deben cumplir.`,
"El costo promedio de un coche de F1 es de 6, 8 millones. Ten en cuenta que es el precio de los componentes más básicos. No incluye los cientos de millones gastados en desarrollo e investigación. Es una máquina bastante cara.",
View intents-administracion-electronica.json
{
"interactionModel": {
"languageModel": {
"invocationName": "administracion electronica",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
View sign.js
const crypto = require("crypto")
const fs = require("fs")
const sign = crypto.createSign("SHA256")
const text = "hello world"
// openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
const privateKey = fs.readFileSync("./key.pem")
const publicKey = fs.readFileSync("./cert.pem")
const passphrase = "123456"
sign.update(text)
sign.end()
View file.pdf.txt
%PDF-1.7
1 0 obj << /Type /Catalog/Pages 2 0 R >> endobj
2 0 obj << /Type /Pages /Kids [3 0 R] /Count /MediaBox [0 0 612 792] >> endobj
3 0 obj << /Type /Page /Resources 4 0 R /Contents 5 0 R >> endobj
4 0 obj << /F1 << /Type /Font /Subtype /Type1 /Basefont /Helvetica >> >> >> endobj
5 0 obj << /Size 1000 >>
stream
BT /F1 12 Tf 2 780 Td (Hello world)Tj ET
endstream
endobj
You can’t perform that action at this time.