Skip to content

Instantly share code, notes, and snippets.

Avatar

Loïc Messal Tofull

View GitHub Profile
@Tofull
Tofull / atom-installer.sh
Last active Mar 28, 2017
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
View atom-installer.sh
#!/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 Apr 26, 2017
usefull commands for some utilities
View usefull commands.md

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
@Tofull
Tofull / spacy_test.py
Created Jul 8, 2017
language detector
View spacy_test.py
from textblob.classifiers import NaiveBayesClassifier
train = [
('amor', "spanish"),
("perro", "spanish"),
("playa", "spanish"),
("sal", "spanish"),
("oceano", "spanish"),
("love", "english"),
("dog", "english"),
@Tofull
Tofull / exploration_open3d.ipynb
Last active Oct 21, 2020
exploration_open3d.ipynb
View 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 / OSMParser.py
Last active Nov 3, 2020 — forked from aflaxman/gist:287370
networkx-osm import open street map data as a networkx graph
View OSMParser.py
"""
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 / demo_arcade.js
Created Jul 23, 2021
Tutoriel Pin to Jakartowns
View demo_arcade.js
// 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"