Skip to content

Instantly share code, notes, and snippets.

View bree7e's full-sized avatar
🏠
Working from home

Alexandr Vetrov bree7e

🏠
Working from home
View GitHub Profile
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
@bree7e
bree7e / npx command to run angular cli
Created September 13, 2019 16:24 — forked from ddieppa/npx command to run angular cli
This is the npx command to run angular cli new project without install it globally
npx -p @angular/cli ng new hello-world-project
then locally can run
npx ng g c hello-world-component
@bree7e
bree7e / settings.json
Last active July 24, 2018 11:06
VS Code Preferences
{
"window.zoomLevel": 1,
"editor.fontLigatures": true,
"editor.renderWhitespace": "boundary",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "keyword.operator",
"settings": {
"foreground": "#89DDFF"
@bree7e
bree7e / settings.json
Created May 12, 2017 02:37
TypeScript in VSCode
{
"files.exclude": {
"**/.git": true,
"**/*.js": {
"when": "$(basename).ts"
},
"**/*.js.map": {
"when": "$(basename)"
},
"**/*.css": {
browser-sync start --server --files "*.html, css/*.css" --no-notify
@bree7e
bree7e / gulpfile.js
Created April 28, 2017 03:56
Gulp файл, на примере
// TODO автозагрузка плагинов http://getinstance.info/articles/tools/include-plugins-with-gulp-load-plugins/
var gulp = require('gulp'), // Подключаем Gulp
gulpif = require('gulp-if'), // Библиотека if для gulp
sass = require('gulp-sass'), //Подключаем Sass пакет,
autoprefixer = require('gulp-autoprefixer'), // Библиотека для автоматического добавления префиксов
cssnano = require('gulp-cssnano'), // Подключаем пакет для минификации CSS
rename = require('gulp-rename'), // Подключаем библиотеку для переименования файлов
uglify = require('gulp-uglifyjs'), // Подключаем gulp-uglifyjs (для сжатия JS)
// imagemin = require('gulp-imagemin'), // Подключаем библиотеку для работы с изображениями
htmlmin = require('gulp-htmlmin'), // Библиотека минификации html
@bree7e
bree7e / Preferences.sublime-settings
Last active April 28, 2017 03:53
Настройки Sublime Text 3
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"build_on_save": 0,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"fallback_encoding": "Cyrillic (Windows 1251)",
"filename_filter": ".(sass|scss)$",
"binary_file_patterns":
[
"node_modules/"
@bree7e
bree7e / 0_reuse_code.js
Created April 3, 2017 01:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console