Skip to content

Instantly share code, notes, and snippets.

View simandebvu's full-sized avatar
🖥️
Open to opportunities

Shingirayi Innocent Mandebvu simandebvu

🖥️
Open to opportunities
View GitHub Profile

100 Days Of ML Code - Shingirayi Innocent Mandebvu

My daily log of the ML 100 Day Challenge

Day 0: July 17, 2018 Google

Today's Progress: Definitions, Linear Progression, Classifications, Features, Labels, Models

Thoughts: I saw the flow from the terms and how they link to show the line of best fit with the aspect of Bias and Weight of a prediction

$ mkvirtualenv --python=/usr/bin/python3.4 mysite-virtualenv
(mysite-virtualenv)$ pip install django
# or, if you have a requirements.txt:
(mysite-virtualenv)$ pip install -r requirements.txt
#add anythng else
#to open a virtual environment, you do 'workon mysite'
$ git clone https://github.com/myusername/myproject.git
from pyrebase_settings import db, auth
from django.shortcuts import render
#just some demo methods so you get a feel of the whole thing.
def get_users(request):
users = db.child("users").get()
return render(request, 'users.html', {'users': users.val()})
def signup(request):
@simandebvu
simandebvu / pyrebase_settings.py
Created November 10, 2017 08:10
Pyrebase config file for django
import pyrebase
config = {
"apiKey": "my_api_key_is_here",
"authDomain": "my_auth_domain_is_here",
"databaseURL": "my_firebase_database_url_is_here",
"projectId": "my_firebase_project_id_is_here",
"storageBucket": "my_firebase_storageBucket_is_here",
"serviceAccount": "my_serviceAccount.json_file_path_is_here",
"messagingSenderId": "messagingSenderId_is_here"
@simandebvu
simandebvu / firebase2.html
Last active November 10, 2017 07:57
Part two of firebase web setup
<!-- This has to be first -->
<script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-app.js"></script>
<!-- Add these now-->
<script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-auth.js"></script><!-- Authentication-->
<script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-database.js"></script><!-- Cloud Storage -->
<script src="https://www.gstatic.com/firebasejs/4.6.1/firebase-firestore.js"></script> <!-- Cloud Firestore-->
<script>
var config = {
// ...
wget https://pypi.python.org/packages/2d/f7/02abdb61deaf8135e463b7081d053e952cae3672f3f09d75ca26f4c824c9/setuptools-19.2.tar.gz#md5=78353b1f80375ca5e088f4b4627ffe03
tar -xvzf setuptools-19.2.tar.gz
cd setuptools-19.2
python3.6 setup.py install
cd
#nowForPip
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9
tar -xvzf pip-9.0.1.tar.gz
cd pip-9.0.1
python3.6 setup.py install
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
tar -xvzf Python-3.6.1.tgz
cd Python-3.6.1
./configure --prefix=/home/mysite/python --enable-unicode=ucs4
make
make install
#setTheEnviromentVariableNow
export PATH=$PATH:/home/mysite/python/bin
export
mkdir python