Skip to content

Instantly share code, notes, and snippets.

View bjoreman's full-sized avatar

Fredrik Björeman bjoreman

View GitHub Profile
@bjoreman
bjoreman / keymap.c
Created August 24, 2019 20:24
My kbd4x keymap of 2019-08-24
/* Copyright 2018 sevenseacat
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@bjoreman
bjoreman / gist:11192604
Created April 22, 2014 20:09
keybase.md
### Keybase proof
I hereby claim:
* I am bjoreman on github.
* I am bjoreman (https://keybase.io/bjoreman) on keybase.
* I have a public key whose fingerprint is 7493 BAE2 3EF0 1EAA CEB7 CBEE 23AF 24EE A320 8700
To claim this, I am signing this object:
// ==========================================================================
// Project: FocusTest - mainPage
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals FocusTest */
// This page describes the main user interface for your application.
FocusTest.mainPage = SC.Page.design({
// The main pane is made visible on screen as soon as your app is loaded.
displayObjectsBinding: 'Simple2.editingController.template*objects',
displayObjectsObserver: function() {
console.log('displayObjectsObserver');
var objects = this.get('displayObjects');
var observer = objects.addRangeObserver(SC.IndexSet.create(0,objects.length), this, this.reRender, null);
this.set('observer', observer);
console.log(this.get('displayObjects'));
}.observes('displayObjects'),
// ==========================================================================
// Project: Simple2.ItemListItem
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals Simple2 */
/** @class
(Document Your View Here)
// ==========================================================================
// Project: Vytest.TestView
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals Vytest */
/** @class
(Document Your View Here)
// ==========================================================================
// Project: Vytest.testController
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals Vytest */
/** @class
(Document Your Controller Here)
layoutObserver: function() {
console.log('fieldView layout changed');
var layout = this.get('layout');
console.log(layout);
this.adjust('height', layout.height);
}.observes('layout')