Skip to content

Instantly share code, notes, and snippets.

Avatar

AJ Heller drfloob

View GitHub Profile
@tansongyang
tansongyang / cartesian-product-lodash-fp.js
Last active Feb 18, 2019
An implementation of Cartesian product using lodash/fp
View cartesian-product-lodash-fp.js
// Based on this gist: https://gist.github.com/ChrisJefferson/cb8db2a4c67a9506c56c
// JS Bin: https://jsbin.com/cefopi/edit?js,console
const cartesianProduct = (...rest) =>
_.reduce((a, b) =>
_.flatMap(x =>
_.map(y =>
x.concat([y])
)(b)
)(a)
)([[]])(rest);
@iMazed
iMazed / spamreferrals.txt
Last active Nov 5, 2020
Spam referral list to add to Google Analytics spam filters. Custom filter > Exlude > Campaign Source.
View spamreferrals.txt
share-buttons.xyz
traffic2cash.xyz
с.новым.годом.рф
net-profits.xyz
social-widget.xyz
free-social-buttons.xyz
4webmasters.org
76brighton.co.uk
7makemoneyonline.com
acads.net