Skip to content

Instantly share code, notes, and snippets.

Wesley Viana wviana

Block or report user

Report or block wviana

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View test.sql
SELECT
LOC.NR_GEO_LCL as IdLocalidade,
cast(ROUND(IsNull(SUM(FAT.QT_DNC_VND), 0), 0) * -1 as decimal(15,6)) as Valor
FROM FATO_AGG_SEG FAT (nolock)
JOIN DIMENSAO_LOCALIDADE LOC (nolock) ON LOC.SK_DIM_LCL = FAT.SK_DIM_LCL
JOIN DIMENSAO_TEMPO TMP (nolock) ON TMP.SK_DIM_TMP = FAT.SK_DIM_TMP
AND TMP.NR_NVL_RSU = 2
AND TMP.AN_MM between 201501 and 201512
JOIN DIMENSAO_SEGMENTO SEG with(nolock)
ON SEG.SK_DIM_SGM = FAT.SK_DIM_SGM AND
View 1stTry.java
private boolean initMap() {
if (mMap == null) {
//mMap = new GigMobileMap(mMapView.getExtendedMap());
mMapView.getExtendedMapAsync(new OnMapReadyCallback() {
@Override
public void onMapReady(GoogleMap googleMap) {
GigMobileMap tmpMap = new GigMobileMap(googleMap);
MapsInitializer.initialize(getActivity());
tmpMap.initMap(getActivity(), mapListener);
mMap = tmpMap;
View Retrofit_Error.log
05-05 11:18:25.498 12518-12722/neocom.dealerbook E/AndroidRuntime: FATAL EXCEPTION: Retrofit-Idle
Process: neocom.dealerbook, PID: 12518
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Throwable.getMessage()' on a null object reference
at retrofit.CallbackRunnable.run(CallbackRunnable.java:50)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at retrofit.Platform$Android$2$1.run(Platform.java:142)
View railsS.log
=> Booting WEBrick
=> Rails 4.1.13 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Started GET "/" for 127.0.0.1 at 2016-05-02 17:32:43 -0300
SQL (6.9ms) USE [GL]
ActiveRecord::SchemaMigration Load (12.0ms) EXEC sp_executesql N'SELECT [schema_migrations].* FROM [schema_migrations]'
View MonthSelectDialog.java
package neocom.dealerbook.fragments;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import neocom.dealerbook.R;
View GeojsonWeightedDataAdapter.java
package neocom.dealerbook.models.layer.dataAdapter;
import com.cocoahero.android.geojson.FeatureCollection;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.LatLngBounds;
import com.google.maps.android.heatmaps.WeightedLatLng;
import org.json.JSONException;
import org.json.JSONObject;
View GeojsonWeightedDataAdapterTest.java
import com.cocoahero.android.geojson.FeatureCollection;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockito.internal.util.io.IOUtil;
import java.io.BufferedReader;
View method.java
//This is what I'm doing but getting RadioButton width as 0. :(
public void addPresenter(int icon){
RadioButton presenter = new RadioButton(getContext());
//Configura atributos padrão
Drawable drawable = getResources().getDrawable(icon);
presenter.setCompoundDrawables(drawable, null, null, null);
presenter.setButtonDrawable(null);
View LayerView.java
package neocom.dealerbook.views;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.Transformation;
View PicassoExample.java
private void updatePhoto() {
foto.setVisibility(View.VISIBLE);
Picasso.with(getActivity())
.load(getPhotoRequestPath())
.into(foto, getStreetViewImage);
}
You can’t perform that action at this time.