without placeholder attribute and focus selector to support IE 7-9
A Pen by Oliver Knoblich on CodePen.
def main(): | |
""" | |
THis is an exmaple | |
""" | |
print 'Hello %s' % "123" |
fields = [ | |
"_id", "key", "content.name", "content.brand", "content.season", | |
"content.description", "content.status", "content.category" | |
] | |
typeFilter = TermFilter("type", "product") | |
deleteFilter = TermFilter("deleted", False) | |
f = ANDFilter([typeFilter, deleteFilter]) | |
query = FilteredQuery(MatchAllQuery(), f) | |
search = Search(query, start=paging['skip'], size=paging['take'], | |
fields=fields) |
{ | |
"product": { | |
"_type": {"store": "yes"}, | |
"_source": {"compress": true}, | |
"index_analyzer": "standard", | |
"search_analyzer": "standard", | |
"dynamic_date_formats": ["date_time_no_millis", "date_optional_time"], | |
"properties": { | |
"_id": {"type": "string", "index": "not_analyzed"}, | |
"key": {"type": "string"}, |
" Git rebase helper for: | |
" git rebase --interactive | |
" | |
" L - view commit log | |
" p - pick | |
" e - edit | |
" s - squash | |
" r - reword | |
" D - delete | |
" |
class A(object): | |
# Dictionary | |
extra_content = None | |
def get_context_data(self, **kwargs): | |
kwargs.update(extra_content) | |
return kwargs | |
class B(A): |
jitsu deploy | |
info: Welcome to Nodejitsu zhenghao1 | |
info: jitsu v0.12.11, node v0.10.12 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in node app | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/huang/Development/NodeJS/test/package.json | |
data: |
from zope.interface import Interface, Attribute, implements | |
from zope.component import getGlobalSiteManager, adapts | |
# here is what our data looks like | |
class IKey(Interface): | |
pass | |
class IEntity(Interface): |
import os | |
import multiprocessing | |
from setuptools import setup, find_packages | |
here = os.path.abspath(os.path.dirname(__file__)) | |
try: | |
with open(os.path.join(here, 'README.txt')) as f: | |
README = f.read() | |
with open(os.path.join(here, 'CHANGES.txt')) as f: |
#-*- coding: utf-8 -*- | |
import unittest | |
import redis | |
from apps.mylib.client import Redis | |
from nose.tools import * | |
class RedisTestCase(unittest.TestCase): |
without placeholder attribute and focus selector to support IE 7-9
A Pen by Oliver Knoblich on CodePen.