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
type: custom:mushroom-template-card | |
entity: input_boolean.fish_have_been_fed | |
fill_container: false | |
primary: |- | |
{% if is_state('input_boolean.fish_have_been_fed', 'on') %} | |
Fed | |
{% elif is_state('input_boolean.fish_have_been_fed', 'off') %} | |
Hungry | |
{% endif %} | |
secondary: Fish |
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
#!/bin/bash | |
### | |
# Usage: | |
# Suggested cloning another copy of the repo to project-review folder | |
# ./review.sh branch_name | |
# Note that the branch name should not have any spaces | |
# This script assumes that you have only one emulator/device connected over ADB | |
### | |
echo "Grabbing repo" |
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
public String getLineOneText() { | |
return model.getTitleLineTwo(); | |
} | |
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
#!/bin/bash | |
# Crontab: 0 18 15 * * /data/output/mergeCam.sh | |
DATE=`date +%Y-%m-%d` | |
process /data/output/Camera1/$DATE | |
process /data/output/Camera2/$DATE | |
function process { | |
ffmpeg -f concat -i <(for f in $1/*.mp4.thumb; do echo "file '${f%.thumb}'"; done) -c copy $WORKING_DIR/concat.mp4 |
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
/******************************************************************************* | |
* Copyright (c) 2013,2014 Rüdiger Herrmann | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Rüdiger Herrmann - initial API and implementation | |
* Matt Morrissette - allow to use non-static inner IgnoreConditions |
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
public class ExtraViewMatchers { | |
public static Matcher<? super View> hasSelectedTab(final String tabName) { | |
return new BoundedMatcher<View, TabLayout>(TabLayout.class) { | |
public void describeTo(Description description) { | |
description.appendText("has selected tab " + tabName); | |
} | |
public boolean matchesSafely(TabLayout tabLayout) { |
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
public class CustomTestRunner extends RobolectricTestRunner { | |
/** | |
* Creates a runner to run {@code testClass}. Looks in your working directory for your AndroidManifest.xml file | |
* and res directory by default. Use the {@link Config} annotation to configure. | |
* | |
* @param testClass the test class to be run | |
* @throws org.junit.runners.model.InitializationError if junit says so | |
*/ |
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
POST /auth/persistent HTTP/1.1 | |
Content-Type: application/json | |
User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.1.1; Google Nexus 4 - 4.1.1 - API 16 - 768x1280 Build/JRO03S) | |
Host: 213.86.22.234:679 | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
Content-Length: 47 | |
{"password":"Test1234@","username":"100077941"} |
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
#!/usr/bin/ruby | |
terms = { | |
"utsuri"=>"changing", | |
"tsuri"=>"lifting", | |
"harai"=>"sweeping", | |
"barai"=>"sweeping", | |
"hara-"=>"", | |
"de"=>"advance", | |
"ashi"=>"foot", |