Skip to content

Instantly share code, notes, and snippets.

hsc.ui.openVerticalScorecard = ->
if not hsc.ui.views['verticalScorecard']
verticalScorecard = new hsc.ui.VerticalScorecard
hsc.ui.views['verticalScorecard'] = verticalScorecard
verticalScorecard.open()
// Generated by CoffeeScript 1.3.1
(function() {
hsc.states.RoundStates = Stativus.State.create({
name: "#round_states",
parentState: "#root",
enterState: function() {
return Ti.API.info("entered round states");
},
states: [
// Generated by CoffeeScript 1.3.1
(function() {
hsc.models.Record = (function() {
Record.name = 'Record';
function Record(props) {
this.props = props != null ? props : {};
Ti.API.info('creating new record');
this.selection.addEventListener('click', function() {
Ti.API.info('tee type clicked');
if (_this.state === 'closed') {
Ti.API.info('open');
_this.state = 'opened';
return _this.container.animate({
width: 212,
duration: 3000,
curve: Titanium.UI.iOS.ANIMATION_CURVE_EASE_IN_OUT
});
i = 0
colors = ['yellow', 'red', 'white', 'blue', 'red']
for color in colors
do (color) =>
view = Ti.UI.createView
backgroundColor: color
top: 2
left: 2 + 42*i
height: 20,
width: 40
for color, i in ['yellow', 'red', 'white', 'blue', 'red']
@container.add view = Ti.UI.createView
backgroundColor: color
top: 2
left: 2 + 42 * i
height: 20,
width: 40
view.addEventListener 'click', do (color) ->
(color) ->
for color, i in ['yellow', 'red', 'white', 'blue', 'red']
@container.add view = Ti.UI.createView
backgroundColor: color
top: 2
left: 2 + 42 * i
height: 20,
width: 40
view.addEventListener 'click', ((color, selection) ->
(e) ->
constructor: (@props = top: 0, left: 0, width: 100, height: 20, text: 'Tap to Enter...')->
@container = Ti.UI.createView
visible: true
top: @props.top
left: @props.left
width: @props.width + 2
height: @props.height + 2
for opt in hsc.ui.ScrollPicker.SHOT_ORIGINS
label = Ti.UI.createLabel
layout: 'horizontal'
width: 85,
height: 26
font: fontSize: 16, fontWeight: 'bold'
text: opt
borderColor: 'white'
borderRadius: 1
Error: Failed executing: make install (erlang.rb:99)
If `brew doctor` does not, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
---
Error: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs: