This file contains 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
{ | |
"userName": "johnnysmith", | |
"request": { | |
"userAttributes": { | |
"email": "exampleuser@example.com", | |
"email_verified": true, | |
"name": "Johnny Smith", | |
"sub": "abcdevfefe-1232132-cofeve" | |
} | |
}, |
This file contains 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
const express = require('express') | |
const bodyParser = require('body-parser') | |
const path = require('path') | |
const app = express() | |
const port = process.env.PORT || 1337 | |
app.use(bodyParser.json()) | |
app.use(bodyParser.urlencoded({ extended: true })) |
This file contains 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
const RpcClient = require('divid-rpc') | |
const config = require('./config') | |
module.exports = app => { | |
const rpc = new RpcClient(config.config) | |
app.get('/blockcount', (req, res) => { | |
rpc.getBlockCount((err, response) => { | |
if (err) { | |
console.error(err) |
This file contains 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
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
ext { | |
minSdkVersion = 21 | |
compileSdkVersion = 28 | |
targetSdkVersion = 28 | |
} | |
repositories { | |
google() |
This file contains 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
let xRotation = 0; | |
let yRotation = 0; | |
let xRotationSpeed, yRotationSpeed; | |
let torusX, torusY, randomDetailX, randomDetailY; | |
let bgColor; | |
function setup() { | |
createCanvas(windowWidth, windowHeight, WEBGL); | |
// Set random background color once |
OlderNewer