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
class AbastecimentoSerializerViewSet(viewsets.ModelViewSet): | |
"""docstring for UserViewSet""" | |
model = Abastecimento | |
serializer_class = AbastecimentoSerializer |
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
AsyncHttpClient client = new AsyncHttpClient(); | |
RequestParams params = new RequestParams(); | |
params.put("valor_etanol", this.valorEtanol); | |
params.put("valor_gasolina", this.valorGasolina); | |
params.put("valor_diesel", this.valorDiesel); | |
params.put("posto", "COMO INSERIR AQUI O OBJETO POSTO?"); | |
client.addHeader("Authorization", String.format("Token %s", token)); | |
client.post(uri, params, new AsyncHttpResponseHandler() { | |
@Override |
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
<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --> | |
<android.support.v4.widget.DrawerLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:id="@+id/drawer_layout" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".HomeActivity"> | |
<!-- As the main content view, the view below consumes the entire |
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
Process: MailCompositionService [1252] | |
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/MailCompositionService.app/MailCompositionService | |
Identifier: MailCompositionService | |
Version: 1.0 (1.0) | |
Code Type: X86-64 (Native) | |
Parent Process: launchd_sim [687] | |
Responsible: launchd_sim [687] | |
User ID: 501 | |
Date/Time: 2015-03-31 13:14:56.433 -0300 |
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
<div class="message [[type]]" ng-hide="[[show]]"> | |
[[text]] | |
</div> |
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
.directive('dvMessage', function($compile){ | |
return{ | |
restrict: 'E', | |
replace: true, | |
scope: { | |
text: '@messageText', | |
type: '@messageType', | |
show: '@messageShow', | |
}, | |
templateUrl :'/directive/message/' |
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
<dv-message message-show="[[messageShow]]" message-text="[[messageText]]" message-type="[[messageType]]"></dv-message> |
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.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; |
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
public void onNavDrawerItemSelected(NavigationDrawerFragment navigationDrawerFragment, int i) { | |
if(allCities.size() > 0 && !allCities.isEmpty()){ | |
City cityChosen = allCities.get(i); | |
Toast.makeText(this, cityChosen.getName(), Toast.LENGTH_LONG).show(); | |
setCityChoice(cityChosen); | |
// Criando uma instancia do TabEventFragment | |
TabEventFragment tabEvent = new TabEventFragment(); | |
// Chamando o método para atualizar os dados conforme a cidade escolhida. | |
tabEvent.getNewData(getContext(), cityChosen); | |
} |
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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
tools:context="nuvols.com.br.minhacidade.InstagramPlace"> | |
<include layout="@layout/include_toolbar_transluced" /> | |
<ProgressBar |