Skip to content

Instantly share code, notes, and snippets.

Avatar

Sergey Veremiychuk veremey

  • Ukraine
View GitHub Profile
View gist:ba136643d546499b5d3e5da78c9208a1
<div id="map"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=KEY_NUMBER" ></script>
function initMap() {
var myLatLng = {lat: 41.892896, lng: -87.638387};
var map = new google.maps.Map(document.getElementById('map'), {
center: {lat: 41.892896, lng: -87.638387},
zoom: 15,
styles: [
View gist:29fbedb0f0fd7d70b69c4f34ebbce6c5

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
View gist:8aabccb784f97996e244f14ef09ffeab
https://videojs.com/advanced/ - ратает на тел
https://www.npmjs.com/package/iphone-inline-video - работает на тел
@veremey
veremey / gist:a1593b7758146203051f2077d586c2ad
Created Feb 23, 2017 — forked from depoulo/gist:5832073
CSS-only multi-line ellipsis with generated content. License: http://www.wtfpl.net/txt/copying/
View gist:a1593b7758146203051f2077d586c2ad
@import "compass/css3/images";
// CSS-only multi-line ellipsis with generated content
// yields `position:relative`, so remember to declare an eventual `position:absolute/fixed` *after* including this mixin
@mixin limitLines(
$maxLinesPortrait, // Mandatory: The number of lines after which the clipping should take action.
$maxLinesLandscape: $maxLinesPortrait, // You may provide a different line limit for landscape orientation.
// Note that 'portrait' is our default orientation. However, if you omit $maxLinesLandscape,
// the value of $maxLinesPortrait is used for whatever orientation (that is, without a media query).
View Посмотреть список глобальных NPM пакетов
npm list --global=true --depth=0 ---- ==== ---Посмотреть список глобальных NPM пакетов
@veremey
veremey / scss2sass.sh
Created Aug 9, 2016 — forked from sanxac/scss2sass.sh
convert scss files to sass and delete .scss files in a directory
View scss2sass.sh
#!/bin/bash
for f in *.scss; do sass-convert $f ${f%scss}sass ; done
rm *.scss
View оттцентровка картинки по средине
<snippet>
<content><![CDATA[
<div class="jumbatron">
<div class="jumbatron__img">
<img src="img/big_img.jpg" alt="">
</div>
</div>
styles
.jumbatron
position: relative
View alt для картинки
<snippet>
<content><![CDATA[<img src="${0}" alt="Иллюстрация">
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>im</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html</scope>
</snippet>
You can’t perform that action at this time.