This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Dmytro on 3/27/2016. | |
*/ | |
var browserify = require('browserify'), | |
gulp = require('gulp'), | |
sourcemaps = require('gulp-sourcemaps'), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
source = require('vinyl-source-stream'), | |
buffer = require('vinyl-buffer'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @method addParentSelectorForRules - adding additional class to all your css selectors | |
* @returns {String} | |
* | |
* | |
* | |
Example: | |
Before processing | |
"header {background-color: red}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//explanation https://en.wikipedia.org/wiki/Geographic_coordinate_system | |
const EARTH_RADIUS = 6378137; | |
const center = { | |
lat: YOUR_CENTER_LATIDUTE, | |
lng: YOUR_CENTER_LONGITUDE | |
}; | |
const radianLat = YOUR_RADIUS_IN_METERS / EARTH_RADIUS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div scroll-end="loadMore()"> |