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
#Embedded file name: /Volumes/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/_Framework/SubjectSlot.py | |
""" | |
Family of classes for maintaining connections with optional subjects. | |
""" | |
from itertools import izip, repeat | |
from functools import partial, wraps | |
from Signal import Signal | |
from Util import instance_decorator, monkeypatch, monkeypatch_extend, NamedTuple | |
from Disconnectable import Disconnectable, CompoundDisconnectable |
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
def _button_value(self, value, sender): | |
assert isinstance(value, int) | |
assert (sender in self._buttons) | |
self._last_sent_value = -1 | |
if ((value != 0) or (not sender.is_momentary())): | |
index_of_sender = list(self._buttons).index(sender) | |
midi_value = int(((127 * index_of_sender) / (len(self._buttons) - 1))) | |
if (self._parameter_to_map_to != None) and self._parameter_to_map_to.is_enabled: | |
param_range = (self._parameter_to_map_to.max - self._parameter_to_map_to.min) | |
param_value = (((param_range * index_of_sender) / (len(self._buttons) - 1)) + self._parameter_to_map_to.min) |
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
raise isinstance(matrix, ButtonMatrixElement) or AssertionError | |
exceptions must be classes, instances, or strings (deprecated), not bool |
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
➜ uncompyle2 git:(master) ✗ sudo python setup.py install | |
running install | |
running build | |
running build_py | |
running install_lib | |
copying build/lib/uncompyle2/__init__.py -> /Library/Python/2.7/site-packages/uncompyle2 | |
copying build/lib/uncompyle2/disas.py -> /Library/Python/2.7/site-packages/uncompyle2 | |
copying build/lib/uncompyle2/magics.py -> /Library/Python/2.7/site-packages/uncompyle2 | |
copying build/lib/uncompyle2/opcode/__init__.py -> /Library/Python/2.7/site-packages/uncompyle2/opcode | |
copying build/lib/uncompyle2/opcode/opcode_23.py -> /Library/Python/2.7/site-packages/uncompyle2/opcode |
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
➜ ea-auctions git:(v2) ✗ ./bin/git-update.sh | |
Already up-to-date. | |
Synchronizing submodule url for 'client-app' | |
Synchronizing submodule url for 'iris-php' | |
Synchronizing submodule url for 'node-app' | |
Submodule 'components/nginx-component' (git@github.com:simonwade/nginx-component.git) registered for path 'components/nginx-component' | |
Submodule 'components/start-stop.sh' (git@github.com:simonwade/start-stop.sh.git) registered for path 'components/start-stop.sh' | |
Submodule 'vendor/assets/javascripts/tabcordion' (git@github.com:simonwade/tabcordion.git) registered for path 'vendor/assets/javascripts/tabcordion' | |
Cloning into 'components/nginx-component'... | |
remote: Counting objects: 18, done. |
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
App.Router = Ember.Router.extend | |
root: Ember.Route.extend | |
index: Ember.Route.extend | |
route: "/" | |
connectOutlets: (router)-> | |
router.get('applicationController').connectOutlet | |
viewClass: App.Views.HomePageTabs | |
controller: App.HomeController | |
items: Ember.Route.extend | |
route: "/items" |
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
{{#if view.twoRows}} | |
<div {{bindAttr id="view.carouselID"}} class="item-carousel carousel slide" data-interval="false"> | |
<div class="carousel-inner"> | |
{{view view.carouselItems }} | |
</div> | |
<a data-slide="prev" class="carousel-control left" {{bindAttr href="view.carouselHREF"}}>‹</a> | |
<a data-slide="next" class="carousel-control right" {{bindAttr href="view.carouselHREF"}}>›</a> | |
</div> | |
{{/if}} |
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
{{#if twoRows}} | |
<div {{bindAttr id="view.carouselID"}} class="item-carousel carousel slide" data-interval="false"> | |
<div class="carousel-inner"> | |
{{view view.carouselItems }} | |
</div> | |
<a data-slide="prev" class="carousel-control left" {{bindAttr href="view.carouselHREF"}}>‹</a> | |
<a data-slide="next" class="carousel-control right" {{bindAttr href="view.carouselHREF"}}>›</a> | |
</div> | |
{{/if}} |
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
App.Router = Ember.Router.extend | |
root: Ember.Route.extend | |
index: Ember.Route.extend | |
route: "/" | |
connectOutlets: (router)-> | |
router.get('applicationController').connectOutlet('home', App.Collections.Home.all()) | |
items: Ember.Route.extend | |
route: "/items" | |
connectOutlets: (router)-> | |
router.get('applicationController').connectOutlet |
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
App.Router = Ember.Router.extend | |
root: Ember.Route.extend | |
index: Ember.Route.extend | |
route: "/" | |
connectOutlets: (router)-> | |
router.get('applicationController').connectOutlet('home', App.Collections.Home.all()) |