Most basic example to center and scale your map with d3.geoBounds(), d3.geoCentroid() and d3.geoDistance().
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
{ | |
"name": "wordpress-search-react", | |
"version": "1.0.0", | |
"description": "Powering WordPress Search with React and REST API", | |
"main": "assets/js/public.js", | |
"scripts": { | |
"build": "webpack", | |
"watch": "webpack --watch", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, |
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
<?php | |
/** | |
* Premailer API PHP class | |
* Premailer is a library/service for making HTML more palatable for various inept email clients, in particular GMail | |
* Primary function is to convert style tags into equivalent inline styles so styling can survive <head> tag removal | |
* Premailer is owned by Dialect Communications group | |
* @link http://premailer.dialect.ca/api | |
* @author Marcus Bointon <marcus@synchromedia.co.uk> | |
*/ | |
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
"overrides": { | |
"bootstrap": { | |
"main": [ | |
"./scss/_variables.scss", | |
"./scss/_mixins.scss", | |
"./scss/_custom.scss", | |
"./scss/_normalize.scss", | |
"./scss/_print.scss", | |
"./scss/_reboot.scss", | |
"./scss/_type.scss", |
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
Sublime Text Plugins iCloud Drive | |
First Machine | |
On your first machine, use the following instructions. | |
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/ | |
$ mkdir ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins | |
$ mv User ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins | |
$ ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Web\ Dev/Plugins/User |
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
function ConvertGoogleDocToCleanHtml() { | |
var body = DocumentApp.getActiveDocument()//.getBody(); | |
var numChildren = body.getNumChildren(); | |
var output = []; | |
var images = []; | |
var listCounters = {}; | |
var toc = {} | |
for (var i = 0; i < numChildren; i++) { | |
var p = body.getChild(i); |
NewerOlder