Skip to content

Instantly share code, notes, and snippets.

@spiner2000
spiner2000 / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../paper-input/paper-input.html">
<polymer-element name="search-form">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
#!/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/
"""
@spiner2000
spiner2000 / TastypieFieldsOrder.py
Last active August 29, 2015 13:57
Tastypie fields order
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 {}