Skip to content

Instantly share code, notes, and snippets.

/**
* Converts an RGB color value to HSL. Conversion formula
* adapted from http://en.wikipedia.org/wiki/HSL_color_space.
* Assumes r, g, and b are contained in the set [0, 255] and
* returns h, s, and l in the set [0, 1].
*
* @param Number r The red color value
* @param Number g The green color value
* @param Number b The blue color value
* @return Array The HSL representation
@mikatalk
mikatalk / Apache-proxy-pass-to-local-node-server
Created November 30, 2017 05:12
Apache proxy pass to local node server
```
# /etc/hosts
127.0.0.1 node.server.local
```
```
# httpd.conf
@mikatalk
mikatalk / gist:f9ffcefa4a35e279f2228c3288a47a69
Created April 8, 2019 17:00
Install QGIS on Mojave 10.14.3
brew cask install xquartz
brew tap osgeo/osgeo4mac
brew unlink python && brew link --force python
brew reinstall ninja gsl python qt osgeo-sip osgeo-pyqt osgeo-pyqt-webkit osgeo-qscintilla2 six bison flex pkg-config
brew link --overwrite osgeo-pyqt
brew unlink gettext && brew link --force gettext
ulimit -n 2048
brew install osgeo-qgis