Skip to content

Instantly share code, notes, and snippets.

@jianhuabi
jianhuabi / pcf-demo-script
Created October 12, 2021 08:10
A pcf demo script to list features of pivtoal pcf
## 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
@jianhuabi
jianhuabi / maven-cheatsheet.md
Created September 12, 2021 07:01 — forked from michaellihs/maven-cheatsheet.md
Maven Cheatsheet
# 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
# 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
# 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.
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):
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)
class Variable():
"""
This variable is a changeable parameter of the Graph.
"""
def __init__(self, initial_value = None):
self.value = initial_value
self.output_nodes = []