My collection of useful hints and snippets for Apache Maven.
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
| ## 0, pcf login | |
| cf login --sso -a api.run.pcfone.io | |
| cd /Users/mbi/workspaces/toolssuite/pcf/pcf-crash-course-with-spring-boot/ | |
| ## 1, Deploy a legancy web app with mysql for dev environment. | |
| cd 02-todo-web-application-h2 |
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
| # 1. Install TBS on digitalocean k8s cluster | |
| # 1.1 Go to below folder | |
| /Users/mbi/workspaces/toolssuite/tbs | |
| run ``` kp-install.sh ``` | |
| # 2. Create a tbs image resource to refer to my github springpetclinic repo |
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
| # 1, access VMware Accelerators | |
| http://52.86.184.222/dashboard/#/ | |
| # 2, select Spring Boot TODO service | |
| Configuration: Spring Boot on Kubernetes using Skaffold | |
| # 3, GO OT below folder |
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
| # 0. Env introduction | |
| ```bash | |
| kn revision list | |
| kn service list | |
| kubectl get pod -A | |
| ``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| def traverse_postorder(operation): | |
| """ | |
| PostOrder Traversal of Nodes. Basically makes sure computations are done in | |
| the correct order (Ax first , then Ax + b). Feel free to copy and paste this code. | |
| It is not super important for understanding the basic fundamentals of deep learning. | |
| """ | |
| nodes_postorder = [] | |
| def recurse(node): | |
| if isinstance(node, Operation): |
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
| class Session: | |
| def run(self, operation, feed_dict = {}): | |
| """ | |
| operation: The operation to compute | |
| feed_dict: Dictionary mapping placeholders to input values (the data) | |
| """ | |
| # Puts nodes in correct order | |
| nodes_postorder = traverse_postorder(operation) |
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
| class Variable(): | |
| """ | |
| This variable is a changeable parameter of the Graph. | |
| """ | |
| def __init__(self, initial_value = None): | |
| self.value = initial_value | |
| self.output_nodes = [] | |
NewerOlder