- Normal OAuth flow
- Electron app should open in browser:
https://appleid.apple.com/auth/authorize?redirect_uri=https://chaseapp.io/api/v1/public/apple/oauth&client_id=chase.app.service&response_mode=form_post&response_type=code&scope=openid%20email%20name&state=
- Payload received on redirect URL:
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
module.exports.hello = (event, context, callback) => { | |
const response = { | |
statusCode: 200, | |
body: JSON.stringify({ | |
message: 'Hello world from AWS Lambda!' | |
}), | |
} | |
callback(null, response) | |
} |
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
function getMajorType (tape) { | |
if (tape[0] === UINT) return new UInt() | |
if (tape[0] === ARR) return new Arr() | |
// other major types... | |
} | |
// Solution 1. | |
// Here all the major types are one class and states are handled in them, but | |
// some things, such as handling infinite sequences are harder to achieve. |
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 R = require('ramda') | |
const ccompose = (...fs) => { | |
let result | |
return function r (...args) { | |
if (!R.isNil(result)) args = [result, ...args] | |
result = fs.shift()(...args) | |
if (fs.length === 0) return result | |
return r |
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 os = require('os') | |
const path = require('path') | |
const IPFS = require('ipfs') | |
const { createWriteStream } = require('fs') | |
const fileMultihash = process.argv[2] | |
const node = new IPFS(path.join(os.tmpDir() + '/' + new Date().toString())) | |
node.version((err, version) => { |
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 os = require('os') | |
const path = require('path') | |
const IPFS = require('ipfs') | |
const fileMultihash = process.argv[2] | |
const node = new IPFS(path.join(os.tmpDir() + '/' + new Date().toString())) | |
node.version((err, version) => { | |
if (err) return console.error(err) |
- wordpress alapon
- egy alap téma + módosítások
- hírlevél - info@castrumbene.hu
- FB oldal
(Ezek a menüpontok is)
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 { app, BrowserWindow } = require('electron') | |
let win | |
app.on('ready', () => { | |
win = new BrowserWindow({ | |
width: 800, | |
height: 600 | |
}) | |
win.loadURL('https://www.youtube.com') |
NewerOlder