wget http://download.geofabrik.de/russia-latest.osm.pbf
osmconvert russia-latest.osm.pbf -o=russia-latest.o5m
osmfilter russia-latest.o5m --keep="highway=*" > russia-highways.osm
This file contains hidden or 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
| { | |
| "parser": "@typescript-eslint/parser", | |
| "parserOptions": { | |
| "project": "./tsconfig.json" | |
| }, | |
| "extends": [ | |
| "airbnb", | |
| "plugin:@typescript-eslint/eslint-recommended", | |
| "plugin:@typescript-eslint/recommended", | |
| "plugin:@typescript-eslint/recommended-requiring-type-checking", |
This file contains hidden or 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
| # -*- sh -*- vim:set ft=sh ai et sw=4 sts=4: | |
| # It might be bash like, but I can't have my co-workers knowing I use zsh | |
| PROMPT='%{$fg[green]%}%n@%{$fg[red]%}%m:%{$fg_bold[blue]%}%2~ $(git_prompt_info)%{$reset_color%}%(!.#.$) ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}‹" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="›%{$reset_color%}" |
This file contains hidden or 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
| // | |
| // ViewController.swift | |
| // SuperApp-iOS | |
| // | |
| // Created by Stepan Kuzmin on 05/08/2019. | |
| // Copyright © 2019 Stepan Kuzmin. All rights reserved. | |
| // | |
| import UIKit | |
| import WebKit |
This file contains hidden or 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 aiohttp | |
| from asyncio import Future | |
| from unittest.mock import MagicMock, Mock, patch | |
| def test_taxi_route_info(aiohttp_client, loop): | |
| async def taxi_route_info(): | |
| connector = aiohttp.TCPConnector(ssl=False) | |
| session = aiohttp.ClientSession(connector=connector, loop=loop) | |
| taxi_route_info = TaxiRouteInfo(session=session) |
This file contains hidden or 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
| apt-get update | |
| apt-get install python3 | |
| update-alternatives --install /usr/bin/python python /usr/bin/python3 10 |
This file contains hidden or 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
| // https://doc.rust-lang.org/rust-by-example/error/iter_result.html#fail-the-entire-operation-with-collect | |
| use std::num::ParseFloatError; | |
| fn get_waypoints(path: String) -> Result<Vec<Vec<f64>>, ParseFloatError> { | |
| path | |
| .split(';') | |
| .map(|waypoint| waypoint.split(',').map(|c| c.parse::<f64>()).collect()) | |
| .collect() | |
| } |
This file contains hidden or 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
| version: '3.7' | |
| services: | |
| nginx: | |
| image: nginx:alpine | |
| restart: always | |
| ports: | |
| - 8080:80 | |
| volumes: | |
| - ./joomla:/var/www/html |
This file contains hidden or 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
| https://oauth.vk.com/authorize?client_id=6604724&display=mobile&redirect_uri=https://oauth.vk.com/blank.html&scope=friends,photos,offline,messages&response_type=token&v=5.95 |
This file contains hidden or 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 ReactMapboxGl, { Source, Layer } from 'react-mapbox-gl'; | |
| const Map = ReactMapboxGl({ | |
| accessToken: 'pk...' | |
| }); | |
| const SOURCE_OPTIONS = { | |
| type: 'vector', | |
| tiles: ['https://...'] | |
| }; |