Skip to content

Instantly share code, notes, and snippets.

View alesanchezr's full-sized avatar
🎩
Teaching and Coding

Alejandro Sanchez alesanchezr

🎩
Teaching and Coding
View GitHub Profile
@alesanchezr
alesanchezr / QuickBooks_Authentication_using_Flask.py
Last active September 4, 2020 18:05
QuickBooks Authentication using Flask
import os, urllib, requests, base64
from intuitlib.client import AuthClient
from intuitlib.enums import Scopes
from flask import Flask, request, jsonify, url_for, redirect
from models import db, User
from utils import APIException
from flask_jwt_simple import (
JWTManager, jwt_required, create_jwt, get_jwt_identity, decode_jwt
@alesanchezr
alesanchezr / Copyright for BreatheCode
Created August 31, 2018 20:03
Footer on every breathecode Readme File
@alesanchezr
alesanchezr / installing_django.md
Created November 10, 2017 20:26 — forked from prodeveloper/installing_django.md
Installing Django on Cloud 9

In today's lesson we are going to look at installing django to cloud9.

Django is a web framework that will enable us to quickly write and deploy our web apps.

It's homepage defines it as:

    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel.

Typically installations can be a bit painful involving setting up django and python involves a series of steps. Specifically

@alesanchezr
alesanchezr / Install PHP7 on Cloud9
Created September 29, 2017 21:52
Bash steps to install PHP7 in Cloud9
You can use phpbrew on Cloud9. I found that the standard installation process works fine, just run the commands below.
We first install the libmcrypt-dev package to avoid running into dependency issues during build:
$ sudo apt-get update
$ sudo apt-get install libmcrypt-dev
Next, we download phpbrew and move it to /usr/local/bin:
$ curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew
$ chmod +x phpbrew
@alesanchezr
alesanchezr / Composer.json for WordPress developments
Created September 29, 2017 15:29
Composer.json template for WordPress Developments
{
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"require": {
"wpackagist-plugin/akismet": "3.1.1",
"wpackagist-plugin/w3-total-cache": "*",