Better HN
topnewbestaskshowjobs
Log inSign up

BinaryBullet

56 karma · joined Apr 9, 2012 (14y ago) · 65 submissions

Submissions

comment 10y ago · link · parent

This is really cool. I've been using various tools for quick demos, but have really been looking forward to something that makes use of webpack and npm (in the browser).

comment 10y ago · link · parent

Haha. Yeah. That jumped out at me.

#2 - Put the customer first (except when listing our core values, then put them second).

I understand the sentiment, just a weird juxtaposition with "#2" and "first"

comment 10y ago · link · parent

I've had a pretty bad time trying to get code coverage with my cli tests. I've ended up using spawn() in my test cases due to most libraries using process.exit() / process.stdout.write() and console.log() (instead of picking one and sticking with it).

How are globals used in the vorpal codebase? Is it going to be easier to write my tests (and actually get code coverage with istanbul working)?

I like the site, and the API overview. The library looks nice!

comment 10y ago · link · parent

Ah, that makes sense. I thought it was just that the dat.gui step was set to '1' not '0.01'. Didn't realize the step was set that way puposely due to a limitation of the technique being used.

comment 10y ago · link · parent

I just noticed that :) Was working on adding a randomize button, but having trouble building. Are you using gulp or webpack or a combination?

I'll submit a PR after editing this (if you wanna accept it): https://github.com/tiborsaas/unique-gradient-generator/blob/...

Trying to add a randomize() function that edits topX, topY, and sampleArea. Might add a button to dat.gui or maybe just call it based on pressing the 'r' key.

comment 10y ago · link · parent

Good job on this- very cool. I think it'd be a nice addition to have a "randomize settings" button, or perhaps allow a "travel" mode where the x/y positions change in smaller increments (so the background changes a bit slower).

I'd like to add something like this to: http://projects.skratchdot.com/infinite-gradients

I'll at least add a link to https://github.com/tiborsaas/unique-gradient-generator in the README...

comment 12y ago · link · parent

Do you mean the fb.me link, or did you see one of the fbcdn.net links redirect? If you mean the fb.me link, that's Facebook's URL shortening service, so those will always redirect (as far as I know).

38.

React v0.12 Released(facebook.github.io ↗)

2 points · by BinaryBullet · 12y ago · discuss

comment 12y ago · link · parent

This looks pretty cool:

http://gcanti.github.io/resources/tcomb-react-bootstrap/play...

comment 12y ago · link · parent

Yeah... The interactive video is really cool. It looks like they're using popcorn.js for it (although I'm still watching, and haven't completely checked out the source).

comment 12y ago · link · parent

There's https://github.com/facebook/react-art which I haven't used yet. One of the problems with react v0.10 is that it doesn't yet support all SVG attributes: http://facebook.github.io/react/docs/tags-and-attributes.htm...

For instance, the other day I was trying to make a responsive chart, but couldn't due to react not supporting the 'viewbox' attribute. I then tried npm installing from the repo directly, which didn't work b/c they have a custom npm build script that needs to be ran (and after some hacking, I was still running into weird errors w/ v0.11-alpha). Anyways, react seems like it will be very interesting for svg charting once they fully support all svg attributes.

42.

Safe Integers in JavaScript(2ality.com ↗)

2 points · by BinaryBullet · 12y ago · discuss

comment 12y ago · link · parent

The https://www.dashingd3js.com/ mailing list had some pretty cool links relating to quadtrees this week (this article included). Here's another one:

http://bl.ocks.org/patricksurry/6478178

Which also links:

http://bl.ocks.org/mbostock/4343214

I found the 'Voronoi Tessellation' to be really mind bending:

http://bl.ocks.org/mbostock/4060366

comment 13y ago · link · parent

Unfortunately Bandcamp's embed doesn't seem to be working in Firefox/liveweave for me, but here's a theme song added:

http://liveweave.com/bhu7HB

comment 13y ago · link · parent

This is very cool. I remember seeing: https://news.ycombinator.com/item?id=4413713 last year, and wanting to try it on the site I work on.

