Install venv:
sudo apt-get install python3-venv
Create a virtual environment:
python3 -m venv env_name
| // Time complexity of this solution is O(√n) | |
| fn is_prime(n : i32) -> bool { | |
| if n <= 1 { | |
| return false; | |
| } | |
| for i in 2..n-1{ | |
| if n%i == 0 { | |
| return false; |
| // Calculate distance between Latitude/Longitude points | |
| // This uses the ‘haversine’ formula to calculate the great-circle distance between two points. | |
| // Sources: | |
| // http://www.movable-type.co.uk/scripts/latlong.html | |
| // https://stackoverflow.com/questions/27928/calculate-distance-between-two-latitude-longitude-points-haversine-formula | |
| // Distance in km | |
| function deg2rad(deg): number { | |
| return deg * (Math.PI/180); |
| #!/bin/sh | |
| # Script para instalar R y RStudio en Ubuntu 16.04 Xenial de 64-bit | |
| sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E084DAB9 | |
| sudo add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/' | |
| sudo apt-get update | |
| sudo apt-get install r-base | |
| sudo apt-get install r-base-dev |
| <div class="col-md-4 col-sm-6"> | |
| <div class="schedule-box"> | |
| <div class="time"> | |
| <time datetime="10:30"></time> - <time datetime="11:00"></time> | |
| </div> | |
| <h3 class="h3-sp">Wordpress, más que Blogs</h3> | |
| <p>Instructor: Rodrigo Patiño</p> | |
| <a class="btn btn-white" href="#" data-toggle="modal" data-target="#modalWordpressMasqueBlogs">Más info</a> | |
| </div> |
echo 'export PATH=$PATH:$HOME/.cargo/bin' >> ~/.bashrccd ~
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
bash Anaconda3-5.1.0-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-5.1.0-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc
# Refresh
source .bashrc php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
php -r "unlink('composer-setup.php');"
composer --version| <?php | |
| /** | |
| * PostGIS to GeoJSON | |
| * Query a PostGIS table or view and return the results in GeoJSON format, suitable for use in OpenLayers, Leaflet, etc. | |
| * | |
| * @param string $geotable The PostGIS layer name *REQUIRED* | |
| * @param string $geomfield The PostGIS geometry field *REQUIRED* | |
| * @param string $srid The SRID of the returned GeoJSON *OPTIONAL (If omitted, EPSG: 4326 will be used)* | |
| * @param string $fields Fields to be returned *OPTIONAL (If omitted, all fields will be returned)* NOTE- Uppercase field names should be wrapped in double quotes | |
| * @param string $parameters SQL WHERE clause parameters *OPTIONAL* |
| module ProtobufSerializationTests | |
| open System | |
| open System.IO | |
| open ProtoBuf | |
| open Xunit | |
| module ProtoBufUtils = | |
| [<ProtoContract>] |