May. 21st, 2012

henry_flower: A melancholy wolf (Default)
https://github.com/trentm/json

Как мы раньше без. Ну, то есть, было так:

node -e 'j=JSON.parse(require("fs").readFileSync("package.json", "ascii")); for (var i in j["files"]) console.log(j["files"][i])'

Из практических применений у меня: выковыривание данных из package.json для makefile'ов. Типа:

INFO = package.json
NAME = $(shell json name < $(INFO))
VER = $(shell json version < $(INFO))
PACKAGE = $(NAME)-$(VER).oex

package_clean:
rm -rf $(PACKAGE)

package: $(INFO) package_clean
zip $(PACKAGE) `json files < $< | json -a`

Гоогл, гадюка, когда ты добавишь preformatted text?

Permalink: https://plus.google.com/115290581164606462017/posts/dMMkhU7253Z

henry_flower: A melancholy wolf (Default)
Посмеялся. Наивные айриши делают рекламу в фейсбуке:

'Clearly something is not right, so I decide to view the profiles of all those who clicked the ads. They hit one common spot – they were all in the UK. But they were aged from 13 to about 70, many were unemployed or in education, we even had a Muslim fundamentalist who is very concerned about things in Pakistan. Lots and lots of doting mothers with FB pages full of cutesy little life mottoes. It may well suit some types of businesses but I can say we are not among that number.'

Можно еще курсы по AI во вконтакте продвигать. Или программирование микроконтроллеров в одноклассниках.
Attachments:

Column: I put my family business on Facebook. Here’s what happened.


Permalink: https://plus.google.com/115290581164606462017/posts/fYn6QF8BHQo