Issue #29: "Never mistake motion for action." - Ernest Hemingway
Good morning, afternoon, evening, whenever and wherever you might be!
Hope your week was splendid. Mine was fairly busy, but I'm hoping for a more relaxed one soon!
Service Worker Gotchas
The transformation of the transform
Setting up Webpack, Babel and React from scratch, revisited
Web Audio Modem
Here's a link to the webinar, and because I got several questions about it, here's my vim setup. :)
Here's my implementation in JavaScript:
I fell 15,000 feet and lived
Keyboard featuring SA Photo Studio keycaps
A NASA satellite that monitors CO2 is revealing the inner workings of our planet
It was a housewarming gift!
Alright friends, that's it from me. Have a good week, be safe, make good choices, and don't stress out.
cassidoo
Hope your week was splendid. Mine was fairly busy, but I'm hoping for a more relaxed one soon!
Web links of the week
The end of Framework ChurnService Worker Gotchas
The transformation of the transform
Setting up Webpack, Babel and React from scratch, revisited
Web Audio Modem
Something that interested me this week
This week I gave a webinar on Vue.js with Shopify! If you'd like to check it out, they posted it online. In it, I talk about why Vue is great, and then live-code up a GitHub user search with Vue and the GitHub API!Here's a link to the webinar, and because I got several questions about it, here's my vim setup. :)
Interview question of the week
Last week, I had you build a queue in the language of your choice. A few people sent me their implementations; here's one from Kyle Hodgetts in Go!Here's my implementation in JavaScript:
function Queue() {
this.q = [];
this.peek = function() {
return this.q[0];
}
this.push = function(x) {
this.q.push(x);
}
this.pop = function () {
var ret = this.q[0];
this.q.slice(1);
return ret;
}
}
Usage:
var t = new Queue() t.push(4) t.push(10) t.peek() > 4 t.pop() > 4 t.peek() > 10
And here’s this week’s question:
Say you are given a list of a LOT of numbers (at least 100,000), and they’re sorted, and repeats are allowed. Write the psuedocode for an algorithm that determines if one of the numbers is present for more than half the list (make sure the runtime is the best you can get it, as in, looping through the whole list is probably not a good idea).
Cool things from around the internet
3 Reasons Why You Should Quit Your JobI fell 15,000 feet and lived
Keyboard featuring SA Photo Studio keycaps
A NASA satellite that monitors CO2 is revealing the inner workings of our planet
Joke
Why did Judy buy her friend a space heater?It was a housewarming gift!
Alright friends, that's it from me. Have a good week, be safe, make good choices, and don't stress out.
cassidoo