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
| package com.package | |
| import android.animation.Animator; | |
| import android.animation.ObjectAnimator; | |
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.util.Log; | |
| import android.view.LayoutInflater; | |
| import android.view.MotionEvent; | |
| import android.view.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
| public class BaseFragment extends Fragment { | |
| private FragmentManager mRetainedChildFragmentManager; | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setRetainInstance(true); |
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
| for ($i = 0; $i < 5; $i++) { | |
| echo $i; | |
| $transaction = $this->transactionManager->get(); | |
| $pub = new Pub(); | |
| $pub->setTransaction($transaction); | |
| $pub->save(); | |
| $feature = new PubFeature(); | |
| $feature->setTransaction($transaction); |
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
| contract Whois { | |
| mapping(bytes32 => Address) addresses; | |
| //Struct representing a postal address | |
| struct Address { | |
| bool initialized; |
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
| #!/bin/bash | |
| START=$(date +%s) | |
| STAGEDIR=/Path/ghost-new/ | |
| # We will send them to this host | |
| HOST=123.456.789 | |
| USERNAME=username |
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
| 0x5608aA3DC0F3Db4617714e6a11a8f8004c255B88 |
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
| before(function(done) { | |
| //run asynchronous setup | |
| //tell mocha when you are done | |
| done(); | |
| }); | |
| //test code |
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
| expect(resultCount).to.be.above(0); |
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
| var page = require("webpage").create(); | |
| var args = require('system').args; | |
| //pass in the name of the file that contains your tests | |
| var testFile = args[1]; | |
| //pass in the url you are testing | |
| var pageAddress = args[2]; | |
| if (typeof testFile === 'undefined') { | |
| console.error("Did not specify a test file"); |
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
| test { | |
| laded | |
| } |
OlderNewer