This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../paper-input/paper-input.html"> | |
<polymer-element name="search-form"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Real-time log files watcher supporting log rotation. | |
Works with Python >= 2.6 and >= 3.2, on both POSIX and Windows. | |
Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com> | |
License: MIT | |
http://code.activestate.com/recipes/577968-log-watcher-tail-f-log/ | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from collections import OrderedDict | |
from tastypie.serializers import Serializer | |
from tastypie import fields | |
from tastypie.resources import Resource | |
from django.core.serializers.json import DjangoJSONEncoder | |
class OrderedSerializer(Serializer): | |
def to_json(self, data, options=None): | |
options = options or {} |