News for hackers. Stuff that matters.

eltaco

Re:Open-Sourcing CloudFlare’s UI Framework on Thursday June 09, 2016 @05:03PM (#11872369)
James is also on the Lerna team as well! He and I can answer questions about that too. (We also have a slack https://slack.lernajs.io/)
Re:Performance of ES6 features relative to ES5 on Tuesday March 01, 2016 @10:15PM (#11207885)
You can use loose mode which doesn't use try/catch blocks

http://babeljs.io/repl/#?experimental=false&evaluate=true&lo...

Re:Performance of ES6 features relative to ES5 on Tuesday March 01, 2016 @01:31PM (#11204880)
You can use loose mode or the loose option in that case.
Re:ESLint: A Next-Generation JavaScript Linter on Thursday October 01, 2015 @07:44PM (#10315613)
ESLint is pretty awesome - the project has a great team and always adding new functionality (cache and then parallel linting sound great)!

Although it isn't unique for all the features listed, as JSCS has the same things: an autoconfigure feature, built-in (as well as user created) presets/configs, multiple formatters, custom plugins/rules, custom parsers (esprima/espree/babel), autofixing of almost all rules. Hopefully both projects can benefit or integrate better together more in the future? (I contribute to both!)

I think autofixing for all rules (maybe with https://github.com/cst/cst) would be a nice goal for the future when thinking about the next-generation of linters. Making it easier to update configs when new rules/options are added would be nice as well.

Re:The Hardest Program I've Ever Written on Thursday September 10, 2015 @03:35PM (#10200082)
There's an issue for a CST (AST with whitespace, comments, etc) in the estree repo [1]. JSCS is planning on using https://github.com/mdevils/cst for future autofixing rules.

[1] https://github.com/estree/estree/issues/41

Re:The Hardest Program I've Ever Written on Thursday September 10, 2015 @03:33PM (#10200060)
For javascript, there's been jsbeautifier [1], jsfmt [2], uglify.

JSCS [3] added autofixing a while back for most whitespace rules, and ESLint has just begun autofixing as well [4]

[1] http://jsbeautifier.org/ [2] https://github.com/rdio/jsfmt [3] http://jscs.info/ [4] https://github.com/eslint/eslint/pull/3635

Babel is working on minification[1] /dead code elimination [2] as well now

[1]: https://github.com/babel/babel/issues/1828 [2]: https://github.com/babel-plugins/babel-plugin-dead-code-elim...

Re:Airbnb JavaScript Style Guide on Friday July 03, 2015 @10:40AM (#9825809)
You can use the airbnb preset with JSCS (javascript code style checker) [1].

Also there's an autofix feature for most of the whitespace rules (`jscs src --preset=airbnb --fix`) so you won't have to fix everything manually.

[1]: http://jscs.info/overview.html

Re:ECMAScript 2015 Approved on Wednesday June 17, 2015 @05:20PM (#9735398)
There's currently a issue for "speed": https://github.com/babel/babel/issues/1486. Looks like it complied ember core from 50s to 18s now.
Re:JSXHint, a ReactJS/JSX Code Quality Tool Online on Tuesday June 09, 2015 @09:02AM (#9685618)
You can also use them on class declarations themselves and object literals - https://github.com/wycats/javascript-decorators#object-liter...
Re:Vibrant.js: Extract prominent colors from an image on Tuesday May 26, 2015 @02:51PM (#9606812)
Great! Reminds me of color thief: http://lokeshdhakar.com/projects/color-thief/
You could try implementing some of the methods in underscore/lodash - http://underscorejs.org/? Each of those are pretty simple and can build off each other - you'll learn how to deal with arrays, objects, functions, arguments, apply/call, this, etc. You could write your own tests or use their unit tests as well to get some practice with testing. I was planning on doing this myself at some point haha.

There's an annotated source for underscore: http://underscorejs.org/docs/underscore.html.

There's also just implementing data structures/algs: https://github.com/felipernb/algorithms.js

Some more talks:

http://vimeo.com/94259578 (2014) http://www.gdcvault.com/play/1014982/ (2011)

If anyone likes game talks then check a repo I made https://github.com/hzoo/awesome-gametalks

Re:Tips for Intermediate Git Users on Monday January 12, 2015 @09:20AM (#8873945)
a pre-commit git hook?

An example for jquery style commits is https://www.npmjs.com/package/commitplease

I've been using jscs [1] for js style checks.

[1] https://github.com/jscs-dev/node-jscs

Re:Ask HN: Who wants to be hired? (August 2014) on Friday August 01, 2014 @11:18AM (#8120409)
Location: Atlanta/Alpharetta | Full-time

Remote: No

Willing to relocate: Open to bay area

Technologies: JavaScript, HTML5, CSS3, Node, d3

Resume: http://henryzoo.com

Github: https://github.com/eltacodeldiablo

Email: [email protected]

New grad looking primarily for a front-end dev position. Interested in doing UI development, visualization, games but open to learning new technologies.

Re:Random Tweet: See one random tweet at a time on Friday May 09, 2014 @11:14PM (#7724357)
This is similar to a project I did for my visual/data analytics class

http://twitterhealth.herokuapp.com

Gives you a tweet in the US for you to categorize as being related to veing sick or not. Kind of like crowd sourcing classification of sick tweets. It's pretty interesting just looking through the tweets..

Re:Ask HN: Screenshot Saturday on Saturday April 26, 2014 @09:43PM (#7653543)
TwitterHealth

http://i4.minus.com/ibmjeJLRAFCB0Q.png

Crowdsourcing the classification of tweets as sick related or not for my Data/Visual Analytics class. Classified tweets from users are sent to our machine learning alg.

Originally was supposed to show where and what ailments people were dealing with around the world but having only cities doesn't give that great of a visualization.

Using node, d3, cubism, redis.

App: http://twitterhealth.herokuapp.com Code: https://github.com/eltacodeldiablo/twitterhealth

Check out Tweetpleth if you want more specific tweets http://tweetpleth.herokuapp.com/ like for the superbowl http://i.imgur.com/bzmmJno.png
Re:What Twitter Really Looks Like on Saturday February 02, 2013 @05:39PM (#5157680)
I made a visualization that shows the tweets for specific words and can account for population density (only US though): http://tweetpleth.herokuapp.com/
Re:Tweetping, Twitter traffic in real time on Wednesday January 30, 2013 @04:42AM (#5138755)
I made a project that is similar - shows a bit more information except its only for the US and you need to search a specific word/hashtag. http://tweetpleth.herokuapp.com/
Re:Show HN: Tweetpleth - Where are people tweeting? on Tuesday December 25, 2012 @03:33PM (#4967040)
Yeah i'l get on that soon. I'm using the location filter to only get tweets in the US. 'locations': ['-180','15','19','72']}
Re:Show HN: Tweetpleth - Where are people tweeting? on Tuesday December 25, 2012 @12:50PM (#4966509)
A final project for a class I took at GT (CS 4460: Intro to Info Vis). Thought it was viable as a an actual website since its realtime, so I put it up using heroku's free service.

Older »