I just spent a lot of time finally understanding CouchDB's changes feed, so I thought I'd do a short writeup here.
Let's imagine the following changes to the database. There are two documents, A and B:
_id | seq | rev | winner? |
---|
user www-data; | |
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; |
Service Worker - offline support for the web
Progressive apps - high-res icon, splash screen, no URL bar, etc.
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
/* | |
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
* | |
* Usage: | |
* $ casperjs screenshots.js http://example.com | |
*/ | |
var casper = require("casper").create(); |
// Credit to damien_oconnell from http://forum.unity3d.com/threads/39513-Click-drag-camera-movement | |
// for using the mouse displacement for calculating the amount of camera movement and panning code. | |
using UnityEngine; | |
using System.Collections; | |
public class MoveCamera : MonoBehaviour | |
{ | |
// | |
// VARIABLES |
{ | |
"type": "MultiPolygon", | |
"coordinates": | |
[ | |
[ | |
[ | |
[ -123.123779, 48.227039 ], // contig. u.s. | |
[ -123.318787, 49.000042 ], | |
[ -121.742592, 49.000267 ], | |
[ -95.157394, 49.000493 ], |
#!/bin/bash | |
curl -X POST -d @- $1 --header "Content-Type:application/json" |
""" | |
This fabric file makes setting up and deploying a django application much | |
easier, but it does make a few assumptions. Namely that you're using Git, | |
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have | |
Django installed on your local machine and SSH installed on both the local | |
machine and any servers you want to deploy to. | |
_note that I've used the name project_name throughout this example. Replace | |
this with whatever your project is called._ |