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
| private EditText emailEditText; | |
| private EditText passwordEditText; | |
| private EditText confirmPasswordEditText; | |
| private Spinner ageSpinner; | |
| private Spinner countrySpinner; | |
| private Spinner stateOrProvinceSpinner; | |
| private CheckBox agreeCheckBox; | |
| private Button registerButton; | |
| protected void onCreate(Bundle savedInstanceState) { |
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 javax.servlet.annotation.WebServlet | |
| import javax.servlet.http.HttpServlet | |
| import javax.servlet.http.HttpServletRequest | |
| import javax.servlet.http.HttpServletResponse | |
| @WebServlet(name = "Hello", value = "/hello") | |
| class HelloController: HttpServlet() { | |
| override fun doGet(req: HttpServletRequest, res: HttpServletResponse) { | |
| res.writer.write("Hello, World!") | |
| } |
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
| curl -XPOST 'localhost:9200/sample_new' -d '{ | |
| "mappings" : { | |
| "videos" : { | |
| "properties" : { | |
| "tags" : { "type" : "string", "index" : "not_analyzed" } | |
| } | |
| } | |
| } | |
| }' |
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
| compile ‘com.android.support:support-annotations:x.y.z’ |
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 python:2.7.11-alpine | |
| MAINTAINER UP1 <[email protected]> | |
| ADD ./web/requirements.txt /tmp/requirements.txt | |
| RUN pip install -qr /tmp/requirements.txt | |
| ADD ./web /opt/web/ | |
| WORKDIR /opt/web | |
| EXPOSE 8888 | |
| CMD ["python", "app.py"] |
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 MainActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| Button clickMeButton = (Button) findViewById(R.id.clickMeButton); | |
| clickMeButton.setOnClickListener(view -> { |
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
| @Override | |
| public void onBindViewHolder(ViewHolder holder, int position) { | |
| Order order = items.get(position); | |
| holder.orderNumber.setText(order.getOrderNumber().toString()); | |
| holder.orderTotal.setText(order.getOrderTotal()); | |
| holder.itemView.setTag(order); | |
| } |
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
| *** Variables *** | |
| ${HELLO} 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
| $docker info | |
| Client: | |
| Version: 1.11.1 | |
| API version: 1.23 | |
| Go version: go1.5.4 | |
| Git commit: 5604cbe | |
| Built: Wed Apr 27 00:34:20 2016 | |
| OS/Arch: darwin/amd64 |
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
| @RunWith(MockitoJUnitRunner.class) | |
| public class GithubTaskTest { | |
| public GitHubTask gitHubTask = Mockito.mock(GitHubTask.class); | |
| @Before | |
| public void setUp() { | |
| try { | |
| Mockito.when(gitHubTask.loadFromNetwork("https://api.github.com")) | |
| .thenReturn("{'name': 'somkiat'}"); |