Skip to content

Instantly share code, notes, and snippets.

View charlesjolley's full-sized avatar

Charles Jolley charlesjolley

View GitHub Profile
@charlesjolley
charlesjolley / dev_view.coffee
Created August 21, 2012 03:57
Adding event locks to Ember
# example view implements a simple dragging for mouse events.
Wall.DevView = Ember.View.extend
mouseDown: (ev) ->
ev.dispatcher.lock @, 'mouseMove', 'mouseUp'
@_mouseDown = @$().offset()
@_mouseDown.pageX = ev.pageX
@_mouseDown.pageY = ev.pageY
@_mouseDown.dispatcher = ev.dispatcher
console.log 'mouseDown'
--- !ruby/object:Gem::Specification
name: uglify-js
version: !ruby/object:Gem::Version
prerelease:
version: 1.0.4
platform: ruby
authors:
- Mihai Bazon
autorequire:
bindir: bin
Mini-Labs:uglify-js charles$ bundle exec bpm push uglify-js-1.0.4.bpkg
RubyGems.org cannot process this gem.
Please try rebuilding it and installing it locally to make sure it's valid.
Error:
uninitialized constant LibGems
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:113:in `constantize'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:112:in `each'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:112:in `constantize'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/core_ext/string/inflections.rb:43:in `constantize'
/app/.bundle/gems/ruby/1.8/gems/delayed_job-2.1.2/lib/delayed/yaml_ext.rb:22:in `yaml_tag_read_class'
// add to the 'content' file
headerStyle: function() {
return [this.get('header_font'), this.get('header_size'), this.get('header_weight')].join(' ');
}.property('header_font', 'header_size', 'header_weight').cacheable()
// ==========================================================================
// Project: Ux.ButtonView
// Copyright: ©2011 My Company, Inc.
// ==========================================================================
/*globals Ux Ki */
/** @class
(Document Your View Here)
// ==========================================================================
// Project: Ux.ButtonView
// Copyright: ©2011 My Company, Inc.
// ==========================================================================
/*globals Ux Ki */
/** @class
(Document Your View Here)
MyView = SC.View.design({
content: null,
fooBinding: 'this.content.foo',
barBinding: 'this.content.bar',
bazBinding: 'this.content.baz'
});
<h1>Todos</h1>
{{#view "createTextField"}}
<input id="new-todo" type="text" placeholder="What needs to be done?">
{{/view}}
{{#view "list"}}
<div id="stats">
<span class='todo-count'>
<span class='number'>{{remainingTodosCount}}</span>

SproutCore Committers and Reviewer Policy

SproutCore has three kinds of special status beyond being a contributor. Committers have direct read-write access to the Git repository, enabling them to commit changes by themselves or others once reviewed. Reviewers are permitted to review patches and may grant or deny approval for committing. SproutCore Core Team members set the overall direction of the project and manage long term plans. Details of the review and commit process are available on the contribution page.

New SproutCore Committers and Reviewers are selected by existing Reviewers. New Core Team members are selected by the existing Core Team

An up to date list of current SproutCore Committers, Reviewers and Core Team members is maintained at sproutcore.com.

Choosing Committers and Reviewers

<div class="card">
{{view image}}
<h1>{{firstName}} {{lastName}}</h1>
</div>