HNHacker News
TopNewBestAskShowJobs

divad12

591 karma · joined March 21, 2011

I'm a student at the University of Waterloo for Software Engineering.

Also a former two-time intern at Sift Science, Khan Academy (past work: http://david-hu.com/ka-ml.html), and Google.

Blog: http://david-hu.com

submissionscomments
divad12··on WrapAPI v2: build APIs, bots, and scrapers on websites; feedback appreciated
This seems like it could be really useful. How do you deal with sites that might block you?
divad12··on React v0.11
Yes, this is my bad. :) I added an issue to GitHub about it: https://github.com/divad12/vim-awesome/issues/14

Pull requests welcome!

divad12··on Show HN: Vim Awesome – Vim plugins
Thanks, these are great suggestions! Added two issues:

1. https://github.com/divad12/vim-awesome/issues/40

2. https://github.com/divad12/vim-awesome/issues/39

divad12··on Show HN: Vim Awesome – Vim plugins
Thank you! The color scheme used is Solarized, courtesy of Ethan Schoonover: http://ethanschoonover.com/solarized
divad12··on Show HN: Vim Awesome – Vim plugins
You're right that GitHub stars probably isn't the best metric of how good a plugin is. We try to use a more unbiased metric of relative # of actual users, and this we get by scraping dotfiles repos on GitHub, looking for references to Vim plugins. That's shown as the # users count to the left of stars on GitHub. It's also not perfect, but it's a useful source of relative usage statistics.
divad12··on Show HN: Vim Awesome – Vim plugins
Hi! Glad you like the j/k scrolling.

All it is is a call to `window.scrollTo()` with some logic to determine the position of the element we want to scroll to. See [1] for the code of the actual function that does the scrolling. Is there acceleration? There doesn't seem to be on Chrome for Mac. :/

Oh, if you meant the little arrow ("»") that slides to the right on focus of a plugin, that's just the CSS 3 transition `all 0.1s ease-out` applied to a changing `left` and `opacity`. See [2] for code.

Thanks for checking out the site!

[1]: https://github.com/divad12/vim-awesome/blob/13d576664aa88fe0... [2]: https://github.com/divad12/vim-awesome/blob/13d576664aa88fe0...

divad12··on Show HN: Vim Awesome – Vim plugins
In fact, this was the first React project that he worked on -- he rewrote our old angular app within a week of when React first came out, and had been hooked since.
divad12··on Show HN: Vim Awesome – Vim plugins
Indeed -- https://github.com/divad12/vim-awesome/pull/17

Thanks for pointing this out to us. Will merge when I get home.

divad12··on Show HN: Vim Awesome – Vim plugins
Oops, that's definitely a bug! Issue raised: https://github.com/divad12/vim-awesome/issues/16

Thanks for finding this.

divad12··on Show HN: Vim Awesome – Vim plugins
Thank you! Wanting such a thing is why we built it. :)
divad12··on Show HN: Vim Awesome – Vim plugins
Hi! Thank you for checking this out!

The reason for the mis-match between # of plugins and tags count is the tags count only counts plugins with that tag in the category the tag is nested under. I agree this is quite confusing, and should just make the two views consistent. I'll add an issue to GitHub about it.

Each category has a distinct color.

> Other->'manager x 3' shows no results

Oh, we hide plugin mangers right now, so no results are shown. :( Will fix this to be nicer, thanks.

divad12··on Mobile fraud detection in iOS 7
We have seen fraudsters reinstall an app over and over, each time signing up with a new email and a new stolen credit card after their previous account was shut down. A persistent device ID allows our clients to block a new signup from a fraudster that is from the same physical phone the fraudster has used before. (This greatly increases the cost of committing fraud, by forcing the fraudster to root their phone or use a new phone each time.)
divad12··on Ex-Googlers Train Machine Army to Sift Out Crooks
(I work at Sift Science too.)

Just to clarify, we charge 10 cents per unique user that you query in a month, not per query. So, you can query the same user as many times as you like in a month and the cost will not exceed 10 cents for that user.

divad12··on Numbers API - An API for interesting facts about numbers
There is now: click the "+ Add a trivia fact..." on http://numbersapi.com/
divad12··on Numbers API - An API for interesting facts about numbers
Wolfram Alpha is great for mathematical properties of numbers, while we have trivia facts and are looking to gather more (eg. from world records, numbers in nature, statistics, almanacs, news).
divad12··on Numbers API - An API for interesting facts about numbers
Ha, good catch. http://numbersapi.com/1729 (the trivia version) gives the Ramanujan fact, while we have multiple math facts for 6 (refresh a few times to get "smallest perfect number").

We're still working to build our database of facts. Feel free to send suggestions to numbersapi at google mail, and we may add a feature for user-submitted facts.

divad12··on Numbers API - An API for interesting facts about numbers
Oops, terrible oversight. Fixed now - http://numbersapi.com/#1337 :)

Feel free to send entry suggestions to numbersapi at google mail. We may add a feature for this soon.

divad12··on Numbers API - An API for interesting facts about numbers
Thanks for pointing that out. The ticker came from some work I did while interning at Khan Academy, and was not originally meant for negative numbers. If I get some time, I may make it into a jQuery plugin and make it work for more cases and be configurable.
divad12··on Numbers API - An API for interesting facts about numbers
Not right now, but we're looking to possibly add this feature. For now, feel free to send any suggestions to numbersapi at google mail.
divad12··on Numbers API - An API for interesting facts about numbers
Hi, I'm the co-creator of this service. Blog post with more info: http://david-hu.com/2012/03/05/announcing-numbers-api.html

We welcome any feedback and are willing to answer any questions. Thanks!