Skip to content

Instantly share code, notes, and snippets.

View jvandemo's full-sized avatar

Jurgen Van de Moere jvandemo

View GitHub Profile
@staltz
staltz / introrx.md
Last active July 2, 2024 03:45
The introduction to Reactive Programming you've been missing
@klaascuvelier
klaascuvelier / $q-all-spread.js
Last active August 29, 2015 14:08
Add spread method to $q.all promise
angular
.module('$q-spread', [])
.config(function ($provide) {
$provide.decorator('$q', function ($delegate) {
var originalAll = $delegate.all;
$delegate.all = function (promises) {
var promise = originalAll(promises);

Hello -

I am currently staying at the David Intercontinental in Tel Aviv, Israel - I'm here on business for 10 days - I'm a web software engineer at Google in Mountain View, California.

While reading a close friend's blog using the hotel wifi (note I am using the paid service), a popup appeared midway down the page asking me to use my room number to "get the latest digital services" from the hotel:

ad

As my friend's blog is hosted in the US, and he's never been to to the David hotel or Israel, for that matter, I thought it was somewhat odd that his website would be asking me anything like this. So, I jumped on my laptop, and visited the page from there with Chrome's developer tools running.

@sindresorhus
sindresorhus / esm-package.md
Last active July 2, 2024 15:07
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.