Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- | |
| BBEdit Language Module for CoffeeScript | |
| Put this file in | |
| ~/Library/Application Support/BBEdit/Language Modules | |
| or equivalent. | |
| Based off of the examples shipped in the BBEdit SDK. |
| #To install: | |
| # | |
| #In your git configuration (for instance, .git/config to do it at the project level), add: | |
| # | |
| #[merge "json_merge"] | |
| # name = A custom merge driver for json files | |
| # driver = coffee json_merge.coffee %O %A %B | |
| # recursive = binary | |
| # | |
| #In your project's .gitattributes file, add something like: |
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
| { | |
| "main": { | |
| "index": "function(doc) { if (doc.type == 'UserType(user)') { index('type', 'UserType(user)'); field = 'email'; data = doc[field]; try_index = function(d) { var _ref; if ((_ref = typeof d) === 'string' || _ref === 'number') { return index(field, d); } }; if ((typeof data) === 'object' && data.length) { for (_i = 0, _len = data.length; _i < _len; _i++) { d = data[_i]; try_index(d); } } else { try_index(d); } field = 'password'; data = doc[field]; try_index = function(d) { var _ref; if ((_ref = typeof d) === 'string' || _ref === 'number') { return index(field, d); } }; if ((typeof data) === 'object' && data.length) { for (_i = |
| { | |
| "main": { | |
| "index": "function(doc) { if (doc.type == 'UserType(user)') { index('type', 'UserType(user)'); field = 'email'; data = doc[field]; try_index = function(d) { var _ref; if ((_ref = typeof d) === 'string' || _ref === 'number') { return index(field, d); } }; if ((typeof data) === 'object' && data.length) { for (_i = 0, _len = data.length; _i < _len; _i++) { d = data[_i]; try_index(d); } } else { try_index(d); } field = 'password'; data = doc[field]; try_index = function(d) { var _ref; if ((_ref = typeof d) === 'string' || _ref === 'number') { return index(field, d); } }; if ((typeof data) === 'object' && data.length) { for (_i = |