Better HN
topnewbestaskshowjobs
Log inSign up

gcao

40 karma · joined Feb 15, 2010 (16y ago) · 44 submissions

gcao99 at gmail
Submissions

1.

Show HN: Gene – a Lisp-like language built around a generic "Gene" data type(github.com ↗)

36 points · by gcao · 11mo ago · discuss

2.

What good AI news aggregator are there?

1 points · by gcao · 1y ago · 1 comment

comment 6y ago · link · parent

The other suggestions are all very good. I’ll work on them when I get a chance.

About the first, I think the focus page is already very minimal. Not sure what can be moved out.

comment 6y ago · link · parent

https://gcao.github.io/fffocus

5.

Show HN: fffocus – a simple tool that helps you clear your mind before work

7 points · by gcao · 6y ago · 3 comments

comment 10y ago · link · parent

How well does Spacemacs work in a terminal (e.g. iTerm)? I've been using iTerm+Tmux+vim and don't want to give up iTerm+tmux just yet.

comment 11y ago · link · parent

I've not done any research. It's just an idea suddenly popped into my mind :-P Any comments or suggestions are welcome.

The waiting time between numbers is what requires attention.

8.

Show HN: A simple HTML page that clears your mind before starting work(github.com ↗)

12 points · by gcao · 11y ago · 4 comments

comment 11y ago · link · parent

Seems it does not handle repos or folders with "."

comment 11y ago · link · parent

Why not just recommend one way of naming things and do it in all standard APIs? If someone obviates in his custom library, that's his problem. I think below are pretty much a standard in many languages now.

THIS_IS_A_CONSTANT SomeClass someVariable someMethod()

comment 11y ago · link · parent

Great work! This is very intriguing!

comment 11y ago · link · parent

I'm using the same setup (plus spf13.vim, powerline and Oh My Zsh). It looks beautiful and works very well. Here is a screenshot of my setup: http://postimg.org/image/9jqokq0ll/full/

comment 12y ago · link · parent

In pry is it possible to return something when I exit the REPL? Like this:

  def do_something
    return binding.pry

    do_something_but_does_not_work
  end

  result = do_something
  process result
It might be very convenient if I put 'return binging.pry' just before the broken code. I can interactively fix the broken code and continue run outside of current method.

comment 12y ago · link · parent

Mine crashes a lot. Usually after I send it to sleep when I go home. Next time when I wake it up, it starts up from crashed state. It might have something to do with some app I installed but I didn't spend time to figure that out yet.

comment 12y ago · link · parent

Has anyone created mapping to jump AFTER a character? I did it and think it is great.

comment 12y ago · link · parent

Thank you for sharing this. However, IMHO form builder is the last thing that could be reused in different projects. How a form is presented and submitted and navigation is handled vary a lot from one project to another project.

comment 12y ago · link · parent

Jon, do you mind if I send my resume and cover letter to you? If you find it a good fit to your team or any other team, please forward to the right person. I really appreciate you taking the time to review it.

My email is gcao99 at gmail.com

comment 12y ago · link · parent

React is nice. I've created a simple library that shares same core concept - map DOM to Javascript objects. The difference is my lib uses Javascript standard data type, array, to represent tag, and hash(or object) to represent attributes, and strings for text contents. With a few tricks, I got a very powerful library - http://github.com/gcao/T.js. You can see an example written in CoffeeScript here

https://gist.github.com/gcao/8363743

comment 13y ago · link · parent

IMHO, built-in support of api-only application is very good. Here are the reasons I can think of right now:

1. unify people who are looking for a standard approach to create api in Rails

2. clear separation between lower level http support and higher level html/js/css processing

3. performance improvement against using regular Rails for api

4. easier upgrade for app developers

comment 13y ago · link · parent

Interesting project. I feel it is similar to https://github.com/gcao/T.js - my little Javascript template engine. However IMHO, json2html is too verbose for large document, and T.js is concise and provides some nice features(e.g. layout, attributes as hash etc).

Below is a T.js template written in Coffeescript. <code> tournamentResultTemplate = (data) -> return unless data.result

  [ "div.detail"
    [ "table"
      [ "tr"
        ["td", "Result"]
        ["td", data.result]
      ]
      if data.defeated
        [ "tr"
          ["td", "Defeated"]
          ["td", data.defeated]
        ]
      if data.lost_to
        [ "tr"
          ["td", "Lost to"]
          ["td", data.lost_to]
        ]
    ]
  ]
</code>

21.

T.js - a simple & powerful template engine for Javascript(github.com ↗)

1 points · by gcao · 13y ago · discuss

comment 13y ago · link · parent

Go is never popular among ordinary people in China. I guess one reason is it takes a lot of time to finish a game. However, most chineses know how to play Xiangqi, the chinese counterpart of Chess.

comment 13y ago · link · parent

With my due respect to guys behind Ember, I don't understand why Ember gets so much attention. It has been in works for 4~5 years now but has not reached its 1.0 status. I've seen many complaints about its learning curve, documentation etc. However, when people talk about Javascript web frameworks to learn, it is often brought up as a candidate. Maybe someone can tell me why people think it will be a serious contender in this fast moving area.

comment 13y ago · link · parent

It's probably a design pattern, or a flavor of AOP (Aspect Oriented Programming).

25.

Show HN: A tennis info site using d3, cloudant etc(gcao.github.com ↗)

2 points · by gcao · 13y ago · discuss

26.

DCI, or should it be RIC(Role/Interaction/Context)?

1 points · by gcao · 13y ago · discuss

comment 14y ago · link · parent

Great work!

Node.js and python support will be nice.

12