Skip to content

Instantly share code, notes, and snippets.

View diorahman's full-sized avatar

Dhi Aurrahman diorahman

  • Cokelatia
  • Bandung
View GitHub Profile

Minimum Viable Async with Node 6

With the release of Node 6.0.0, the surface of code that needs transpilation to use ES6 features has been reduced very dramatically.

This is what my current workflow looks like to set up a minimalistic and fast microservice using micro and async + await.

The promise

@diorahman
diorahman / AppList.vala
Last active September 2, 2015 16:46 — forked from voldyman/AppList.vala
This program can be used to list all the desktop files that are detected when using a specific menu file.
/* Author: Akshay Shekher
*
* build: valac --pkg gio-unix-2.0 --pkg libgnome-menu-3.0 -X -DGMENU_I_KNOW_THIS_IS_UNSTABLE applist.vala
* run: ./applist gnome-applications.menu
* or ./applist pantheon-applications.menu
*/
int main(string[] args) {
if (args.length < 2) {
print ("Please specify the file to load\n");