- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
var mobileCheck = { | |
ios: (function(){ | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i); | |
}()), | |
android: (function(){ | |
return navigator.userAgent.match(/Android/i); | |
}()), | |
blackBerry: (function(){ | |
return navigator.userAgent.match(/BB10|Tablet|Mobile/i); | |
}()), |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
#!/usr/bin/env python | |
""" | |
Author: Vivek Ramachandran | |
Website: http://SecurityTube.net | |
Online Infosec Training: http://SecurityTube-Training.com | |
""" | |
import paramiko |
Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
import sys | |
import collections | |
import gridfs | |
import io | |
import psycopg2 | |
import pymongo | |
import random | |
import time | |
# For fairness use the same chunk size - 512k. |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': True, | |
'formatters': { | |
'standard': { | |
'format': "[%(asctime)s] %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s", | |
'datefmt': "%d/%b/%Y %H:%M:%S" | |
}, | |
}, | |
'handlers': { |
class ColorizingStreamHandler(logging.StreamHandler): | |
""" | |
A stream handler which supports colorizing of console streams | |
under Windows, Linux and Mac OS X. | |
:param strm: The stream to colorize - typically ``sys.stdout`` | |
or ``sys.stderr``. | |
""" | |
# color names to indices |
class Field(object): | |
def __init__(self, default=None): | |
self.val = default | |
def __get__(self, obj, objtype): | |
if obj is None: | |
return self.__class__ | |
else: | |
return self.val |
#-*-coding: utf-8 -*- | |
''' | |
This module represents the recommender system for recommending | |
new friends based on 'mutual friends'. | |
''' | |
__author__ = 'Marcel Caraciolo <caraciol@gmail.com>' |
from django.views.generic import ListView | |
from django.views.generic.edit import FormMixin | |
from django.db.models import Q | |
class SearchView(FormMixin, ListView): | |
template_name_suffix = '_search' | |
filter_operator = 'contains' | |
allow_or_operator = False | |
def get_filter_operator(self): |