Skip to content

Instantly share code, notes, and snippets.

Alexis Metaireau almet

Block or report user

Report or block almet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View -.diff
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"
View -
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 Mar 22, 2016
Kinto bundled apps
View kinto.ini
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
View zeronet.conf
[global]
trackers =
udp://localhost:6969
View zeronet.conf
[global]
trackers = udp://localhost:6969
@almet
almet / kinto-signature-validation-firefox.js
Created Mar 10, 2016
Kinto signature validation in Firefox chrome.
View kinto-signature-validation-firefox.js
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 Feb 25, 2016
How to do some JavaScript coding for Firefox
View firefox-javascript-hacking.md
View changes.diff
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
View demo.js
function main() {
const headers = {Authorization: "Basic " + btoa("user:pass")};
/**
* Convert an Array Buffer into a base64 String.
*
* @param {ArrayBuffer} buffer - The Array buffer to convert.
* @returns {String} - The base64 representation of the given Array
* Buffer.
View -.diff
diff --git a/calendar.js b/calendar.js
index ce462d6..faca709 100644
--- a/calendar.js
+++ b/calendar.js
@@ -10,17 +10,29 @@ $(document).ready(function() {
// Local store in IndexedDB.
var store;
-
var headers;
You can’t perform that action at this time.