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 android.support.test.espresso.IdlingResource; | |
public class ConditionalTimeoutIdlingResource implements IdlingResource { | |
private final long startTime; | |
private final long waitingTime; | |
private ResourceCallback resourceCallback; | |
private ConditionalResourceCallback conditionalResourceCallback = new ConditionalResourceCallback() { | |
@Override | |
public boolean meetsCondition() { |
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 android.os.Bundle; | |
import android.os.Parcelable; | |
import android.support.annotation.NonNull; | |
import android.util.SparseArray; | |
import android.view.ViewGroup; | |
import com.bluelinelabs.conductor.Controller; | |
import com.bluelinelabs.conductor.Router; | |
import com.bluelinelabs.conductor.RouterTransaction; |
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 android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
public class MyActivity extends AppCompactActivity { | |
private static final String FRAGMENT_ONE = "FRAGMENT_ONE"; | |
private static final String FRAGMENT_TWO = "FRAGMENT_TWO"; |
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
# IntelliJ IDEA | |
.idea | |
*.iml | |
annotations | |
classes | |
captures | |
projectFilesBackup | |
# Generated | |
bin |
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
<?php | |
echo "PHP_SELF: " . $_SERVER['PHP_SELF']; | |
echo "<br>"; | |
echo "GATEWAY_INTERFACE: " . $_SERVER['GATEWAY_INTERFACE']; | |
echo "<br>"; | |
echo "SERVER_ADDR: " . $_SERVER['SERVER_ADDR']; | |
echo "<br>"; | |
echo "SERVER_NAME: " . $_SERVER['SERVER_NAME']; | |
echo "<br>"; | |
echo "SERVER_SOFTWARE: " . $_SERVER['SERVER_SOFTWARE']; |
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 gitlabFeed($privateToken) { | |
$.ajax({ | |
type: "GET", | |
url: "http://cors.io/?u=https://gitlab.com/dashboard/projects.atom?private_token=" + $privateToken, | |
cache: false, | |
dataType: 'xml', | |
success: function(result) { | |
console.log("projects.atom loaded"); | |
var feed = $("<div>",{html: result.firstChild}); |
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
Show hidden characters
{ | |
"folders": | |
[ | |
{ | |
"path": ".", | |
"folder_exclude_patterns": [".svn", "._d", ".metadata", ".settings", ".git", "*Debug"], | |
"file_exclude_patterns": ["*.pyc", "*.pyo", ".project"] | |
} | |
], | |
"build_systems": |
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 githubFeed($user) { // string param for GitHub username | |
$.ajax({ | |
type: "GET", | |
url: "http://cors.io/?u=https://github.com/" + $user + ".atom", | |
cache: false, | |
dataType: 'xml', | |
success: function(result) { | |
console.log($user + ".atom loaded"); | |
var atom = $("<span />", { html: result.firstChild }).text(); |
NewerOlder