Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
SELECT "me"."id", "me"."users_id", "me"."context", "me"."context_id", | |
"me"."content", "me"."deleted", "me"."created", "me"."updated", | |
"me"."parent_id", "user"."id", "user"."username", "user"."public", | |
"user"."admin", "user"."email", "user"."gravatar_email", | |
"user"."userpage", "user"."data", "user"."notes", "user"."created", | |
"user"."updated", "user"."roles", "token"."id", "token"."msgid", | |
"token"."msgid_plural", "token"."msgctxt", "token"."type", | |
"token"."data", "token"."notes", "token"."token_domain_id", | |
"token"."created", "token"."updated", "token_domain"."id", | |
"token_domain"."key", "token_domain"."name", |
# This shows the setup for two services, an accounts service which connects to a database and a pagerduty service which connects to the pagerduty api | |
# Directory structure | |
accounts/ | |
|_ Dockerfile | |
pagerduty/ | |
|_ Dockerfile | |
nginx/ | |
|_ conf/ | |
|_ sites.conf | |
|_ .htpasswd |
// m.prop is a great pattern, but Plain-old JavaScript Objects (POJO) are | |
// much more pleasant to work with. | |
// Here's an example of using POJOs with one- and two-way data binding. | |
// First, the helper methods | |
m.setValue = function (obj, prop) { | |
return m.withAttr('value', function(value) { obj[prop] = value }) | |
} |