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
Show hidden characters
[ | |
{ | |
"keys": ["alt+1"], | |
"command": "toggle_side_bar" | |
} | |
] |
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
vector< string > split(string str) | |
{ | |
std::vector<std::string> v ; //Use vector to add the words | |
std::size_t prev_pos = 0, pos; | |
while ((pos = str.find_first_of(",;", prev_pos)) != std::string::npos) | |
{ | |
v.push_back(str.substr(prev_pos, pos-prev_pos)); | |
prev_pos = pos + 1; | |
} |
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
module.exports = { | |
assetsPath: 'resources/backend/assets', | |
publicPath: 'public/backend', | |
angularPath: 'resources/backend/angular/' | |
}; |
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
vector<char> used; | |
vector< vector<int> > g; | |
void dfs(int start) | |
{ | |
used[start] = true; | |
for (int i = 0; i < g[start].size(); ++i) { | |
if (!used[g[start][i]]) { | |
dfs(g[start][i]); | |
} |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <fstream> | |
using namespace std; | |
fstream fout; | |
void printA(const vector<short int> &arr) { |
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
'use strict'; | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var autoprefixer = require('gulp-autoprefixer'); | |
var sassdoc = require('sassdoc'); | |
var minifycss = require('gulp-minify-css'); |
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
Устанавливаем Vagrant https://www.vagrantup.com | |
Устанавливаем ConEmu https://github.com/Maximus5/ConEmu | |
Устанавливаем Homestead http://laravel.com/docs/5.1/homestead | |
bash init.sh — Переносит настройки Homestead в %homepath%/.homestead | |
Теперь настройки Homestead будут глобальные | |
Мои настройки: | |
folders: | |
- map: ~/web-projects/homestead | |
to: /home/vagrant/projects | |
type: rsync |
NewerOlder