Skip to content

Instantly share code, notes, and snippets.


Philippe Lhoste PhiLhoSoft

View GitHub Profile
PhiLhoSoft / AutomatedWriter.ahk
Last active Dec 14, 2015
AutoHotkey script to draw letters, digits and some punctuation characters with the mouse.Designed to draw on BigCanvas, but tested on Windows Paint and should work on any similar program.
View AutomatedWriter.ahk
// by Philippe Lhoste <PhiLho(a)>
// File/Project history:
1.00.000 -- Today (PL) -- Lastest version (updated regularly!).
0.01.000 -- 2013/02/12 (PL) -- Creation.
/* Copyright notice: For details, see the following file:
This program is distributed under the zlib/libpng license.
Copyright (c) 2013 Philippe Lhoste / PhiLhoSoft
PhiLhoSoft / BigCanvas
Last active Dec 13, 2015
BigCanvas: My drawings. At least, they are mine at the time of referencing, they can be altered, defaced, obliterated, etc.
View BigCanvas
Small island with a palm tree, an ugly guy,6,446,492
A shark,XO,56,17
Japanese skewer,KG,324,389
Weight and hammer, mouse and bird,l,240,492
Transform part of the big dashed line into a stair, and someone (?) climbing it,x,73,246
View anchor.js
/* Anchor array: [ x, y, dx, dy ]
x, y (close of square): position on node, 0.0 to 1.0
dx, dy (end of arrows): direction, -1, 0 or 1
0,0 0.5,0 1,0
PhiLhoSoft /
Created Jun 23, 2015
Improving Most.js' Drag'n'Drop example
PhiLhoSoft / Lozenge.svg
Created Jun 18, 2015
Testing if Gists show a preview of SVG
View Lozenge.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
PhiLhoSoft / ConvertGeoJsonToAdHocJson.js
Last active Aug 29, 2015
Convert (some kind of) GeoJson file to a (specific kind of) Json file, in SVG path format, using Node.js platform
View ConvertGeoJsonToAdHocJson.js
// Convert a limited / specific subset of GeoJson (the samples I had to convert...) to a specific Json format (for HighMaps),
// using the SVG path format.
// Made to run on the Node.js platform.
// Should accept more encodings, using a conversion library.
var fs = require('fs');
var arguments = process.argv;
//~ var inputFileName = __dirname + '/config.json';
var inputFileName = arguments[2], outputFileName, encoding;
PhiLhoSoft / index.html
Created May 1, 2015
First application with Mithril
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Playing with Mithril</title>
<link rel="stylesheet" href="style.css">
<h1>Playing with <a href="">Mithril</a></h1>
PhiLhoSoft / FizzBuzz.ceylon
Last active Aug 29, 2015
Ceylon functional FizzBuzz, two versions
View FizzBuzz.ceylon
shared void fizzBuzz()
print("## FizzBuzz 1 ##");
Iterable<String> fizzBuzz1(Integer count = 20)
return (1 .. count).map((Integer c) =>
15.divides(c) then "FizzBuzz" else
(3.divides(c) then "Fizz" else
(5.divides(c) then "Buzz" else c.string)));