Skip to content

Instantly share code, notes, and snippets.

Gabriel Delépine GabrielDelepine

Block or report user

Report or block GabrielDelepine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@GabrielDelepine
GabrielDelepine / Compile Pandoc for Linux with stack
Created Feb 2, 2017
How to compile Pandoc to a stand-alone binary file for Linux with stack
View Compile Pandoc for Linux with stack
# Clone the Pandoc repository
git clone https://github.com/jgm/pandoc.git && cd pandoc
# checkout the tag corresponding to the targeted version
git checkout 1.19.2
# fetch submodules
git submodule update --init
# Install stack
@GabrielDelepine
GabrielDelepine / some_usefull_js_fn.js
Last active Aug 29, 2015
Some usefull javascript functions
View some_usefull_js_fn.js
var getDistanceFromGPS = function(lat1, lon1, lat2, lon2) /* Return float. Unit is the metter */
{
if(parseFloat(lat1) != lat1 || parseFloat(lon1) != lon1 || parseFloat(lat2) != lat2 || parseFloat(lon1) != lon1)
throw("Error params. Only float value accepted.");
if(lat1 < 0 || lat1 > 90 || lat2 < 0 || lat2 > 90)
throw("Error params. The params lat1 and lat2 must be 0< ? <90. Here lat1 = "+lat1+" and lat2 = "+lat2);
if(lon1 < -180 || lon1 > 180 || lon2 < -180 || lon2 > 180)
throw("Error params. The params lon1 and lon2 must be -180< ? <180. Here lon1 = "+lon1+" and lon2 = "+lon2);
@GabrielDelepine
GabrielDelepine / bootstrap-dropdown-menu-sliding.css
Last active May 24, 2016 — forked from orizens/bootstrap-dropdown-menu-sliding.css
This file include only a fixed bug compare the original one : dropdown menu was always open in other browser than webkit. (I only add "transform: scale(1, 0)" at the line N°18)
View bootstrap-dropdown-menu-sliding.css
.open > .dropdown-menu {
-webkit-transform: scale(1, 1);
transform: scale(1, 1);
}
.open > .dropdown-menu li a {
color: #000;
}
.dropdown-menu li a{
color: #fff;
You can’t perform that action at this time.