Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |
![screenshot][]
In the following we will be using R’s “restarts” feature to implement the state machine that drives generators in languages such as Python. Generators allow lazily generating values on demand: a consumer invokes a generator, and consumes values as they are produced. A new value is only produced once the previous one has been consumed.
| # Dummy object, only required for name resolution. | |
| set = structure(list(), class = 'set') | |
| print.set = function (x, ...) invisible(x) | |
| `[.set` = function (set, expr, filter) { | |
| expr = substitute(expr) | |
| filter = substitute(filter) | |
| stopifnot(identical(expr[[1]], quote(`<-`))) | |
| stopifnot(identical(expr[[2]][[1]], quote(`|`))) |
| function archive_all(testOnly) { | |
| var someMessages, archiveButton; | |
| if (testOnly === "undefined") { testOnly = false; } | |
| someMessages = $("li._k- span.accessible_elem"); | |
| console.log("Found", someMessages.length, "messages to archive in your inbox."); | |
| archiveButton = null; | |
| someMessages.each(function () { |
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } |