Skip to content

Instantly share code, notes, and snippets.

View almet's full-sized avatar
🗺️

Alexis Métaireau almet

🗺️
View GitHub Profile
@almet
almet / named.py
Last active June 18, 2016 10:29
Use named pipes to stream answers between processes without buffering (thanks to stdbuf -o0)
import os
import shlex
import subprocess
def spawn(cmd):
os.mkfifo("toto")
with open("toto", "w") as f:
process = subprocess.Popen(shlex.split(cmd), stdout=f)
process.wait()
/*eslint no-unused-vars: [2, { "varsIgnorePattern": "^d$" }]*/
import { expect } from "chai";
import sinon from "sinon";
import config from "../../formbuilder/config";
import { createComponent, d } from "../test-utils";
import FieldList from "../../formbuilder/components/builder/FieldList";
diff --git a/playground/samples/arrays.js b/playground/samples/arrays.js
index 12e2c9f..db2cff0 100644
--- a/playground/samples/arrays.js
+++ b/playground/samples/arrays.js
@@ -53,6 +53,9 @@ module.exports = {
}
},
uiSchema: {
+ multipleChoicesList: {
+ "ui:widget": "checkboxes"
diff --git a/test/components/EditableField_test.js b/test/components/EditableField_test.js
index a601f3d..15aad4c 100644
--- a/test/components/EditableField_test.js
+++ b/test/components/EditableField_test.js
@@ -4,7 +4,7 @@ import { expect } from "chai";
import sinon from "sinon";
import { Simulate } from "react-addons-test-utils";
-import { createComponent } from "../test-utils";
+import { createComponent, d } from "../test-utils";
@almet
almet / kinto.ini
Created March 22, 2016 14:01
Kinto bundled apps
kinto.includes = kinto.plugins.default_bucket kinto_attachment
kinto.attachment.base_url = http://localhost:8000
kinto.attachment.folder = files/{bucket_id}/{collection_id}/
kinto.attachment.keep_old_files = false
kinto.attachment.base_path = /tmp
[global]
trackers =
udp://localhost:6969
[global]
trackers = udp://localhost:6969
@almet
almet / kinto-signature-validation-firefox.js
Created March 10, 2016 13:30
Kinto signature validation in Firefox chrome.
Cu.import("resource://services-common/canonical-json.js");
function mergeChanges(localRecords, changes) {
const records = {};
localRecords.data.forEach(function(record) {
records[record.id] = record;
});
// Apply remote changes in the "records" variable.
// All records that exists already are replaced by the version from the
// server.
@almet
almet / firefox-javascript-hacking.md
Last active February 25, 2016 14:21
How to do some JavaScript coding for Firefox
diff --git a/docs/overview.rst b/docs/overview.rst
index 03c75eb..e43fb3a 100644
--- a/docs/overview.rst
+++ b/docs/overview.rst
@@ -183,25 +183,25 @@ What follows is a comparison table showing how Kinto stacks up compared to some
other projects in this space.
-=========================== ====== ====== ======== ======= ======= ============== ======= ========= ================
-Project Kinto Parse Firebase CouchDB Kuzzle Remote-Storage Hoodie BrowserFS Couchbase Mobile