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 java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.List; | |
import java.util.Map; | |
public class NetworkTest { |
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 | |
REQUIRED_ARGS=2 | |
ADB_PATH=/Users/Tadas/Library/sdk/platform-tools/adb | |
PULL_DIR="~/" | |
if [ $# -ne $REQUIRED_ARGS ] | |
then | |
echo "" | |
echo "Usage:" |
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
/* | |
* Your existing stylesheet | |
*/ | |
.editor, | |
.tree-view-resizer { | |
::-webkit-scrollbar { | |
width: 2em; | |
height: 2em; | |
} |
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
class TestUtils { | |
public static String getThreadDetails() { | |
if (Looper.myLooper() == Looper.getMainLooper()) | |
return "Currently running on the main thread. "+getThreadName(); | |
else | |
return "Not running on the main thread. "+getThreadName(); | |
} | |
public static String getThreadName() { | |
return Thread.currentThread().getName()+" - "+Thread.currentThread().getId(); |
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() { | |
var CssSelectorGenerator, root, | |
indexOf = [].indexOf || function(item) { | |
for (var i = 0, l = this.length; i < l; i++) { | |
if (i in this && this[i] === item) return i; | |
} | |
return -1; | |
}; | |
CssSelectorGenerator = (function() { |
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
#!/usr/bin/env zsh | |
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
setopt promptsubst | |
autoload -U add-zsh-hook | |
PROMPT_SUCCESS_COLOR=$FG[117] | |
PROMPT_FAILURE_COLOR=$FG[124] | |
PROMPT_VCS_INFO_COLOR=$FG[242] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<button id="heybutton" onclick="clickme()">Update</button> |
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
//Originally from http://plnkr.co/edit/gcjJgFcMs189rF1ucGQa?p=preview | |
========================= CSV =========================== | |
"id","order","score","weight","color","label" | |
"FIS",1.1,59,2,"#9E0041","Fisheries" | |
"MAR",1.3,24,0.5,"#C32F4B","Mariculture" | |
"AO",2,98,1,"#E1514B","Artisanal Fishing Opportunities" | |
"NP",3,60,1,"#F47245","Natural Products" | |
"CS",4,74,1,"#FB9F59","Carbon Storage" | |
"CP",5,70,1,"#FEC574","Coastal Protection" | |
"TR",6,42,1,"#FAE38C","Tourism & Recreation" |