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
SELECT | |
System.Timestamp AS OutTime, | |
Face.gender AS Gender, | |
Count(*) AS Count | |
FROM | |
StreamInput | |
GROUP BY HoppingWindow(second,10,1), | |
Face.gender |
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
while (!cart.isEmpty()) { | |
shipping.ship(cart.takeNext(), ???); | |
} |
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
- // This file contains 3 lines of code | |
1 public interface Dave { | |
- /** | |
- * count the number of lines in a file | |
- */ | |
2 int countLines(File inFile); // not the real signature! | |
3 } |
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
buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:1.2.3' | |
} | |
} |
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 say(int number) { | |
if( number%3 == 0 ) | |
return "Fizz"; | |
if( number%5 == 0 ) | |
return "Buzz"; | |
return number+""; | |
} |
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
android { | |
... | |
buildTypes { | |
... | |
debug { | |
debuggable true | |
testCoverageEnabled = true | |
} |
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
private void askQuestion() { | |
if (currentCategory() == "Pop") | |
System.out.println(pop.removeFirst()); | |
if (currentCategory() == "Science") | |
System.out.println(science.removeFirst()); | |
if (currentCategory() == "Sports") | |
System.out.println(sport.removeFirst()); | |
if (currentCategory() == "Rock") | |
System.out.println(rock.removeFirst()); | |
} |
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 BowlingGameTest { | |
@Test | |
public void perfectGame() throws Exception { | |
roll(10, 12); | |
assertThat(game.score(), is(equalTo(300))); | |
} } |
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
[package] | |
name = "simple-web" | |
version = "0.1.0" | |
authors = ["somkiat <[email protected]>"] | |
[dependencies.nickel] | |
git = "https://github.com/nickel-org/nickel.rs.git" |
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
*** Settings *** | |
Library Selenium2Library | |
#Test Teardown Close Browser | |
*** Testcases *** | |
Post my book on Kaidee | |
Open Browser http://www.kaidee.com/posting/ | |
Maximize Browser Window |