Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using Core.GIS.Geodatabase; | |
using ESRI.ArcGIS.Carto; | |
using ESRI.ArcGIS.esriSystem; | |
using ESRI.ArcGIS.Geodatabase; | |
namespace Core.GIS.Carto |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using ESRI.ArcGIS.Carto; | |
using ESRI.ArcGIS.Display; | |
using ESRI.ArcGIS.Geometry; | |
using ESRI.ArcGIS.Output; | |
using ESRI.ArcGIS.esriSystem; |
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 django.template import Library | |
register = Library() | |
@register.filter | |
def split_timeuntil(duration, chunks=1): | |
return ", ".join(duration.split(",")[0:chunks]) |
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
#!/bin/bash | |
SERVIDOR=$1 | |
PORTA=$2 | |
BANCO_DADOS=$3 | |
USUARIO=$4 | |
SENHA=$5 | |
CAMINHO_SAIDA=$6 | |
NOME_TABELA=$7 | |
NOME_VIEW=$8 |
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 AppModelMixin(models.Model): | |
""" | |
Este modelo tem em seus atributos dados para referenciar uma | |
aplicação e um modelo django. | |
""" | |
app = models.CharField(max_length=128, | |
verbose_name=u"Aplicação Django", | |
help_text=u"Aplicação Django que contém o modelo em questão") | |
modelo = models.CharField(max_length=128, | |
verbose_name=u"Modelo Django", |
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
#!/bin/bash | |
# forma de uso ./exportar <host> <porta> <nome_do_banco_de_dados> <usuario> <senha> <caminho> <formato> | |
# este script depende de: lib32z1 lib32ncurses5 lib32bz2-1.0 e filegdbapi | |
export SHAPE_ENCODING="ISO-8859-1" | |
SERVIDOR=$1 | |
PORTA=$2 | |
BANCO_DADOS=$3 | |
USUARIO=$4 | |
SENHA=$5 |
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
#!/usr/bin/env python | |
import os | |
import sys | |
import Image | |
EXTENSIONS = ".jpg", ".jpeg", ".png", ".bmp", ".tif" | |
SIZE = 1024, 768 | |
def redimensionar_imagens(dir_): |
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 class GeradorMemorialDescritivo | |
{ | |
public GeradorMemorialDescritivo() | |
{} | |
public IMemorialDescritivo GerarMemorial(IFeature feature) | |
{ | |
var geometria = feature.ShapeCopy as IPointCollection; | |
var lista = new List<IAzimuteDistancia>(); |
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 | |
from twisted.internet.protocol import Factory | |
from twisted.protocols.basic import LineReceiver | |
from twisted.internet import reactor | |
class Gateway(LineReceiver): | |
"""Classe para lidar com as conexões""" |
NewerOlder