As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/bin/sh | |
# @source: https://gist.github.com/ronanguilloux/11f6a788358577474ab4 | |
# @link http://tech.zumba.com/2014/04/14/control-code-quality/ | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
# Determine if a file list is passed |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | |
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
"use strict"; | |
/* | |
* thirty-two | |
* https://github.com/chrisumbel/thirty-two | |
* |
function progressGen(ProgressBar $bar, $itr) | |
{ | |
$bar->start(); | |
try { | |
foreach($itr as $k => $v) { | |
yield $k => $v; | |
$bar->advance(); | |
} | |
} finally { | |
$bar->finish(); |
<?php | |
$browser->visit('Login') | |
->tap( | |
function (Browser $browser) { | |
$points = $browser->resolver->find("#TotalCount")->getText(); | |
$this->mailer->send( | |
'mail', | |
['points' => $points], | |
function (Message $mailable) use ($browser, $points) { | |
$mailable->from('[email protected]', 'Pixelated Bot'); |
#!/usr/bin/env bash | |
echo "php-cs-fixer pre commit hook start" | |
PHP_CS_FIXER="bin/php-cs-fixer" | |
PHP_CS_CONFIG=".php_cs" | |
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.php') | |
if [ -n "$CHANGED_FILES" ]; then | |
$PHP_CS_FIXER fix --config "$PHP_CS_CONFIG" $CHANGED_FILES; | |
git add $CHANGED_FILES; |
<template> | |
<!-- ... --> | |
</template> | |
<script> | |
export default { | |
// ... | |
beforeRouteLeave (vm, options, event) { | |
// vm will now refer to this component instead of the link | |
return window.confirm(vm.$trans('ticket.confirm_leave_creation')); |