News for hackers. Stuff that matters.

jrmoran

Re:Seriously, we need multi-column editors on Wednesday March 04, 2015 @10:56AM (#9145032)
is that last screenshot intellij? If that's the case, the editor supports splitting windows https://www.jetbrains.com/idea/help/splitting-and-unsplittin...
Re:Cohort Visualizer on Saturday February 07, 2015 @01:44PM (#9014871)
For those interested, here's the author's related workshop: https://www.youtube.com/watch?v=NyhVdGmnh0I (slides: https://docs.google.com/presentation/d/1oWSKNZgtXCrc1dVEXhyz...)
Re:Show HN: roots - a toolkit for advanced front-end dev on Thursday December 13, 2012 @12:03PM (#4916639)
There are a few

http://mimosajs.com/

http://brunch.io/

----

On a related note, I'm currently using Grunt.JS with few plugins for Compass, CoffeeScript and Live Reload. Similar to Guards (ruby based), it's the plugin ecosystem that makes it valuable and able to suit multiple needs.

Needless to say, roots sounds interesting.

Re:Show HN: StatMilk - Football Stats Visualized on Friday October 19, 2012 @05:53PM (#4675538)
Here's the breakdown of charting libraries OP is using

* HighCharts http://www.highcharts.com/

* jQuery Sparklines http://omnipotent.net/jquery.sparkline/

* jQuery Knob http://anthonyterrien.com/knob/

Being a fan of data visualization myself, I find this work inspiring and would like to hear his thoughts on why those libraries over using either d3.js or Raphaël.

Re:Can you beat 99% of programmers? Try the FizzBuzz challenge on Wednesday December 14, 2011 @08:14PM (#3354579)
This might be a little offtopic, but I would advise against leaving `console.log` calls in production code, even when there are checks to prevent calling it when the console object is undefined. Commenting those lines out would do the trick, since minification can remove them.

Also I went to the [calculator challenge](http://www.trybloc.com/courses/calculator#/1) and noticed this

    # add(4, 2) => 8
    def add(x, y)
    end
Needless to say the comment should read `=> 6`.

Also, since we are all geeks, here's my Clojure version

    (defn buzziffy [a b x]
	      (cond (and (zero? (mod x a)) (zero? (mod x b))) "FizzBuzz"
	            (zero? (mod x a)) "Fizz"
	            (zero? (mod x b)) "Buzz"
	            :else x))

    (println (apply str (map #(str (buzziffy 3 5 %) "\n")
	                      (range 1 100))))
Re:Markdown Editor for web developers, on Mac OS X on Sunday October 02, 2011 @04:52AM (#3062402)
A while ago I wanted something similar and could not find it, so I decided to put this together http://jrmoran.com/playground/markdown-live-editor/. It has some minor bugs and I have not updated it in a while.
Re:Try D3 Now - D3 Visualization Tutorial on Sunday August 28, 2011 @01:24AM (#2933368)
Thanks for writing it. I decided to start learning D3 last night and your tutorial was really helpful.
Re:Try D3 Now - D3 Visualization Tutorial on Sunday August 28, 2011 @01:17AM (#2933356)
I might be missing something, since I just started learning it. But instead of drawing a circle like this

    sampleSVG.append("svg:circle")
        .style("stroke", "gray")
        .style("fill", "white")
        .attr("r", 40)
        .attr("cx", 50)
        .attr("cy", 50)
        .attr("width", 100)
        .attr("height", 100);
I'd prefer to express it like this

    sampleSVG.append("svg:circle")
        .style({
            "stroke": "gray",
            "fill": "white"})
        .attr({
            "r": 40,
            "cx": 50,
            "cy": 50,
            "width": 100,
            "height": 100});
That way, I can just pass object literals as arguments to functions such as attr.
Re:Why every programmer should have a Tiddlywiki on Monday August 22, 2011 @04:21PM (#2913956)
While I prefer plain text in markdown, sometimes I store screenshots of code in Evernote to keep as as a reference about how I solved a problem. Its image indexing capabilities and mobile apps allow me to quickly search for something ubiquitously.

http://i.imgur.com/gporh.png