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 getHumanAddress(geoObject){ | |
var declaration = { | |
'CountryName': 'country', | |
'AdministrativeAreaName': 'area', | |
'SubAdministrativeAreaName': 'subarea', | |
'LocalityName': 'city', | |
'DependentLocalityName': 'subcity', | |
'ThoroughfareName': 'street', | |
'PremiseNumber': 'house' | |
}, |
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
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User | |
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User | |
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User | |
[ | |
{ | |
"button": "button1", | |
"count": 1, | |
"modifiers": ["ctrl"], | |
"press_command": "drag_select", |
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
import React from 'react'; | |
import { render } from 'react-dom'; | |
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; | |
/* | |
* Puts Redux DevTools into a separate window. | |
* Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218 | |
*/ | |
export default function createDevToolsWindow(store) { | |
// Give it a name so it reuses the same window |
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
export const parseRGBa = palette => { | |
palette = palette.replace(/[^0-9.,]/g, '').split(',').map(Number) | |
if(palette.length == 3) palette.push(1) // add alpha if missed | |
return palette | |
} |