Skip to content

Instantly share code, notes, and snippets.

View sachi-d's full-sized avatar

Sachithra Dangalla sachi-d

View GitHub Profile
{
"request_parameter_supported": true,
"request_uri_parameter_supported": false,
"claims_parameter_supported": true,
"scopes_supported": ["openid", "accounts", "payments"],
"check_session_iframe": "https://10.100.8.13:9446/oidc/checksession",
"issuer": "https://10.100.8.13:8243/token",
"authorization_endpoint": "https://10.100.8.13:8243/authorize",
"claims_supported": ["zoneinfo", "picture", "postal_code", "street_address", "website", "groups", "address", "phone_number", "birthdate", "country", "preferred_username", "middle_name", "formatted", "updated_at", "email", "upn", "sub", "nickname", "given_name", "locality", "gender", "region", "family_name", "email_verified", "name", "profile", "locale", "phone_number_verified", "iss", "openbanking_intent_id"],
"userinfo_signing_alg_values_supported": ["RS256"],
package exchangerate;
import java.util.HashMap;
/**
*
* @author sachithra
*/
public class CurrencyCalculator {
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Data Mapper tooling</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.6/d3.js"></script>
<style>
.container{
border:1px solid #c9c9c9;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>D3 mapper</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
.canvas{
border:1px solid black;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>D3 drawing and dragging</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
.canvas{
border:1px solid black;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>D3 simple bar chart</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple mapping tool</title>
<script src="assets/lib/jQuery/jquery-3.1.0.js"></script>
<script src="assets/lib/jquery-ui-1.12.0.custom/jquery-ui.js"></script>
<script src="assets/lib/jsPlumb/jsPlumb-2.1.5.js"></script>
<style>
h1 {
@sachi-d
sachi-d / fileHandler.js
Created August 18, 2016 08:49
JavaScript file open demo
(function () {
// display file information
function appendToResult(msg, result) {
var m = document.getElementById(result);
m.innerHTML = m.innerHTML + msg;
}
// get file information
function parseFile(file, resultpane) {
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="POST">
<input type="hidden" name="business" value="bookportal@bookportal.lk"><!--Your business account details-->
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="Item name"><!--Buying item name-->
<input type="hidden" name="amount" value="item value"><!--Buying item value-->
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="http://localhost:8080/BookPortal/site/payment/paypalsuccess.jsp"><!--Where to return to after successful transaction-->
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cancel_return" value="http://localhost:8080/BookPortal/site/payment/paypalcancel.jsp"> <!--Where to return to after cancelling a transaction-->
<input type="image" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_