Skip to content

Instantly share code, notes, and snippets.

angular.module('myModule')
.directive('resizeImg', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var width = element.parent().width();
var maxHeight = attrs.height;
var newHeight, newWidth;
activate-venv() {
source ~/.virtualenvs/$1/bin/activate
}

#Python Cheat Sheet

Basics

This is a short list of different packages to install to enhace your production in Python

pip

pip is a tool for installing and managing Python packages

Debian System Administration - Useful commands

TAR

Compress

tar -pczf [file_name].tar.gz [folder_or_file_name]

Uncompress

Git

Remote

Get informations about the remote

git remote show origin

Tags

List local tags

MySQL

Databases

Tables

Create

Create ... Select