Skip to content

Instantly share code, notes, and snippets.

View paco-valdez's full-sized avatar

Francisco Valdez de la Fuente paco-valdez

View GitHub Profile
@paco-valdez
paco-valdez / Dockerfile
Created February 16, 2018 18:10
OSRM Fragate Docker Image
FROM alpine:3.6 as buildstage
ARG DOCKER_TAG
RUN mkdir -p /src && mkdir -p /opt
COPY . /src
WORKDIR /src
RUN NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk update && \
Shared Sub Connect(message As [String])
Try
' Create a TcpClient.
' Note, for this client to work you need to have a TcpServer
' connected to the same address as specified by the server, port
' combination.
Dim port As Int32 = 5005
Dim client As New TcpClient("tracking.sintrafico.com", port)
' Translate the passed message into ASCII and store it as a Byte array.
void Connect( String^ message )
{
try
{
// Create a TcpClient.
// Note, for this client to work you need to have a TcpServer
// connected to the same address as specified by the server, port
// combination.
Int32 port = 5005;
TcpClient^ client = gcnew TcpClient( "tracking.sintrafico.com", port );
static void Connect(String message)
{
try
{
// Create a TcpClient.
// Note, for this client to work you need to have a TcpServer
// connected to the same address as specified by the server, port
// combination.
Int32 port = 5005;
TcpClient client = new TcpClient("tracking.sintrafico.com", port);
warnings
/Users/hector/repos/st_sdk_xamarin/SinTrafico.Xamarin/SinTrafico.csproj: Warning NU1701: Package 'Microsoft.Bcl 1.1.10' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. (NU1701) (SinTrafico)
/Users/hector/repos/st_sdk_xamarin/SinTrafico.Xamarin/SinTrafico.csproj: Warning NU1701: Package 'Microsoft.Net.Http 2.2.29' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. (NU1701) (SinTrafico)
/Users/hector/repos/st_sdk_xamarin/SinTrafico.Xamarin.Forms/SinTrafico.Xamarin.Forms.csproj: Warning NU1701: Package 'Microsoft.Bcl 1.1.10' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. (NU1701) (SinTrafico.Xamarin.Forms)
/Users/he
def graphs():
"""
find longest path from X node, max depth from X node, deepst node from x node, all paths
"""
graphA = {'1' : ['2','3'],
'2' : ['1','4','5'],
'3' : ['1'],
'4' : ['2','6','7'],
'5' : ['2','8'],
#LoopA-B
-99.1714489459991,19.4096874430979
-99.1716903448105,19.4099378897724
-99.1717922687531,19.4103401223563
-99.171060025692,19.41193385471
-99.1703063249588,19.4136287764357
-99.1700220108032,19.4142207271055
-99.1697216033936,19.4146710129239
-99.1694533824921,19.4149290413138
-99.1692763566971,19.4150403475517
Ejercito:
-99.18525695800781 19.437638993978613
-99.20085668563843 19.43832697150489
-99.20592069625854 19.438569786406344
-99.21379566192627 19.438913773561776
Homero
-99.18276786804199 19.435311989563974
-99.20126438140869 19.436020211829216
-99.1799783706665 19.4286545492973
-99.18272495269775 19.435311989563974
-99.18096542358398 19.431224474991648
-99.18175935745239 19.432802834395886
-99.19165134429932 19.428452191216575
-99.19744491577148 19.427035677593377
-99.19761657714844 19.431791067311856
-99.19577121734619 19.431588713138684
-99.19047117233276 19.43794251383486
-99.19070720672607 19.43563574869708
-99.21572685241699 19.44223220045214
-99.2114782333374 19.44429606588626
-99.21014785766602 19.44490308013705
-99.2061996459961 19.44793811733449
-99.20547008514404 19.447371581366603
-99.19933319091797 19.444336533573612
-99.1924238204956 19.442636882017393
-99.18959140777588 19.43960174568607
-99.18487071990967 19.438792366413672
-99.18362617492676 19.43753782056711