For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
// getComponent is a function that returns a promise for a component | |
// It will not be called until the first mount | |
function asyncComponent(getComponent) { | |
return class AsyncComponent extends React.Component { | |
static Component = null; | |
state = { Component: AsyncComponent.Component }; | |
componentWillMount() { | |
if (!this.state.Component) { | |
getComponent().then(Component => { |
var portfolioMaster = db.getCollection('RAW_CORE_PROJECT').aggregate([ | |
{ $group: { | |
_id: { | |
ProgramID: "$PROGRAM_ID", | |
Portfolio: "$PORTFOLIO_NAME", | |
} | |
} }, | |
{ $project: { | |
ProgramID: "$_id.ProgramID", | |
Portfolio: "$_id.Portfolio", |
package main | |
import "fmt" | |
func main() { | |
total := calculate(100) | |
fmt.Println("total", total) // should be 171700 | |
} | |
func calculate(x int) int { |
func Encrypt(text string) (string, error) { | |
plaintext := []byte(text) | |
key := []byte("*eaciit-standard-chartered-apps*") | |
c, err := aes.NewCipher(key) | |
if err != nil { | |
return "", err | |
} |
import Foundation | |
class Draw: NSObject, NSCoding { | |
var id: String = "" | |
var name: String = "" | |
var at: Date = Date() | |
override init() { |
filter.html | |
<input id="country" /> | |
<input id="region" /> | |
function initFilter(parentSelector, modelHolder) { | |
$(parentSelector + '#country').kendoDropDownList({ | |
value: modelHolder.country | |
}) | |
$(parentSelector + '#region').kendoDropDownList({ |
[{ | |
"_id" : "17004427|17004427|A07090<-xx>", | |
"ProgramId" : "17004427", | |
"ProgramName" : "ATM Replacement", | |
"ProjectId" : "17004427", | |
"ProjectName" : "ATM Replacement", | |
"TaskId" : "A07090<-xx>", | |
"TaskName" : "System Integration Test (SIT) signed-off", | |
"GoLiveDate" : ISODate("2017-07-06T00:00:00.000Z"), | |
"TaskActualDate" : ISODate("2017-07-06T00:00:00.000Z"), |
yum update
wget https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz tar -xvf go1.7.linux-amd64.tar.gz mv go /usr/local
nano ~/.bashrc