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
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(); |
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
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 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 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 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 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 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 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 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.content.Context; | |
import android.location.Address; | |
import android.location.Geocoder; | |
import java.io.IOException; | |
import rx.Observable; | |
import rx.Subscriber; | |
import rx.android.schedulers.AndroidSchedulers; | |
import rx.schedulers.Schedulers; |
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 okhttp3.*; | |
import okio.Buffer; | |
import javax.net.ssl.*; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.security.GeneralSecurityException; | |
import java.security.KeyStore; | |
import java.security.cert.Certificate; | |
import java.security.cert.CertificateFactory; |
OlderNewer