Skip to content

Instantly share code, notes, and snippets.

@gssxgss
gssxgss / how-to-install-postgis-on-macos.md
Created July 12, 2017 09:07
Install PostGIS on macOS
  1. install postgis
    $ brew install postgis
  2. start PostgreSQL service
    $ brew services start postgres
    stop PostgreSQL service
@gssxgss
gssxgss / animation related mixin
Created May 19, 2014 11:11
animation related mixin
@gssxgss
gssxgss / group mixin
Created May 19, 2014 11:09
group/clearfix mixin
// group
=group
&:after
content: ""
display: table
clear: both
@gssxgss
gssxgss / media query mixin
Created May 19, 2014 11:08
media query mixin
// media query break point
// if 1em == 16px then 40em == 640px
=media($point)
@if $point == "mobile"
@media (max-width: 40em)
@content
@else if $point == "mobile2x"
@media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 2dppx)
@content
@gssxgss
gssxgss / all versions of flex
Created May 19, 2014 11:03
[sass mixin] all versions of css3 flex
/*
* FLEX MIXINS
*
* NOTE: ! for reason to adapt the prefix
*
*
* Old Syntax / 2009 Syntax / Box Syntax / WD
* http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/
*
* -webkit
@gssxgss
gssxgss / linear-gradient with fallback
Last active August 29, 2015 13:57
[sass minxin] linear-gradient with bg-color fallback
/* Functions */
/*
* $c1 == $c2
*/
@function isSameColor($c1, $c2)
@return red($c1) == red($c2) and green($c1) == green($c2) and blue($c1) == blue($c2)
/*
* Get Middle Color