Crowdery seems to expand on this idea. Looks interesting.

comment 13y ago · link · parent

Here's some css that helps a little bit IMO (for newer browsers).

It might be even better to scale the green/yellow/red values based on their 0-3 values.

Anyways:

    tr[data-sound] {
    	border-right: 5px solid;
    }
    tr[data-sound^="g"] {
	    border-right-color: green;
    }
    tr[data-sound^="n"] {
	    border-right-color: yellow;
    }
    tr[data-sound^="b"] {
	    border-right-color: red;
    }
I just signed up. Sent you my info via a different channel.

comment 13y ago · link · parent

I agree this could be very cool for low frequency events like @mik3y suggested.

I know it's just a demo, but it would be nice to have a visual indication of which events made which sound.

Maybe at some point down the line, your api could expose an image as well (like maybe image/g/3 is the "g/3" waveform in green, while image/b/5 is the "b/5" waveform in red).

Anyways, good work!

comment 13y ago · link · parent

Very cool. I'm a big fan of your other work. Good luck with this!

comment 13y ago · link · parent

Awesome. Thanks again!

comment 13y ago · link · parent

This is great!

Any plans to have an API that other products/services can use? Is it against the TOS to post to /upload from a different domain?

I'll be working on a site soon that might allow some type of media upload. Would it be okay to use mediacru.sh for something like that?

I could see "free hosting" getting really expensive for you guys though, especially if you allowed hotlinking, etc.

Anyways, best of luck to you. Hopefully this becomes profitable for you.

51.

Show HN: Audio Sort - Visualize and Audibilize Sorting Algorithms(skratchdot.github.io ↗)

1 points · by BinaryBullet · 13y ago · discuss

comment 13y ago · link · parent

I made something a while back that compares lists/tables and visually shows results:

http://skratchdot.github.io/list-tool/

Some of the algorithms aren't optimized (as to keep results in the order they were processed).

It was more of an experiment to play with web workers and responsive design.

comment 13y ago · link · parent

I remember seeing your original post in December. One of the comments/suggestions was about the Ace editor (and not being able to choose a theme). I ended up making this on that day:

https://github.com/skratchdot/github-editor-theme.user.js

I have a few other user scripts that I like to use as well when browsing Github:

https://github.com/skratchdot/github-repo-filter-info.user.j...

https://github.com/skratchdot/github-repo-counts.user.js/

https://github.com/skratchdot/github-code-search.user.js/

https://github.com/skratchdot/github-get-missing-description...

comment 13y ago · link · parent

I created a bookmarklet the other day. It doesn't work on all links, but I just tested it on a CNN article, and it worked.

Anyways, here it is (YMMV):

https://gist.github.com/4596293

comment 13y ago · link · parent

Sorry for the delay. I was at work so couldn't respond right away.

All the userscript does is proxy the advanced search results page, so the search you tried hits this page:

https://github.com/search?type=Code&q=users+%3C%3C+User....

If you only search for voter1@example.com, results are shown:

https://github.com/search?type=Code&q=voter1%40example.c...

Anyways, you did find a "0 results" bug which should now be fixed. Thanks for that!

comment 13y ago · link · parent

I just updated a userscript I created a while back so it works with the new code search: https://github.com/skratchdot/github-code-search.user.js/

It's just a shortcut for searching the current repository you are viewing (by adding a search box next to the tag count).

57.

Show HN: List Tool - a web app for comparing lists(skratchdot.github.com ↗)

3 points · by BinaryBullet · 13y ago · 1 comment

comment 14y ago · link · parent

As others have suggested, jQuery is overkill for this.

The best lightweight js library I've found/used in the past is parseUri:

http://blog.stevenlevithan.com/archives/parseuri

Obviously, if you only need to analyze the current URL, you can use window/document.location, but there are times when you want to parse a URI for a page you aren't on. For instance, if you are analyzing har data, and want to break URI "components" into columns so they are sortable.

123