Skip to content

Instantly share code, notes, and snippets.

View pubudu91's full-sized avatar

Pubudu Fernando pubudu91

View GitHub Profile
<remoteInstance url="https://governance.cluster.wso2.com:9443/registry">
<id>instanceid</id>
<dbConfig>wso2registry_mount</dbConfig>
<readOnly>false</readOnly>
<enableCache>true</enableCache>
<registryRoot>/</registryRoot>
<cacheId>regadmin@jdbc:mysql://carbondb.mysql-wso2.com:3306/governancedb</cacheId>
</remoteInstance>
<SSOIdentityProviderConfig>
<TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
<ServiceProviders>
<ServiceProvider>
<Issuer>store</Issuer>
<AssertionConsumerService>https://store.wso2.com/store/acs</AssertionConsumerService>
<SignResponse>true</SignResponse>
<CustomLoginPage>/store/login.jag</CustomLoginPage>
</ServiceProvider>
<ServiceProvider>
<SSOIdentityProviderConfig>
<TenantRegistrationPage>https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp</TenantRegistrationPage>
<ServiceProviders>
<ServiceProvider>
<Issuer>store</Issuer>
<AssertionConsumerService>https://localhost:9443/store/acs</AssertionConsumerService>
<SignResponse>true</SignResponse>
<CustomLoginPage>/store/login.jag</CustomLoginPage>
</ServiceProvider>
<ServiceProvider>
@pubudu91
pubudu91 / greg.conf
Last active February 3, 2016 06:35
Nginx configuration file for WSO2 GReg cluster
upstream publisherhttp{
ip_hash;
server <ip-address-publisher1>:9763;
server <ip-address-publisher2>:9763;
}
upstream publisherhttps{
ip_hash;
server <ip-address-publisher1>:9443;
################################################################################
# Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@startuml
#Defining my integration flow
myIntegrationFlow as IntegrationFlow
//This is a sample inbound endpoint
sampleHTTPinbound as InboundEndpoint(protocol("http"),port(8290),context("/sample/request"))
samplePipeline as Pipeline("message_flow_1")
swagger: '2.0'
info:
version: "1.6"
title: "Docker Registry HTTP API"
# Describe your paths here
paths:
# This is a path endpoint.
/v2:
public class Q4 {
public final static int PIZZA_SLICE = 1; // One piece of pizza
public final static int PIZZA_REORDER = 0; // Pizza finished. Signals to reorder
public final static int PIZZA_FINISHED = -1; // Pizza finished
public static void main(String[] args) {
Plate pizzaPlate = new Plate(new Pizza()); // Create a plate to hold the pizza
Runnable[] students = new Runnable[15];
// Runnable implementation for a pizza order
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
for (int k = 0; k < n; k++)
C[i][j] += A[i][k] * B[k][j];
void multiply1D(Matrix1D *A, Matrix1D *B, Matrix1D *C, int n) {
for (int i = 0; i < n; ++i) {
double *Arow = &A->matrix[i * n];
double *Crow = &C->matrix[i * n];
for (int j = 0; j < n; ++j) {
double sum = 0;
for (int k = 0; k < n; ++k)
sum += *(Arow + k) * B->matrix[k * n + j];