Skip to content

Instantly share code, notes, and snippets.

View sadovnik's full-sized avatar

Cyril Sadovnik sadovnik

  • тута здеся
View GitHub Profile
@sadovnik
sadovnik / osm-poi-type-map.json
Created October 3, 2016 15:54
Карта соответствий типов POI к значению на русском
{
"accountant": "Бухгалтерские услуги",
"administrative": "Административное учреждение",
"advertising": "Реклама",
"advertising_agency": "Рекламное агентство",
"advertising_billboard": "Биллборд",
"advertising_column": "Колонна",
"advertising_flag": "Флаг",
"advertising_screen": "Экран",
"advertising_sculpture": "Скульптура",
@sadovnik
sadovnik / reinstall.sh
Created June 25, 2016 16:24
Reinstall npm packages
rm -rf ~/.npm/
rm -rf node_modules/
npm cache clean
npm cache clear
npm install
@sadovnik
sadovnik / gist:5ca82df236c9f0fd38c3269a94a88f6d
Created June 16, 2016 15:58
Fix dos linebreaks to unix using vim
%s/\r/\r/g
@sadovnik
sadovnik / isEmbedded.js
Last active December 10, 2015 18:17
Проверка на айфрейм
function isEmbedded () {
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}