Skip to content

Instantly share code, notes, and snippets.

View dilab's full-sized avatar

Ding dilab

  • Singapore
View GitHub Profile
@dilab
dilab / gist:36e3097a9ce1041aae334a52f17c25b4
Created August 2, 2017 03:30
Fat controller, fat service and fat entity
## Pros and Cons of fat controller
### Pros
+ Fast dev time, no extra layer
### Cons
+ No reusable code for different interfaces (API, CLI and Controller)
## Pros and Cons of fat service class
@dilab
dilab / gist:6247f5d6520f72ab617434e2e9065fbf
Created April 13, 2021 03:55
Github current issue titles
var issues = $$('.markdown-title');
var content = "";
for (i in issues) {
content = content + "+ User: fix - " +issues[i].text + "\n";
}
window.prompt ("Copy to clipboard: Ctrl+C, Enter", content);