Skip to content

Instantly share code, notes, and snippets.

View Yogendra0Sharma's full-sized avatar
🎯
Focusing

Yogendra Sharma Yogendra0Sharma

🎯
Focusing
View GitHub Profile
@Yogendra0Sharma
Yogendra0Sharma / outline.md
Created January 12, 2017 11:03 — forked from garrypolley/outline.md
Django ORM explanation

Notes on Django ORM

What's the ORM

  • Object Relation Mapper
  • Abstraction Layer to DB
  • Makes DB relate like OOP
  • Learn a lot more from Django-in-depth

What can the ORM do

@Yogendra0Sharma
Yogendra0Sharma / settings.py
Created January 12, 2017 11:04 — forked from kodekracker/settings.py
A file contains settings required to setup mongoengine (http://mongoengine.org/) in Django Project
# import module
import mongoengine
# Django Database settings
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.dummy',
},
}
# MongoEngine Settings
@Yogendra0Sharma
Yogendra0Sharma / async-mailer.py
Created January 12, 2017 11:05 — forked from kodekracker/async-mailer.py
Asynchronous mail sending using Amazon SES
#!/usr/bin/python
# install boto using pip
import types
from threading import Thread
from boto import (
ses,
connect_s3
)
@Yogendra0Sharma
Yogendra0Sharma / install.sh
Created January 12, 2017 11:05 — forked from kodekracker/install.sh
A shell script to install all required applications and dependencies required to setup working environment after fresh install ubuntu .
#!/usr/bin/env bash
# System wide Constants
# Ubuntu Code Name Ex:- trusty for Ubuntu 14.04
CODE_NAME=$(lsb_release -c | awk '{print $2}')
## Install basic libraries required for ubuntu environment
sudo apt-get install libcurl4-openssl-dev libssl-dev -y
sudo apt-get install zsh -y
sudo apt-get install python-software-properties -y
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Yogendra0Sharma
Yogendra0Sharma / intro_to_python.ipynb
Created January 12, 2017 11:30 — forked from jonathanmorgan/intro_to_python.ipynb
Big Data Basics - Intro to Python 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Yogendra0Sharma
Yogendra0Sharma / tools-ipython_jupyter.ipynb
Created January 12, 2017 11:30 — forked from jonathanmorgan/tools-ipython_jupyter.ipynb
Big Data Basics - tools - IPython and Jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Yogendra0Sharma
Yogendra0Sharma / tools-unix_shell_and_commands.ipynb
Created January 12, 2017 11:30 — forked from jonathanmorgan/tools-unix_shell_and_commands.ipynb
Big Data Basics - tools - Unix shell and commands overview
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Yogendra0Sharma
Yogendra0Sharma / Visualization-matplotlib.ipynb
Created January 12, 2017 11:30 — forked from jonathanmorgan/Visualization-matplotlib.ipynb
Visualization in Python using matplotlib
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.