- gabrielfalcao/HTTPretty · GitHub - https://github.com/gabrielfalcao/httpretty
- vfaronov/turq · GitHub - https://github.com/vfaronov/turq#readme
- disqus/mockhttp · GitHub - https://github.com/disqus/mockhttp
- bbangert/Dalton · GitHub - https://github.com/bbangert/Dalton
- kadirpekel/hammock · GitHub - https://github.com/kadirpekel/hammock
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" On Windows use '.vim' instead of 'vimfiles' to make sync easier | |
let s:ms_win = (has('win16') || has('win32') || has('win64')) | |
if s:ms_win | |
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after | |
set shell=/bin/sh | |
endif |
import os | |
def get_user_name(): | |
if os.name == 'nt': | |
import ctypes | |
GetUserNameExW = ctypes.windll.secur32.GetUserNameExW | |
name_display = 3 | |
size = ctypes.pointer(ctypes.c_ulong(0)) | |
GetUserNameExW(name_display, None, size) |
# Monkey patch Couchbase Python client in order to work with data stored by .NET couchbase client. | |
# http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-datastore-fields.html | |
# Both Python and .NET couchbase clients using fields in document metadata | |
# for storing type information which does not compatible with each other. | |
def get_patched_couchbase(): | |
from couchbase.constants import MemcachedConstants | |
import struct as original_struct | |
unpack_original = original_struct.unpack |
Install XFCE (desktop environment)
$ sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
$ sudo apt-get update
$ sudo apt-get -f dist-upgrade
$ sudo apt-get install xubuntu-desktop
AngularJS — Superheroic JavaScript MVW Framework - http://angularjs.org/
Ключевое отличие AngularJS от Knockout / Хабрахабр - http://habrahabr.ru/post/165275/
Building Huuuuuge Apps with AngularJS - Brian Ford - http://briantford.com/blog/huuuuuge-angular-apps.html
AngularJS. Developer Guide. Overview - http://docs.angularjs.org/guide/overview
TornadIO2 = Tornado + Socket.IO / Хабрахабр - http://habrahabr.ru/post/133350/
TornadIO2 — TornadIO2 0.1 documentation - http://tornadio2.readthedocs.org/en/latest/
Realtime Web №2 - TornadIO | Кушаем у мистера Джо - http://mrjoes.tumblr.com/post/2963182191/tornadio
Использование Nginx+Tornado для приложений на Django / Мастерская интернет-разработчика - http://adw0rd.com/2009/11/15/nginx-tornado-django/
profile, cProfile, and pstats – Performance analysis of Python programs. - Python Module of the Week - http://www.doughellmann.com/PyMOTW/profile/
Pympler is a development tool to measure, monitor and analyze the memory behavior of Python objects in a running Python application. http://packages.python.org/Pympler/index.html
from jinja2 import evalcontextfilter, escape | |
from markdown import Markdown | |
from bottle import app, route, run, redirect, static_file | |
from bottle import jinja2_template as template | |
""" | |
import bottle | |
from bottle_debugtoolbar import DebugToolbarPlugin | |
config = { | |
'DEBUG_TB_ENABLED': True, |
# -*- coding: utf-8 -*- | |
""" | |
Абстракция (abstraction) - метод решения задачи, при котором объекты разного | |
рода объединяются общим понятием (концепцией), а затем сгруппированные сущности | |
рассматриваются как элементы единой категории. | |
Инкапсуляция (encapsulation) - техника, при которой несущественная с точки | |
зрения интерфейса объекта информация прячется внутри него. | |
Наследование (inheritance) - свойство объектов, посредством которого экземпляры |