A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
>>> b = a = 'foo|bar' | |
>>> b = b.replace('|',' ') | |
>>> b | |
'foo bar' | |
>>> a | |
'foo|bar' | |
>>> |
db_loc = 'sqlite:///%s\\data.sqlite' % store_loc | |
logging.info('db_loc=%s', db_loc) | |
engine = sqlalchemy.create_engine(db_loc, echo=False) | |
sess = scoped_session(sessionmaker(bind=engine)) | |
class Base(object): | |
'''define basic object methods for debugging & initializing.''' | |
def __init__(self, *args, **kwargs): |
class CustomCollection(): | |
def __init__(self): | |
super().__init__() | |
self.items = [] | |
def __setitem__(self, key, value): | |
if key == '_': | |
self.items.append(value) | |
else: | |
self.items.append((key, value)) |
#include <stdio.h> | |
#include <windows.h> | |
#include <wchar.h> | |
#include <initguid.h> | |
#include "pstdint.h" | |
DEFINE_GUID(CLSID_CFormat7z, | |
0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x07, 0x00, 0x00); | |
DEFINE_GUID(IID_IInArchive, |
import sys | |
from PyQt4.QtGui import * | |
import asyncio | |
from quamash import QEventLoop | |
class ClientController: | |
def __init__(self, server = None, loop=None): | |
self.server = server[0] | |
self.port = server[1] | |
self.loop = loop |
FROM ubuntu:latest | |
RUN apt-get update | |
RUN apt-get install -y curl unionfs-fuse git | |
RUN curl -O -# http://inform7.com/download/content/6L38/gnome-inform7_6L38-0ubuntu1_amd64.deb | |
RUN dpkg -i --force-depends gnome-inform7_6L38-0ubuntu1_amd64.deb | |
RUN apt-get -yf install | |
RUN rm gnome-inform7_6L38-0ubuntu1_amd64.deb | |
RUN apt-get remove -y curl |