Skip to content

Instantly share code, notes, and snippets.

View junipertcy's full-sized avatar
🐋
nuit blanche

Tzu-Chi Yen junipertcy

🐋
nuit blanche
View GitHub Profile
@junipertcy
junipertcy / WikiAdjSmall.mat
Last active April 3, 2021 03:59
Figure 3.15 from Barber using daft
# Unlink and then relink all brew stuff
brew list -1 | while read line; do brew unlink $line; brew link $line; done
# Update all pip packages
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U

Keybase proof

I hereby claim:

  • I am junipertcy on github.
  • I am tzuchi (https://keybase.io/tzuchi) on keybase.
  • I have a public key ASDczg3dewk09m9-30hzJnqmEFUZskAMDCNP_ATQF6Hsqwo

To claim this, I am signing this object:

SomeSchema.methods.mapReduce = function(callback) {
function map() {
/*global emit:true */
emit('something', {foos:this.foos, users:1});
}
function reduce(k, av) {
var foos = 0;
av.forEach(function(v) {