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
Ion.with(mContext) | |
.load("GET", "http:.....") | |
.setLogging("get collection feed item", Log.VERBOSE) | |
.setHeader("Authorization", "Bearer " + mAccessToken) | |
.asJsonObject() | |
.setCallback(new FutureCallback<JsonObject>() { | |
@Override | |
public void onCompleted(Exception e, JsonObject result) { | |
if(e == null){ |
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
package theappdevelopers.networkutilstest.utils; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.telephony.TelephonyManager; | |
/** | |
* Created by ivanwooll on 05/08/15. | |
*/ |
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
package theappdevelopers.ocrreceiptscanner; | |
import android.content.Context; | |
import android.content.res.AssetManager; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
@FormUrlEncoded | |
@POST("oauth/token") | |
Call<AuthResponseModel> auth( | |
@Field("username") String username, | |
@Field("password") String password, | |
@Field("grant_type") String grant_type, | |
@Field("client_id") Integer client_id, | |
@Field( | |
"client_secret") String client_secret |
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
[ | |
{ | |
"args": null, | |
"command": "select_all" | |
}, | |
{ | |
"args": null, | |
"command": "okhttplogremove" | |
}, | |
{ |
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
# -*- coding: utf-8 -*- | |
import re | |
import sublime | |
import sublime_plugin | |
class OkhttplogremoveCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
for region in self.view.sel(): |
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 sublime, sublime_plugin, re, string | |
class KdcformatCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
for region in self.view.sel(): | |
if not region.empty(): | |
s = self.view.substr(region) | |
news = s.replace('[', '[\n\t') |