This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.annotation.JsonCreator; | |
import test.protobuf.Test; | |
public class Wrapper { | |
public Test.Foo foo; | |
@JsonCreator | |
public Wrapper(Test.Foo foo) { | |
this.foo = foo; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define colors | |
RESET='\[\033[00m\]' | |
FGBK='\[\033[0;30m\]' # foreground black | |
FGRD='\[\033[0;31m\]' # foreground red | |
FGGN='\[\033[0;32m\]' # foreground green | |
FGYL='\[\033[0;33m\]' # foreground yellow | |
FGBL='\[\033[0;34m\]' # foreground blue | |
FGMG='\[\033[0;35m\]' # foreground magenta | |
FGCY='\[\033[0;36m\]' # foreground cyan | |
FGGR='\[\033[0;37m\]' # foreground gray |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X.b.get('prop') // => 0 | |
X.b.setA(X.o) | |
X.b.get('prop') // => 0 | |
X.b.get('a').get('prop') // => 1 | |
X.b.notifyPropertyChange('prop') | |
X.b.get('prop') // => 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainDB::App < ActiveRecord::Base | |
establish_connection :main_db | |
set_table_name "APPLICATIONS" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Authoring.ReportTemplate = SC.Record.extend({ | |
// Attributes defined ... | |
nominations: SC.Record.toMany('Authoring.Nomination', { | |
isMaster: YES, | |
inverse: 'reportTemplate' | |
}), | |
clone: function() { | |
var attributes, clone; | |
attributes = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc_require('models/base_model'); | |
Authoring.Nomination = Authoring.BaseWithTimestamps.extend({ | |
// ... | |
reportTemplate: SC.Record.toOne('Authoring.ReportTemplate', { | |
isMaster: NO, | |
key: "report_template_id", | |
inverse: "nominations" | |
}), | |
// ... | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
stateSelect: SC.SelectFieldView.design({ | |
layout: { | |
left: 120, | |
height: 18, | |
centerY: 0 | |
}, | |
objectsBinding: '.parentView*content.record.internalStateOptions', | |
nameKey: 'label', | |
valueKey: 'value', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Authoring.groupedNominationsController = SC.TreeController.create({ | |
content: null, | |
selection: null, | |
treeItemIsGrouped: YES, | |
setNominations: function(nominations) { | |
var group, osVersion, osVersions, root; | |
root = SC.Object.create({ | |
treeItemChildren: [] | |
treeItemIsExpanded: YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contentView: SC.SourceListView.design({ | |
contentBinding: 'Authoring.reportTemplatesArrayController.content', | |
selectionBinding: 'Authoring.reportTemplatesArrayController.selection', | |
exampleView: SC.View.design({ | |
classNames: 'sc-list-item-view'.w(), | |
childViews: 'nameLabel'.w(), | |
nameLabel: SC.LabelView.design({ | |
layout: { left: 10, width: 100, height: 18 }, | |
valueBinding: '.parentView*content.name' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MT.ReportTemplateContainerView = SC.ContainerView.extend({ | |
contentView: SC.TemplateView.extend({ | |
itemBinding: 'MT.reportTemplates.selectedItem', | |
templateName: 'report_template_show' | |
}), | |
editView: SC.TemplateView.extend({ | |
itemBinding: 'MT.reportTemplates.selectedItem', | |
templateName: 'report_template_edit' | |
}) | |
}); |
NewerOlder