Skip to content

Instantly share code, notes, and snippets.

View Ken-Sarowiwa's full-sized avatar
🏠
Working from home

ken sarowiwa Ken-Sarowiwa

🏠
Working from home
View GitHub Profile
@maddrum
maddrum / README.md
Last active September 25, 2022 19:29
Connect PayPal v2 checkout with Django and handle payment statuses

This GIST will help you implement PayPal v2 API with your Django app and handle payment statuses. I will use: Class-Based FormView and Django template system. To proceed you have to obtain valid PAYPAL_CLIENT_ID, PAYPAL_CLIENT_SECRET /have PayPal business account - production or sandbox/

Steps to complete:

  1. Get PayPal SDK - pip install paypal-checkout-serversdk

  2. Create a FormView with the payment data - amount, currency, description and cliend_id

How to install dlib v19.9 or newer (w/ python bindings) from github on macOS and Ubuntu

Pre-reqs:

  • Have Python 3 installed. On macOS, this could be installed from homebrew or even via standard Python 3.6 downloaded installer from https://www.python.org/download. On Linux, just use your package manager.
  • On macOS:
    • Install XCode from the Mac App Store (or install the XCode command line utils).
    • Have homebrew installed
  • On Linux:
@shohan4556
shohan4556 / java Bank Account Management Project.
Last active August 29, 2022 19:21
java Bank Account Management Project.
package bankmanagment;
import java.util.*;
/**
*
* @author Shohan
* Bank Account Class
* // Main ClassName -- "Main"
*/