I hereby claim:
- I am jo on github.
- I am tf (https://keybase.io/tf) on keybase.
- I have a public key whose fingerprint is 105E 49AD B0BB 2700 45F6 A242 3F96 EE03 7E73 481C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].
When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |
I think the problem is that the proxy decodes the slashes, it rewrites %2F to / without being asked. One proxy, I donno remember if it was Apache or nginx, could get convinced to stop this url mangling by (!) appending a / to the proxy target.
See http://stackoverflow.com/questions/20496963/avoid-nginx-decoding-query-parameters-on-proxy-pass-equivalent-to-allowencodeds and https://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy
| function(doc) { | |
| function emitObject(path, o) { | |
| if (typeof o !== 'object') { | |
| return emit(path, o); | |
| } | |
| for (var key in o) { | |
| emitObject(path.concat(key), o[key]) | |
| } | |
| } |
| class Domain < ActiveRecord::Base | |
| validates :name, :presence => true, :uniqueness => true | |
| validates :routable, :presence => true | |
| belongs_to :routable, :polymorphic => true | |
| end |
| <!doctype html> | |
| <html lang=en> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Backbone Event Delegation Tests</title> | |
| <script src="http://documentcloud.github.com/backbone/test/vendor/jquery-1.4.2.js"></script> | |
| <script> | |
| $(function() { | |
| var main = $('#main'), | |
| el = $('<p>Welcome <a href="#">Please click me</a></p>'); |
| <!doctype html> | |
| <html lang=en> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Backbone Event Delegation Tests</title> | |
| <script src="http://documentcloud.github.com/backbone/test/vendor/jquery-1.4.2.js"></script> | |
| <script src="http://documentcloud.github.com/backbone/test/vendor/underscore-1.1.3.js"></script> | |
| <script src="http://documentcloud.github.com/backbone/backbone.js"></script> | |
| <script> | |
| $(function() { |
| var oldSet = Backbone.Model.prototype.set; | |
| _.extend(Backbone.Model.prototype, { | |
| set: function(attrs, options) { | |
| if ('_id' in attrs) this.id = attrs._id; | |
| oldSet.apply(this, [attrs, options]); | |
| return this; | |
| } | |
| }); |
| { | |
| "_id": "_design/myapp", | |
| "rewrites": <%= read 'rewrites.json' %>, | |
| "updates": { | |
| "nash": <%=h read 'updates/entry.js' %> | |
| }, | |
| "validate_doc_update": <%=h read 'validate.js' %>, | |
| "views": { | |
| "nashs": { | |
| "map": <%=h read 'couchdb-views/entries/map.js' %> |