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
| PUT log/web/1 | |
| { | |
| "name" : "test", | |
| "loged_date" : "2016/01/26 11:11:11" | |
| } | |
| PUT log/web/2 | |
| { | |
| "name" : "test", | |
| "loged_date" : "2016/01/27 11:11:11" | |
| } |
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
| apply plugin: 'jdepend' | |
| ... | |
| task jdepend(type: JDepend, dependsOn: 'compileDebugSources') { | |
| classesDir file('build/intermediates/classes/debug/myproject/package') | |
| reports { | |
| xml { | |
| destination 'build/reports/jdepend.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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest package="up1.hello" | |
| xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/> | |
| <uses-permission android:name="android.permission.WAKE_LOCK"/> | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
| <uses-permission android:name="android.permission.CHANGE_CONFIGURATION" /> |
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.io.File; | |
| public class CallReport { | |
| public static void main(String ... args) { | |
| Report report = new NotNullReport(new FileNotExistsReport(new DefaultReport())); | |
| report.export(null); //Throw error from null | |
| report.export(new File("existing.pdf")); //Throw error from existing file | |
| report.export(new File("new.pdf")); //Success |
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
| public class MyOperationTest { | |
| @Test public void | |
| first_scenario() { | |
| //Init | |
| result = operation(a, b, c); | |
| CHECK(result == true) | |
| } | |
| @Test public void |
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 org.junit.gen5.api.Test; | |
| import static org.junit.gen5.api.Assertions.assertEquals; | |
| public class HelloWorldTest { | |
| @Test | |
| public void | |
| first_scenario() { | |
| Hello hello = new Hello(); |
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
| function hello() { | |
| } | |
| var hello = function() { | |
| } |
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
| FROM swiftdocker/swift:latest | |
| ADD src /src |
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
| task grantPermissions(type: Exec, dependsOn: 'installDevDebug') { | |
| def adb = android.getAdbExe().toString() | |
| commandLine "sh grant_permissions.sh $adb demo.up1.dev".split(" ") | |
| } | |
| afterEvaluate { | |
| tasks.each { task -> | |
| if (task.name.startsWith('connectedDevDebugAndroidTest')) { | |
| task.dependsOn grantPermissions |
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
| π πΌ π | |
| ππ π β‘οΈ π π | |
| π π€Hello Worldπ€ | |
| π 0 | |
| π | |
| π |