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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<HTML> | |
<HEAD> | |
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<TITLE>Pedido de Vendas MODELO</TITLE> | |
<META name="savemobile" content="Modelo de Pedidos de Venda 1.0"> | |
<STYLE type="text/css"> | |
body {margin-top: 0px;margin-left: 0px;} |
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 br.com.saveinformatica.vendas.presenter; | |
import android.app.Activity; | |
import android.os.Build; | |
import android.print.PrintAttributes; | |
import androidx.annotation.RequiresApi; | |
import com.hendrix.pdfmyxml.CreatePdf; | |
import com.leoneves.easylogger.Logger; |
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.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.util.Base64; | |
import android.util.Log; | |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; |
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
{ | |
"id": "formularioCadastroFazenda", | |
"title": "Cadastro de Fazenda", | |
"components": [ | |
{ | |
"id": "mapaDesenho", | |
"type": "map", | |
"title": "Desenhar Gleba", | |
"gravity": "left", | |
"required": true, |
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 addMarker(String id, String key, String titulo, int cor, LngLatAlt lngLatAlt) { | |
IconGenerator iconGenerator = new IconGenerator(context); | |
iconGenerator.setColor(cor); | |
iconGenerator.setTextAppearance(R.style.iconGenText); | |
Bitmap bitmapBackground = iconGenerator.makeIcon(titulo); | |
addMarker(id, key, bitmapBackground, lngLatAlt); | |
} | |
public void addMarker(String key, String titulo, int cor, LngLatAlt lngLatAlt) { | |
addMarker(null, key, titulo, cor, lngLatAlt); |
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
from flask import Flask, jsonify, request | |
app = Flask(__name__) | |
app.debug = True | |
@app.route("/") | |
def hello(): | |
return "Hello World!" | |
@app.route('/login.json', methods=["GET", "POST"]) | |
def login(): |
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 static String convertListLatLngToGeoJson(List<LatLng> latLngs){ | |
if (latLngs.size()==0) | |
return null; | |
String geoJson = "{\"type\":\"Polygon\",\"coordinates\":[["; | |
for (LatLng latLng : latLngs){ | |
geoJson+="["+latLng.longitude+","+latLng.latitude+"],"; | |
} | |
geoJson+="["+latLngs.get(0).longitude+","+latLngs.get(0).latitude+"]"; | |
geoJson+="]]}"; | |
return geoJson; |
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 br.agr.terras.corelibrary.infraestructure.resources.geo; | |
import android.location.Location; | |
import android.util.Log; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created by leo on 15/09/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 br.agr.terras.corelibrary.infraestructure.resources.geo; | |
import android.location.Location; | |
import com.google.android.gms.maps.model.LatLng; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** |
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 String convertListLatLngToGeoJson(List<LatLng> latLngs){ | |
if (latLngs.size()==-0) | |
return null; | |
String geoJson = "{\"type\":\"Polygon\",\"coordinates\":[["; | |
for (LatLng latLng : latLngs){ | |
geoJson+="["+latLng.latitude+","+latLng.longitude+"],"; | |
} | |
geoJson = geoJson.substring(0,geoJson.length()-1); | |
geoJson+="]]}"; | |
return geoJson; |
NewerOlder