-
Data Down / Actions Up
- http://emberjs.jsbin.com/nayaho/edit?html,js - Interdependent select boxes. No observers.
- http://ember-twiddle.com/2d7246875098d0dbb4a4 - One Way Input
-
Plain JSBin's
-
Ember Version Base JSBin's
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
| commit 8eed215edb5f1cd086e185d09c1b771015193ccc | |
| Author: Jiang Bian <borderj@gmail.com> | |
| Date: Wed Nov 20 19:21:52 2013 +0800 | |
| Zxing Camera in Portrait mode | |
| diff --git a/AndroidManifest.xml b/AndroidManifest.xml | |
| index db60cba..11a4cc8 100755 | |
| --- a/AndroidManifest.xml | |
| +++ b/AndroidManifest.xml |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Text; | |
| using System.IO; | |
| using System.Web.UI; | |
| using Pechkin; | |
| using System.Text.RegularExpressions; |
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
| angular.module('stateMock',[]); | |
| angular.module('stateMock').service("$state", function($q){ | |
| this.expectedTransitions = []; | |
| this.transitionTo = function(stateName){ | |
| if(this.expectedTransitions.length > 0){ | |
| var expectedState = this.expectedTransitions.shift(); | |
| if(expectedState !== stateName){ | |
| throw Error("Expected transition to state: " + expectedState + " but transitioned to " + stateName ); | |
| } | |
| }else{ |
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
| #!/bin/bash | |
| if ! [ $# -eq 1 ]; then | |
| echo "Usage: $0 <node-name>" | |
| exit 1 | |
| fi | |
| # Make sure you have all dependencies: | |
| # yum -y install libguestfs-tools virt-install |
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
| # installs to /opt/gradle | |
| # existing versions are not overwritten/deleted | |
| # seamless upgrades/downgrades | |
| # $GRADLE_HOME points to latest *installed* (not released) | |
| gradle_version=2.9 | |
| wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip | |
| sudo unzip -foq gradle-${gradle_version}-all.zip -d /opt/gradle | |
| sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest | |
| sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh | |
| . /etc/profile.d/gradle.sh |
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
| @ComponentScan | |
| @Import(ServiceConfiguration.class) | |
| @EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL) | |
| @EnableAutoConfiguration | |
| public class Application extends SpringBootServletInitializer { | |
| private static Class<Application> applicationClass = Application.class; | |
| public static void main(String[] args) { | |
| SpringApplication.run(applicationClass); | |
| } |
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
| { | |
| "scripts": { | |
| "eslint": "LIST=`git diff-index --name-only HEAD | grep .*\\.js | grep -v json`; if [ \"$LIST\" ]; then eslint $LIST; fi" | |
| }, | |
| "devDependencies": { | |
| "pre-commit": "0.0.7", | |
| "eslint": "~0.5.1" | |
| }, | |
| "pre-commit": [ | |
| "eslint" |
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
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import java.util.List; | |
| import org.apache.commons.lang3.SerializationUtils; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.security.jwt.JwtHelper; | |
| import org.springframework.security.oauth2.common.OAuth2AccessToken; | |
| import org.springframework.security.oauth2.common.OAuth2RefreshToken; | |
| import org.springframework.security.oauth2.common.exceptions.InvalidTokenException; |