Skip to content

Instantly share code, notes, and snippets.

@skeet70
skeet70 / gist:3490374
Created August 27, 2012 16:59
Balanced payment form
{% 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';
@skeet70
skeet70 / gist:3490610
Created August 27, 2012 17:27
Rendered balance form html
<!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" />
@skeet70
skeet70 / eFSA.hs
Created January 25, 2013 06:19
eFSA
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
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)
yarn install v1.21.0
$ node tools/preinstall.js
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.7: The platform "linux" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...