This is the sequence of steps to follow to create a root gh-pages
branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
git remote prune origin | |
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d |
function revertWordInString(str) { | |
if (str.trim().length === 0) { | |
throw 'err'; | |
} | |
return str | |
.split(/\s/) | |
.map(str => str.length | |
? str.split('').reverse().join('') |
const hasDuplicateSymbols = 'abcadez'.match(/(\w)(.+)?\1/) !== null; |
const atm = (sum, b) => { | |
const smallestBill = b[b.length - 1]; | |
if (sum % smallestBill) { | |
throw `Сумма должна быть кратной ${smallestBill}`; | |
} | |
let result = {}; | |
let moneyLeft = sum; | |
const str = 'AVVVBBBVVXDHJFFFFDDDDDDHAAAAJJJDDSLSSSDDDD'; | |
let acc = 0; | |
let char; | |
let result = str.split('').reduce((r, currentValue, index, arr) => { | |
if (currentValue != arr[index-1]) { | |
if (char) { | |
r += ((acc > 1) ? `${char}${acc}` : char); | |
} |
<?php | |
namespace App\Providers; | |
use Blade; | |
use Illuminate\Support\ServiceProvider; | |
class BladeServiceProvider extends ServiceProvider | |
{ |
const gulp = require('gulp'); | |
const debug = require('gulp-debug'); | |
const csso = require('gulp-csso'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const revision = require('gulp-rev'); | |
const concat = require('gulp-concat'); | |
const gulpif = require('gulp-if'); | |
const uglify = require('gulp-uglify'); | |
const prefixer = require('gulp-autoprefixer'); | |
const livereload = require('gulp-livereload'); |