Skip to content

Instantly share code, notes, and snippets.

View veremey's full-sized avatar
:electron:

Serhii Veremiichuk veremey

:electron:
  • Ukraine
View GitHub Profile
@veremey
veremey / composer-install.sh
Created May 30, 2024 18:03 — forked from kenng/composer-install.sh
Installing composer using curl
# Goto a directory you can write to:
cd ~
#get composer:
curl -s https://getcomposer.org/installer | php
# move composer into a bin directory you control:
sudo mv composer.phar /usr/local/bin/composer
# double check composer works
composer about
@veremey
veremey / composer-install.sh
Created May 30, 2024 18:03 — forked from kenng/composer-install.sh
Installing composer using curl
# Goto a directory you can write to:
cd ~
#get composer:
curl -s https://getcomposer.org/installer | php
# move composer into a bin directory you control:
sudo mv composer.phar /usr/local/bin/composer
# double check composer works
composer about
@veremey
veremey / .eslintrc
Last active May 28, 2022 09:20
.eslintrc
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb-base', 'plugin:jest/recommended', 'react-app', 'plugin:css-import-order/recommended'],
plugins: ['prefer-arrow', 'unicorn', 'css-import-order'],
rules: {
'no-var': 0,
indent: [1, 4, { SwitchCase: 1 }],
'no-multi-spaces': 1,
'no-confusing-arrow': 'off',
'no-unused-vars': [
@veremey
veremey / .prettierrc
Created May 27, 2022 18:02
.prettierrc
{
"printWidth": 120,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
@veremey
veremey / .stylelintrc
Created May 27, 2022 18:01
.stylelintrc
{
"extends": [
"stylelint-config-rational-order",
"stylelint-config-recommended",
"stylelint-config-recommended-scss"
],
"plugins": ["stylelint-order", "stylelint-scss"],
"rules": {
"no-descending-specificity": null,
"number-leading-zero": "never",
<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: [
@veremey
veremey / gist:29fbedb0f0fd7d70b69c4f34ebbce6c5
Created October 16, 2018 08:55 — forked from itsmattsoria/gistfil1.textile
Mac Terminal Cheat Sheet

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
@veremey
veremey / gist:8aabccb784f97996e244f14ef09ffeab
Last active January 14, 2020 15:22
Работа с видео
https://videojs.com/advanced/ - ратает на тел
https://www.npmjs.com/package/iphone-inline-video - работает на тел