Skip to content

Instantly share code, notes, and snippets.

View VaughnDV's full-sized avatar

Vaughn de Villiers VaughnDV

View GitHub Profile

Keybase proof

I hereby claim:

  • I am vaughndv on github.
  • I am vaughndv (https://keybase.io/vaughndv) on keybase.
  • I have a public key ASDoM9ra1BFWtb9kTrDgMNs8bD8R4xD1sORdqw7iscMzFQo

To claim this, I am signing this object:

@VaughnDV
VaughnDV / sh
Created February 7, 2019 21:47
flask restplus server example setup
#!/bin/bash
read -r -p 'Name of flask-restplus-server-example >>> ' var
printf '%q\n' "$var"
mkdir ""$var
cd "$var"
git clone https://github.com/frol/flask-restplus-server-example.git
python -m venv venv
source venv/bin/activate
mv flask-restplus-server-example/* .
@VaughnDV
VaughnDV / password_generator.py
Created May 19, 2017 13:45
Generates a random password UPPERCASE no digits for the given length
from random import choice
from string import ascii_uppercase
import sys
# Generates a random password UPPERCASE no digits for the given length
# Example use:
# python password_genterator.py 12
@VaughnDV
VaughnDV / pipe_diameter_calculator.py
Created May 19, 2017 13:38
Calculates minimum pipe diameter for user given flow rate
# Calculates minimum pipe diameter for user given flow rate
import math
quantity = float(input("Enter Cubic Meter /hr:"))
velocity = float(input("Enter Velocity in Meters/sec: \n" \
"** eg: Air 20m/sec or" \
"Water 1.5m/sec :"))
import sys
# Print Lables or Banners one word at a time that can be cut and pasted into python code
# Can be read from the sublime text editor miniature side view
# example use: python.printer.py BANNER
def printer(string):
@VaughnDV
VaughnDV / printer.py
Created May 19, 2017 13:32
Print labels that can be read from the sublime text editor miniature side view
import sys
# Print Lables or Banners one word at a time that can be cut and pasted into python code
# Can be read from the sublime text editor miniature side view
# example use: python.printer.py BANNER
def printer(string):
@VaughnDV
VaughnDV / image_fetcher.py
Created May 19, 2017 13:24
Simple image retriever from known urls
#################################
#
# Simple image retriever from known urls
# Pyhton 3
#
###################################
import urllib.request
pics1 = ['IMG_1218.jpg',