Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcos Contreras contrerasmarc

  • Clermont Ferrand, France
View GitHub Profile
@contrerasmarc
contrerasmarc / gist:29788a1434a18814222a7b04d5d1ac87
Created Aug 24, 2017
Code Mi_Tabla3 (Table + CouchDB) 24-08-2017
View gist:29788a1434a18814222a7b04d5d1ac87
// ==========================================================================
// Project: MiTabla3 -
// Copyright: Michelin
// ==========================================================================
/*globals MiTabla3 */
/** @namespace
My cool new app. Describe your application.
@extends SC.Object
*/
@contrerasmarc
contrerasmarc / core.js
Last active Jul 26, 2017
Almost ok using the Couch framework (sproutcore-couchdb) framework
View core.js
// ==========================================================================
// Project: MiTabla3 -
// Copyright: Michelin
// ==========================================================================
/*globals MiTabla3 */
/** @namespace
My cool new app. Describe your application.
@extends SC.Object
*/
View Query doesn't work 2
sc_require('models/visit_model');
Sites.visitsController = SC.ArrayController.create(
/** @scope Sites.visitsController.prototype */
{
content: null,
siteIdBinding: 'Sites.siteController.id',
siteIdDidChange: function() {
@contrerasmarc
contrerasmarc / Query doesn't work
Last active Aug 29, 2015
A way to discover if a query works or not works
View Query doesn't work
In the view Sites.GeneralDescriptionView :
txtVisits: SC.TextFieldView.design({
layout: Sites.LAYOUT_TXT,
valueBinding: 'Sites.visitsController.content',
// MCM
txtVisitsHasChanged: function() {
var q = Sites.SITES_QUERY;
var s = Sites.store.find(q);
var id, sKey, sTatus;
View my-first-gist
// This is my first gist with just a comment line
You can’t perform that action at this time.