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
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='1.1.0') | |
import groovy.xml.* | |
import wslite.soap.* | |
import wslite.http.auth.* | |
def client = new SOAPClient('https://dummy:11443/ClinicalDocumentWSService/ClinicalDocumentWS?wsdl') | |
client.authorization = new HTTPBasicAuthorization("mirth", "password") | |
// Grab the latest member list |
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 imagej; | |
import ij.*; | |
import ij.io.*; | |
import ij.process.*; | |
import java.io.*; | |
import javax.imageio.*; | |
import javax.imageio.stream.*; | |
import java.awt.image.BufferedImage; |
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
// Original article: https://m.pardel.net/tdd-in-xcode-playgrounds-544a95db11e2 | |
import XCTest | |
struct Todo { | |
} | |
class TodoTests: XCTestCase { | |
override func setUp() { |
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
@RunWith(RobolectricTestRunner.class) | |
@Config(manifest = TestConstants.MOBILE_ROBOLECTRIC_MANIFEST_PATH, sdk = 21) | |
public abstract class ParseTestBase { | |
static boolean parseInit = false; | |
@Before | |
public void setup() throws ParseException { | |
if (!parseInit) { | |
Context context = ShadowApplication.getInstance().getApplicationContext(); |
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
import java.io.UnsupportedEncodingException; | |
import java.util.Map; | |
import org.simpleframework.xml.Serializer; | |
import org.simpleframework.xml.core.Persister; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; |
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 demoParseNounPhrases; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.HashSet; | |
import java.util.Set; | |
import opennlp.tools.cmdline.parser.ParserTool; | |
import opennlp.tools.parser.Parse; |
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
# imagemagick | |
brew install imagemagick --disable-openmp | |
すると色々怒られるので、 | |
sudo brew link libtiff | |
sudo brew link little-cms | |
sudo brew link jasper | |
sudo brew link imagemagick | |
sudo brew link jpeg | |
する |
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
@Test | |
public void buttonClickShouldStartNewActivity() throws Exception | |
{ | |
Button button = activity.findViewById( R.id.next_screen_button ); | |
button.performClick(); | |
Intent intent = NewActivity.createIntent( activity ); | |
assertThat( activity, new StartedMatcher( intent ) ); | |
} |
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) 2014 I.C.N.H GmbH | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/** | |
* Builder for [Preview] that takes in a [WeakReference] of the view finder and | |
* [PreviewConfig], then instantiates a [Preview] which automatically | |
* resizes and rotates reacting to config changes. | |
*/ | |
class AutoFitPreviewBuilder private constructor(config: PreviewConfig, | |
viewFinderRef: WeakReference<TextureView>) { | |
/** Public instance of preview use-case which can be used by consumers of this adapter */ | |
val useCase: Preview |
OlderNewer