Skip to content

Instantly share code, notes, and snippets.

View Tofull's full-sized avatar

Loïc Messal Tofull

View GitHub Profile
@Tofull
Tofull / demo_arcade.js
Created July 23, 2021 15:19
Tutoriel Pin to Jakartowns
// Inspired from : https://github.com/Esri/arcade-expressions/blob/master/popup/url-withlocation.md
// Options are "Jakarto", "Google Directions", "Google Panoramic", and "Google Pin"
var EndGoal = "Jakarto"
var BaseUrl = Decode( EndGoal,
"Jakarto", "https://maps.jakarto.com/?lat=${LATITUDE}&lng=${LONGITUDE}",
"Google Directions", "https://www.google.com/maps/dir/?api=1&origin=Current+Location&destination=${LATITUDE},${LONGITUDE}",
"Google Panoramic", "https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=${LATITUDE},${LONGITUDE}",
"Google Pin", "https://maps.google.com/maps?t=k&q=loc:${LATITUDE},${LONGITUDE}",
"Invalid"
@Tofull
Tofull / exploration_open3d.ipynb
Last active October 21, 2020 20:19
exploration_open3d.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Tofull
Tofull / spacy_test.py
Created July 8, 2017 08:02
language detector
from textblob.classifiers import NaiveBayesClassifier
train = [
('amor', "spanish"),
("perro", "spanish"),
("playa", "spanish"),
("sal", "spanish"),
("oceano", "spanish"),
("love", "english"),
("dog", "english"),
@Tofull
Tofull / OSMParser.py
Last active November 3, 2020 10:55 — forked from aflaxman/gist:287370
networkx-osm import open street map data as a networkx graph
"""
Read directional graph from Open Street Maps osm format
Based on the osm to networkx tool from aflaxman : https://gist.github.com/aflaxman/287370/
Use python3.6
Added :
- : Python3.6 compatibility
- : Cache for avoiding to download again the same osm tiles
- : distance computation to estimate length of each ways (useful to compute the shortest path)
@Tofull
Tofull / atom-installer.sh
Last active March 28, 2017 14:42
Script to install atom with the same configuration. List of the packages I used with atom. Restore the packages with : apm install --packages-file packages.list
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
function usage()
{
echo "Atom installer with my package set. Requires sudo privileges. Without the option --no-install, install the atom editor"
@Tofull
Tofull / usefull commands.md
Last active April 26, 2017 12:00
usefull commands for some utilities

Convert markdown to pdf with customized marges

  pandoc -V geometry:margin=1in -o CR_12012017.pdf CR_12012017.md

atom : Save settings (package only)

  apm list --installed --bare > packages.list  
  apm install --packages-file packages.list