const fs = require('fs');
const http = require('https');
var download = function(url, dest, cb) {
var file = fs.createWriteStream(dest);
var request = http.get(url, function(response) {
response.pipe(file);
file.on('finish', function() {
file.close(cb);
});
});
};
download('https://rossvyaz.ru/data/DEF-9xx.csv', './def.csv', '');
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (let registration of registrations) {
// registration.unregister();
}
});
camelcase: ["error", {properties: "never"}]
camelcase: 'off',
const gulp = require('gulp');
const fs = require('fs');
const path = require('path');
const watcher = gulp.watch('./pages', { events: ['add'] });
watcher.on('add', function(p, stats) {
const name = path.basename(p, path.extname(p));
fs.writeFileSync(`./controllers/${name}.controller.js`, 'то, что будет в файле');
});
php artisan make:controller PhotoController
ZSH_THEME="robbyrussell"
в файле ~/.oh-my-zsh/themes/robbyrussell.zsh-theme:PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"