This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- | |
hosts: ionic-vagrant | |
name: "Ionic meets vagrant" | |
roles: | |
- martinmicunda.common | |
- martinmicunda.nodejs | |
- martinmicunda.ionic | |
- williamyeh.oracle-java | |
- nickp666.android-sdk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# output to /tmp due to file permissions, but you could write to any file if you're running locally. | |
\copy (SELECT row_to_json(t) FROM (SELECT * FROM partner_stockrecord) t) to /tmp/partner_stockrecord.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wrap file in square brackets and output to new file | |
gawk '{ print "["$0"]" }' inputfile > outputfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Combining ui-router with directives to make beautiful, dynamic, controller-less apps | |
//Taken from here: http://stackoverflow.com/a/32875215/4993527 | |
$stateProvider.state('general', { | |
url: '/general', | |
views: { | |
main: { | |
template: '<general-directive></general-directive>' | |
} | |
} |
NewerOlder