Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
This post was adapted from an earlier Twitter thread.
It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.
It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)
And then there's Rollup, which apparently requires ESM to be u
I know there is a lot of confusion around Observables
, Iterables
, AsyncIterables
and AsyncObservables
. Let's try to break this down and the reasons for each.
When it comes to collections, you have two ways of thinking about collections, push versus pull. With pull, the consumer is in control of when you get the items, but with push, you get the values when the producer is ready.
'use strict' | |
const Busboy = require('busboy') | |
const XLSX = require('xlsx') | |
function parseMultipartFormData(input, contentType) { | |
return new Promise((resolve, reject) => { | |
const buffers = [] | |
const busboy = new Busboy({ | |
headers: { 'content-type': contentType }, |
pm.sendRequest({ | |
url: '{{your url}}', | |
method: 'POST', | |
header: { | |
'Content-Type': 'multipart/form-data', | |
}, | |
body: { | |
mode: 'formdata', | |
formdata: [ |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
#!groovy | |
// imports | |
import hudson.security.AuthorizationStrategy | |
import hudson.security.SecurityRealm | |
import jenkins.model.Jenkins | |
import org.jenkinsci.plugins.BitbucketSecurityRealm | |
// parameters | |
def bitbucketSecurityRealmParameters = [ |
package main | |
import ( | |
"errors" | |
"fmt" | |
) | |
func Flatten(arr interface{}) ([]int, error) { | |
return doFlatten([]int{}, arr) | |
} |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by: