Skip to content

Instantly share code, notes, and snippets.

View ralfschimmel's full-sized avatar
:octocat:

Ralf Schimmel ralfschimmel

:octocat:
  • Gynzy
  • Nijmegen, the Netherlands
View GitHub Profile
@ralfschimmel
ralfschimmel / carousel_view.js
Created January 16, 2012 16:10 — forked from ppcano/carousel_view.js
Ember Touch ScrollView without iScroll, and using movejs for transfomations.
{{#view Luh.Ui.TabMainView currentView="pane1"}}
{{#view Luh.Ui.TabPaneView id="pane1" class="content" viewName="pane1"}}
{{/view}}
{{#view Luh.Ui.TabPaneView id="pane2" class="content" viewName="pane2"}}
{{/view}}
@ralfschimmel
ralfschimmel / addActor.js
Created November 28, 2011 10:05
saving newly created nested records to a relation
addActor: function() {
........
var actor = this.actorNestedStore.createRecord(Bw.AssignmentActor, {});
this.newActors.pushObject(actor);
............
}
@ralfschimmel
ralfschimmel / collection_view_should_respond_to_test_event.js
Created November 24, 2011 11:39
Failtest sproutcore childview in collectionview
require('sproutcore');
require('sproutcore-touch');
var set = SC.set, get = SC.get;
var tapEndWasCalled = true;
module("Touching handlebars tests", {
setup: function() {
console.group(' - Setup for new test');
@ralfschimmel
ralfschimmel / gist:1080339
Created July 13, 2011 13:59
Make a scrollview draggable to left and right
/*globals App */
App.DragView = SC.ScrollView.extend({
backgroundColor: 'black',
touchStart: function(touch) {
var f = this.get("frame");
this._touch = {
start: {
x: touch.pageX,