[1] https://en.wikipedia.org/wiki/Head-related_transfer_function
94 karma · joined November 19, 2013
[1] https://en.wikipedia.org/wiki/Head-related_transfer_function
[1]: https://github.com/sambaiz/puppeteer-lambda-starter-kit
Incidentally, I didn't know to do gamma correction until I came across [3], which explained why the output from my raytracers always looked a little off ;)
[0] http://stackoverflow.com/questions/10843321/should-webgl-sha...
[1] https://www.khronos.org/webgl/public-mailing-list/archives/1...
[2] https://www.shadertoy.com/view/Xdl3WM
[3] http://blog.johnnovak.net/2016/09/21/what-every-coder-should...
There's one thing I'm curious about - does anyone know why he's taking the square root of the color to produce the final pixel color?
On the bright side, something of an industry has been built up around preparing people for tech company interviews (similar to the SAT prep industry). Check out Gayle McDowell's Cracking the Coding Interview[0], CodeKata[1], or Interview Cake[2].
[0] https://www.amazon.com/Cracking-Coding-Interview-Programming...
Lovingly (and satirically) created by your friends at test double. Designed by Derek Briggs.
It's not meant to be serious, although I'm not sure what the point is.Edit: It seems to be (perhaps unintentionally) clickbait for programmers. We can't seem to resist visiting a website that claims to rate our code quality.
Another simple example would be image macros. They often follow a very strict pattern; the new information the user wishes to convey is where the pattern is broken.
In the same way, stories often follow a number of tropes. These tropes help to establish some basic information about the story, but what really makes it interesting is when the story breaks from the pattern and does something new.
template <class T>
void foo(T arr)
{
for (auto it = arr.begin(); it != arr.end(); ++it)
{
std::cout << *it << std::endl;
}
}
You could pass a `std::map<int>` to `foo`, or a `std::list<string>`, or a `std::vector<char>`. You could even create your own classes and give them to `foo`, as long as they implement the `begin`/`end` protocol.It's certainly more verbose than necessary, but it can be convenient.
Also, even though Markdown tends to be fairly easy to write, there are many edge cases where you can't really be sure what the result is unless you try it.
"Because my daughter loves it here."
Seems to fit in with what he was saying to me.
It reminds me of the "Hail Mary Cloud" posted previously on HN - http://bsdly.blogspot.com/2013/10/the-hail-mary-cloud-and-le...