This file contains hidden or 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
| source 'http://rubygems.org' | |
| gem 'rails', '3.2.6' | |
| gem 'mysql2' | |
| group :assets do | |
| gem 'sass-rails', "~> 3.2.0" | |
| gem 'coffee-rails', "~> 3.2.0" | |
| gem 'uglifier' |
This file contains hidden or 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
| root :to => 'home#index', :constraints => lambda { |request| request.cookies['auth_token'] } | |
| root :to => 'user_sessions#new' |
This file contains hidden or 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
| - (void)ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event | |
| { | |
| CGPoint touchPoint = [touch locationInView:[touch view]]; | |
| touchPoint = [[CCDirector sharedDirector] convertToGL:touchPoint]; | |
| if(isTouch){ | |
| // | |
| // Move the flake, check into consideration finger placement | |
| // relative to the flake |
This file contains hidden or 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
| initSortable: => | |
| $(@el).sortable | |
| opacity: 0.6 | |
| cursor: 'move' | |
| containment: 'footer' | |
| update: => | |
| #ids = App.keyframeList().collection.pluck('id') | |
| #console.log ids | |
| @json = {} |
This file contains hidden or 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
| $('#c9_android_or_ios button').removeClass('active') | |
| $('#c9_android_or_ios button:nth-child(2)').addClass('active') |
This file contains hidden or 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
| widgetAtPoint: (point) -> | |
| widgetWithHighestZ = | |
| _.max @widgets, (widget) -> | |
| if widget.getIsVisible() and widget.isPointInside(point) | |
| return widget.getZOrder() unless typeof widget.getZOrder isnt "function" | |
| return widgetWithHighestZ if widgetWithHighestZ | |
| for widget,i in @widgets | |
| if widget.getIsVisible() and widget.isPointInside(point) |
This file contains hidden or 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
| package recognizer; | |
| /* | |
| * Copyright 1999-2004 Carnegie Mellon University. | |
| * Portions Copyright 2004 Sun Microsystems, Inc. | |
| * Portions Copyright 2004 Mitsubishi Electric Research Laboratories. | |
| * All Rights Reserved. Use is subject to license terms. | |
| * | |
| * See the file "license.terms" for information on usage and | |
| * redistribution of this file, and for a DISCLAIMER OF ALL |
This file contains hidden or 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
| regExp = /\(([^)]+)\)/; | |
| times = [] | |
| timesPretty = "" | |
| if ARGV.length < 2 | |
| puts "Needs 2 args input to parse: 1. audio path and 2. text that matches audio" | |
| else | |
| # Make variables from parameters | |
| audioPath = ARGV[0] | |
| text = ARGV[1] |
This file contains hidden or 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
| ## | |
| # Main view of app with left/right slide panels. | |
| # The dashboard also houses the message list | |
| # and new message form. To access anything other | |
| # than a list of messages, we navigate to a new | |
| # page | |
| # | |
| # @class DashboardView | |
| # | |
| define [ |
This file contains hidden or 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 App.Views.SectionTabsView extends Backbone.View | |
| template: JST['clients/section_tabs'] | |
| events: | |
| 'click li': 'menuItemClicked' | |
| render: -> | |
| @$el.append @template() | |
| menuItemClicked: (e) -> |