Given a set of documents, each associated with multiple tags, how can I retrieve the documents tagged with an arbitrary set of tags?
My solution
| <html> | |
| <head> | |
| <title>Checkbox</title> | |
| <style> | |
| input[type=checkbox] { | |
| display:none; | |
| } | |
| input[type=checkbox] + label | |
| { |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| import ctypes | |
| import datetime | |
| import logging | |
| import os | |
| import re | |
| import shutil | |
| import subprocess |
A database where you PUT/POST documents to trigger replications and you DELETE to cancel ongoing replications. These documents have exactly the same content as the JSON objects we used to POST to /_replicate/ (fields "source", "target", "create_target", "continuous", "doc_ids", "filter", "query_params".
Replication documents can have a user defined "_id". Design documents (and _local documents) added to the replicator database are ignored.
The default name of this database is _replicator. The name can be changed in the .ini configuration, section [replicator], parameter db.
| ffmpeg -i out.ogv -s 160x128 -pix_fmt rgb24 -ss 62.6 -t 3 -r 5 -loop 0 -f gif out.gif | |
| convert -loop 0 -layers Optimize out.gif outopt.gif |
| # Template: A.html | |
| <html> | |
| <head></head> | |
| <body> | |
| {% block hello %} | |
| HELLO | |
| {% endblock %} | |
| </body> | |
| </html> |
| // Mixins -------------------------------------------------------------- | |
| =keyframes($name) | |
| @-moz-keyframes #{$name} | |
| @children | |
| @-webkit-keyframes #{$name} | |
| @children | |
| @keyframes #{$name} | |
| @chldren |
| // CSS3 Extended color keywords (http://www.w3.org/TR/2010/PR-css3-color-20101028) | |
| $aliceblue : #F0F8FF; | |
| $antiquewhite : #FAEBD7; | |
| $aqua : #00FFFF; | |
| $aquamarine : #7FFFD4; | |
| $azure : #F0FFFF; | |
| $beige : #F5F5DC; | |
| $bisque : #FFE4C4; | |
| $black : #000000; |
| .axle_tooltip { | |
| width: 200px; | |
| height: auto; | |
| padding: 10px 40px 20px 20px; | |
| background: rgba(28, 29, 31, 0.6); | |
| background: -moz-linear-gradient(top, rgba(28, 29, 31, 0.6) 0%, #1c1d1f 100%); | |
| background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(28, 29, 31, 0.6)), color-stop(100%, #1c1d1f)); | |
| background: -webkit-linear-gradient(top, rgba(28, 29, 31, 0.6) 0%, #1c1d1f 100%); | |
| background-image: -o-linear-gradient(top, rgba(28, 29, 31, 0.6) 0%, #1c1d1f 100%); | |
| border: 2px solid white; |
| require 'rubygems' | |
| require 'yaml' | |
| # A demonstration of YAML anchors, references and handling of nested values | |
| # For more info, see: | |
| # http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
| stooges = YAML::load( File.read('stooges.yml') ) | |
| # => { | |
| # "default" => { |