Skip to content

Instantly share code, notes, and snippets.

Dviejo Dviejopomata

  • Alicante, Spain
View GitHub Profile
View square_root.py
import time
import keras
import matplotlib.pyplot as plt
import numpy as np
from keras.layers import Dense, Activation
from keras.models import Sequential
x = np.arange(-100, 100, 0.5)
y = x ** 2
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 intents-administracion-electronica.json
{
"interactionModel": {
"languageModel": {
"invocationName": "administracion electronica",
"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 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()
You can’t perform that action at this time.