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
yarn install v1.21.0 | |
$ node tools/preinstall.js | |
[1/4] Resolving packages... | |
[2/4] Fetching packages... | |
info [email protected]: The platform "linux" is incompatible with this module. | |
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info [email protected]: The platform "linux" is incompatible with this module. | |
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. | |
[3/4] Linking dependencies... | |
[4/4] Building fresh packages... |
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
authHandler :: Manager -> AuthHandler Request User | |
authHandler manager = mkAuthHandler handler | |
where | |
throw401 msg = | |
throwError $ err401 {errBody = "Unauthorized:" <> msg <> " ."} | |
handler req = | |
either | |
throw401 | |
(getRevvUser manager) | |
(lookupAccessToken $ queryString req) |
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
eFSA :: (String, String, Int, Int) -> (String, String, Int, Int) | |
eFSA (source, lexeme, col, line) | |
| nextChar == 'e' || nextChar == 'E' && isDigit secondChar | |
= eFSA (tail source, nextChar : lexeme, col + 1, line) | |
| isDigit nextChar | |
= eFSA (tail source, nextChar : lexeme, col + 1, line) | |
| otherwise (source, lexeme, col, line) | |
where | |
nextChar = head source | |
secondChar = snd source |
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
<!DOCTYPE html> | |
<html lang="en" xmlns:fb="http://ogp.me/ns/fb#"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=0.55"> | |
<title>Payment Processing</title> | |
<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" /> |
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
{% extends "base_site.html" %} | |
{% block title %}Payment Processing{% endblock %} | |
{% block js %} | |
<script type="text/javascript" src="https://js.balancedpayments.com/v1/balanced.js"/> | |
<script type="text/javascript"> | |
var marketplaceUri = '/v1/marketplaces/TEST-MP2CSIcjO337fwEoqBrlvB5I'; |