Skip to content

Instantly share code, notes, and snippets.

View erichocean's full-sized avatar

Erich Ocean erichocean

  • Xy Group Ltd
  • North Carolina
View GitHub Profile
Account cfgTestCall := block( arg1, arg2, # block, so undefined symbols are lexically-scoped when patched
cfg( i32 /* return type*/, i32 arg1, i32 arg2, /* typed arguments */
bb( start, // labeled "start", label only valid within this cfg
tail call int32 %sprintf( i32 arg1, i8 arg2 )
%ignored = opaque %dynamicBB // dynamicBB is a method, but we don't have to call it as one in LLVM if there are no args
br label block2
)
bb( block2, // labeled "block2", label only valid within this cfg
%addresult = add i32 1, %AnArg ; <i32> [#uses=1]
%list = %List* %dynamicBlock // dynamic call (no need to use intrinsics when there are zero args)
popup: function(anchorView, triggerEvent) {
// this will bypass the normal observer machinery, calling the private
// _show method ourselves. To avoid triggering _show twice, we patch up
// the internal _isVisible property.
this._isVisible = true ;
this._show(anchorView, triggerEvent) ;
this.set('isVisible', true);
},
<%= select_field_view :field => :inviter,
:name_key => 'name',
:value_key => 'bizid',
:bind => { :objects => 'SharedBusiness.Business.arrangeObjects' } %>
#marginInset {
margin: 15px;
border: medium solid white
}
keyDown: function(evt) {
var nr = this.get('nextResponder') ;
return (nr && nr.keyDown) ? nr.keyDown(evt) : false;
},
<% view :contacts do %>
<div id="console"></div>
<h1>Contacts (<%= label_view :contacts_count, :outlet => true, :tag => :span, :bind => { :value => 'Ring.contactsController*content.count'} %>)</h1>
<% scroll_view :contacts_scroll, :outlet => true do %>
<%= list_view :contacts_list, :outlet => true,
:content_value_key => 'firstName',
:bind => {
:content => 'Ring.contactsController.arrangedObjects',
:selection => 'Ring.contactsController.selection'
// ==========================================================================
// Ring.Contact Fixtures
// ==========================================================================
require('core') ;
Ring.FIXTURES = Ring.FIXTURES.concat([
// TODO: Add your data fixtures here.
// All fixture records must have a unique guid and a type matching the
// ==========================================================================
// Ring.Contact Fixtures
// ==========================================================================
require('core') ;
Ring.FIXTURES = Ring.FIXTURES.concat([
// TODO: Add your data fixtures here.
// All fixture records must have a unique guid and a type matching the
<% content_for('body') do %>
<%= container_view :ring_container, :bind => {:content => 'Ring.containerController*view'} %>
<% end %>
/* Default CSS for welcome page. Delete this styling and replace it with your own. */
.ring_container {
position: absolute ;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}