Skip to content

Instantly share code, notes, and snippets.

View dzinampini's full-sized avatar

Dzinaishe Mpini dzinampini

View GitHub Profile
@dzinampini
dzinampini / invoice.js
Created July 28, 2020 10:28 — forked from maxkostinevich/invoice.js
PDFMake.js - Invoice Markup
// Invoice markup
// Author: Max Kostinevich
// BETA (no styles)
// http://pdfmake.org/playground.html
// playground requires you to assign document definition to a variable called dd
// CodeSandbox Example: https://codesandbox.io/s/pdfmake-invoice-oj81y
var dd = {
@dzinampini
dzinampini / GitConfigHttpProxy.md
Created December 3, 2019 08:38 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@dzinampini
dzinampini / gist:f8aa018b0ab73857009d2df810571c46
Created November 4, 2019 06:25
Getting the Python path and setting variable path
open the Python CMD
>>import os
>>import sys
>>os.path.dirname(sys.executable)
and it will show you the path
@dzinampini
dzinampini / gist:a7f641422005e1074ef2af9c427d0983
Created October 15, 2019 07:56
Install flask project requirements/dependencies
cd to your projetc folder
run the following command
pipenv install -r requirements.txt
Run Windows Power Shell as Administrator
Run the following command in Power Shell
pip install pipenv
This works if python Env variable is already set
@dzinampini
dzinampini / gist:3d6093a1c92547a08df5087155d76433
Created October 14, 2019 14:54
Python installed but seems not installed - variable paths issue
From the desktop, right-click My Computer and click Properties.
In the System Properties window, click on the Advanced tab.
In the Advanced section, click the Environment Variables button.
Highlight the Path variable in the Systems Variable section and click the Edit button. If its not there create it
Then add these to the Path
C:\Users\ICT\AppData\Local\Programs\Python\Python37;C:\Users\ICT\AppData\Local\Programs\Python\Python37\Scripts
@dzinampini
dzinampini / gist:22dfc9fc39b607cba6a79863326c9e20
Created September 27, 2019 07:35
Setting proxy settings for ionic
ionic config set -g proxy http://proxy.example.com:8888
@dzinampini
dzinampini / gist:a50352916b34a44035653a1526fdbc25
Created September 25, 2019 14:29
Ionic Common Error - Cannot find module '@ionic-native/camera
ionic cordova plugin add cordova-plugin-camera
npm install @ionic-native/camera
@dzinampini
dzinampini / gist:5b4edd60a473c18c04c20895ecdbebf9
Created September 25, 2019 14:27
Ionic Cordova Common Error - Unhandled error. (The platform "android" does not appear to be a valid cordova platform. It is missing API.js. android not supported.)
cordova platform add android
@dzinampini
dzinampini / gist:d18dc59ac78b5a57a5c9f9db8cc61901
Created September 25, 2019 14:24
gradle build failing behind proxy
in project-folder/platform/android/gradle.properties
systemProp.http.proxyHost=192.168.1.3 //where this is the proxy
systemProp.http.proxyPort=8080 //and this is the port
systemProp.https.proxyHost=192.168.1.3
systemProp.https.proxyPort=8080