See ReactComponentView and BackboneModelWatchMixin, below.
The BackboneModelWatchView could use some additional methods to allow adding/removing watched models after the component is created.
| <?php | |
| namespace Incenteev\WebBundle\Validator; | |
| use Symfony\Component\Validator\Constraint; | |
| /** | |
| * @Annotation | |
| * @Target({"CLASS", "ANNOTATION"}) | |
| */ |
| ## Install Docker | |
| ``` | |
| # install the backported kernel | |
| $ sudo apt-get update | |
| $ sudo apt-get install linux-image-generic-lts-raring linux-headers-generic-lts-raring | |
| $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| $ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
| #!/bin/bash | |
| # | |
| # Automate mysql secure installation for debian-baed systems | |
| # | |
| # - You can set a password for root accounts. | |
| # - You can remove root accounts that are accessible from outside the local host. | |
| # - You can remove anonymous-user accounts. | |
| # - You can remove the test database (which by default can be accessed by all users, even anonymous users), | |
| # and privileges that permit anyone to access databases with names that start with test_. |
| #!/bin/bash -exv | |
| function getvalue() { | |
| shyaml get-value $1 < .travis.yml | |
| } | |
| function getencvalue() { | |
| shyaml get-value $1.secure < .travis.yml | base64 -d | openssl rsautl -decrypt -inkey .jenkins.pem | |
| } |
We want to track image downloads from client side and in javascript we cannot get the header values:(.
| #!/bin/bash | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| # Reveal Library | |
| chflags nohidden ~/Library | |
| # Install homebrew | |
| ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
| # Install homebrew cask | |
| brew install caskroom/cask/brew-cask | |
| # Install all necessary sw | |
| brew cask install google-chrome | |
| brew cask install firefox | |
| brew cask install spectacle |
| #!/usr/bin/env zsh | |
| branch=`git rev-parse --abbrev-ref HEAD` | |
| git show-branch | ack '\*' | ack -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//' | |
| # How it works: | |
| # 1| Display a textual history of all commits. | |
| # 2| Ancestors of the current commit are indicated | |
| # by a star. Filter out everything else. |
| // Use the router(s) for any internal (relative) links, unless it has a | |
| // `data-bypass` attribute or is `target=_blank` | |
| $(document).on('click', 'a:not([data-bypass],[target])', function(evt) { | |
| var href = $(this).attr('href'), | |
| protocol = this.protocol + '//'; | |
| // For <a href="#"> links, we always want to preventDefault to avoid having to do | |
| // this within each individual Backbone View event function. | |
| // (However don't preventDefault on #something URLs in case we need to jump down a page.) |