start new:
tmux
start new with session name:
tmux new -s myname
"""SQLAlchemy Metadata and Session object""" | |
import datetime | |
import json | |
import time | |
from sqlalchemy import MetaData | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
__all__ = ['Session', 'metadata', 'Model', 'SchemaEncoder'] |
[style] | |
based_on_style=pep8 | |
allow_split_before_dict_value=False | |
join_multiple_lines=False | |
split_before_named_assigns=False |
import os | |
import os.path | |
import fnmatch | |
import logging | |
import ycm_core | |
import re | |
BASE_FLAGS = [ | |
'-Wall', | |
'-Wextra', |
#set -g status off | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @resurrect-capture-pane-contents 'on' | |
#set -g @plugin 'tmux-plugins/tmux-sensible' | |
setw -g mode-keys vi | |
set -g default-terminal "screen-256color" | |
set -sg escape-time 1 | |
set -g status-justify left |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-surround' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'vim-airline/vim-airline' |
from time import sleep | |
from tornado.httpserver import HTTPServer | |
from tornado.ioloop import IOLoop | |
from tornado.web import Application, asynchronous, RequestHandler | |
from multiprocessing.pool import ThreadPool | |
_workers = ThreadPool(10) | |
def run_background(func, callback, args=(), kwds={}): | |
def _callback(result): |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import requests | |
import urllib2 | |
import re | |
import smtplib | |
from email.mime.text import MIMEText | |
class Getpm: | |
def pmnow(self, pmurl): |