Skip to content

Instantly share code, notes, and snippets.

View geoffreyd's full-sized avatar

Geoffrey Donaldson geoffreyd

View GitHub Profile
@geoffreyd
geoffreyd / controllers.application\.js
Last active June 29, 2020 08:44
Bad Template Error
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
click() {}
}
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});

Keybase proof

I hereby claim:

  • I am geoffreyd on github.
  • I am geoffreyd (https://keybase.io/geoffreyd) on keybase.
  • I have a public key whose fingerprint is 0452 62F1 55A0 1BD3 9641 673A 1CF9 1EC3 6307 8A1B

To claim this, I am signing this object:

@geoffreyd
geoffreyd / gist:1630328
Created January 18, 2012 01:59
RE: sproutcore#690

@publickeating So after all that, did you not read the posts, or just choose to ignore the actual issues that where brought up?

did you have something to say about how we'll handle useStaticLayout with the 2 different view types? I guess,will this even be an issue? The view could detect if a template has been given, and set useStaticLayout: NO.

How about the fact that template views go against the design principals allowing an interface builder?

Also yes, the Ember guys have left us, but unfortunately their legacy hasn't. The very fact we have 'core_view' (plus the whole 'modularising' of SC) was from their first attempt at making SC 2, before choosing to start anew. What Erich is saying, is many of these changes where made without regard for performance of large apps. This is something that we need to take into consideration for each and every change we make. While you might not have a vision for where you want SC to go, many of us do. It's why most have chosen SC, and that vision is a framework tha

exports['git-commits'] = function(doc, req) {
var newDoc = JSON.parse(req.body);
newDoc.type = 'commit';
if (req.uuid) {
newDoc._id = req.uuid;
} else {
newDoc._id = "commit-"+Date.now()+newDoc.repository.url;
}
return [newDoc, '{"status":"ok"}'];
}
* About to connect() to commits.geoffreyd.com port 80 (#0)
* Trying 184.72.47.54... connected
* Connected to commits.geoffreyd.com (184.72.47.54) port 80 (#0)
* Server auth using Basic with user 'XXXX'
> POST /gitpost HTTP/1.1
> Authorization: Basic XXXXXX
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: commits.geoffreyd.com
> Accept: */*
> Content-Type:application/json
Pharos360.Course = SC.Record.extend(
/** @scope Pharos360.Course.prototype */ {
primaryKey: 'number',
number: SC.Record.attr(Number),
title: SC.Record.attr(String),
credit_hours: SC.Record.attr(String),
days: SC.Record.attr(String),
start_time: SC.Record.attr(String),
@geoffreyd
geoffreyd / labels.js
Created March 7, 2011 00:50 — forked from topherfangio/labels.js
Connecting Array controller, Statechar and view
Pharos360.labelsController = SC.ArrayController.create(
/** @scope Pharos360.labels.prototype */ {
// TODO: Add your own code here.
}) ;
app.get('/move/:from/:to', function(req, res) {
console.log("Move");
// Define the 'board' parameter here.
board.load(function(board) {
from = req.params.from
to = req.params.to
// The scope of `this is far too finicky, it's always better to
// try another option if you can. In this case
res.send({removed: board.move(from, to)})
});