Skip to content

Instantly share code, notes, and snippets.

View Tofull's full-sized avatar

Loïc Messal Tofull

View GitHub Profile
Tofull / demo_arcade.js
Created July 23, 2021 15:19
Tutoriel Pin to Jakartowns
// Inspired from :
// Options are "Jakarto", "Google Directions", "Google Panoramic", and "Google Pin"
var EndGoal = "Jakarto"
var BaseUrl = Decode( EndGoal,
"Jakarto", "${LATITUDE}&lng=${LONGITUDE}",
"Google Directions", "${LATITUDE},${LONGITUDE}",
"Google Panoramic", "${LATITUDE},${LONGITUDE}",
"Google Pin", "${LATITUDE},${LONGITUDE}",
Tofull / exploration_open3d.ipynb
Last active October 21, 2020 20:19
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Tofull /
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 /
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 :
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 /
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
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 / usefull
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

atom : Save settings (package only)

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