Skip to content

Instantly share code, notes, and snippets.

View ricardocanelas's full-sized avatar
🦈

Ricardo Canelas ricardocanelas

🦈
View GitHub Profile
@ricardocanelas
ricardocanelas / server.js
Created July 3, 2020 19:23
Https with Next.js
const { createServer } = require('https')
const { parse } = require('url')
const next = require('next')
const selfsigned = require('selfsigned')
// const fs = require('fs')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
@ricardocanelas
ricardocanelas / embedVideo.js
Created July 16, 2020 16:50
Embed Video (youtube & vimeo)
function stripParameters(str) {
// Split parameters or split folder separator
if (str.indexOf('?') > -1) {
return str.split('?')[0]
} else if (str.indexOf('/') > -1) {
return str.split('/')[0]
}
return str
}
<!DOCTYPE html>
<html>
<head>
<title>Preact</title>
</head>
<body>
<script type="module">
import {
html,
render,
@ricardocanelas
ricardocanelas / ds-ml-data-books.md
Last active November 1, 2022 22:10
data science - machine learning - data

Book

Year Tag Name Author
2013 Statistic Estat Johnson / Kuby
2017 Data Designing Data-Intensive Applications Martin Kleppmann
2022 Data Data Mesh Zhamak Dehghani
2012 Data Big Data: Principles and Best Practices of Scalable Realtime Data Systems Nathan Marz
2009 Statistical The Elements of Statistical Learning Trevor Hastie