#Install ghostscript 9.14.md
Uninstall prior versions of ghostscript to avoid conflicts
sudo apt-get remove ghostscript
Install dependencies
sudo apt-get install liblcms2-2 liblcms2-dev liblcms2-utils
#Install ghostscript 9.14.md
Uninstall prior versions of ghostscript to avoid conflicts
sudo apt-get remove ghostscript
Install dependencies
sudo apt-get install liblcms2-2 liblcms2-dev liblcms2-utils
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
<script type="text/javascript" src="lib/quaderno-stripe.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> |
require 'csv' | |
require 'httparty' | |
require 'byebug' | |
OANDA_URL = 'https://www.oanda.com/rates/api/v1/rates/' | |
OANDA_KEY = ENV['OANDA_API_KEY'] | |
OUTPUT_FILE = './rates.json' | |
year = { | |
month_1: [], | |
month_2: [], |
#! /bin/sh | |
# Reset the database only if the previous branch and the current one have different schemas | |
# Start from the repository root. | |
cd ./$(git rev-parse --show-cdup) | |
if git diff `git rev-parse --abbrev-ref HEAD` @{-1} | grep "ActiveRecord::Schema.define(version: "; then | |
rake db:reset | |
else |
# Search term parser from https://gist.github.com/1477730 | |
# Modified to allow periods (and other non-letter chars) in unquoted field values | |
# and field names. | |
# | |
# Helper class to help parse out more advanced saerch terms | |
# from a form query | |
# | |
# Note: all hash keys are downcased, so ID:10 == {'id' => 10} | |
# you can also access all keys with methods e.g.: terms.id = terms['id'] = 10 | |
# this doesn't work with query as thats reserved for the left-over pieces |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
<script src="https://billing.quaderno.io/billing.js"></script> | |
</head> | |
<body> | |
<a href="#" id="billing1"> Customer 1 </a> | |
<a href="#" id="billing2"> Customer 2 </a> |
Try the demo below with this test card number: 4111 1111 1111 1111
https://codepen.io/xxswingxx/pen/pqEObe
Integration
Quaderno.js is a simple javascript library that allows you to process payments, calculate sales taxes (VAT, GST, etc.) on the fly, and send beautiful tax receipts to your customers.
Errors from Laravel logs:
MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
ERR Error running script (call to f_1af8e79ebe56ad4d7910f2e116e2555983099baf): @user_script:8: @user_script: 8: -MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.
Errors from Redis logs (/var/log/redis/redis-server.log
):
* 1 changes in 900 seconds. Saving...
<!-- Styles --> | |
<style> | |
#chartdiv { | |
width : 100%; | |
height : 500px; | |
} | |
</style> | |
<!-- Resources --> |