A transfer format that is a valid json but looks a lot like CSV and does not have overhead of sending repetitive parameter names.
{
header: ["id", "username", "first_name", "last_name" ],
data: [
[1, "jsmith", "John", "Smith"],
| /* | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>VirtualDOM Example</title> | |
| </head> | |
| <body> | |
| <div id="output"></div> |
| location.search | |
| .slice(1) | |
| .split('&') | |
| .map(function(part) {return part.split('=')}) | |
| .reduce(function(acc, pair) {acc[pair[0]] = pair[1]; return acc}, {}); |
| var mercury = require("mercury") | |
| var h = mercury.h | |
| var nextTick = require('next-tick') | |
| var cuid = require('cuid') | |
| var events = { | |
| addItem: mercury.input() | |
| }; | |
| var state = mercury.struct({ |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
| curl -u <username> \ | |
| -d '{"scopes":["public_repo"],"note":"CI: demosite"}' \ | |
| https://api.github.com/authorizations | |
| # See https://developer.github.com/v3/oauth/ for help on post data json |
| var __extends = function (child, parent) { | |
| for (var p in parent) { | |
| if (Object.prototype.hasOwnProperty.call(parent, p)) { | |
| child[p] = parent[p]; | |
| } | |
| } | |
| function __() { | |
| this.constructor = child; | |
| } |
| var key_value = [ | |
| "paam_1=value_1", | |
| "paam_2=value_2", | |
| "paam_3=value_3", | |
| "paam_4=value_4", | |
| ] | |
| url.indexOf("?") == -1 ? "?" : "&") + key_value.join("&"); |
| function parse_git_branch () { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| BLUE="\[\033[0;36m\]" | |
| DARK_BLUE="\[\033[1;34m\]" | |
| RED="\[\033[0;31m\]" | |
| DARK_RED="\[\033[1;31m\]" | |
| YELLOW="\[\033[0;33m\]" |