This file contains 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
import sort from './sort'; | |
function sort(type) { | |
const sortFunction = getSortFunctiion(type); | |
if(sortFunction) { | |
return products.sort(sortFunction); | |
} | |
return products; |
This file contains 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
alias xoff='sudo phpdismod -v 7.3 -s cli xdebug' | |
alias xon='sudo phpenmod -v 7.3 -s cli xdebug' |
This file contains 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
https://stackoverflow.com/questions/6205157/iterm-2-how-to-set-keyboard-shortcuts-to-jump-to-beginning-end-of-line |
This file contains 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
/** | |
* Return order field and direction | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return array | |
*/ | |
function datatable_get_order_data(\Illuminate\Http\Request $request) | |
{ | |
$columnNumber = $request->get('order')[0]['column']; | |
$column = $request->get('columns')[$columnNumber]; |
This file contains 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
<template> | |
<select :name="name" class="form-control"> | |
<slot></slot> | |
</select> | |
</template> | |
<script> | |
import 'select2-bootstrap-theme/dist/select2-bootstrap.css'; | |
export default { |
This file contains 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
PSYSH_CONFIG=tinker.config.php |
This file contains 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
DB::statement("ALTER TABLE $TABLE_NAME$ CHANGE $FIELD_NAME$ type ENUM($ENUM_PREVIOUS_OPTION_1$, $ENUM_PREVIOUS_OPTION_2$)"); |
This file contains 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
location ~* \.(eot|ttf|woff|woff2|jpg|jpeg|png)$ { | |
add_header Access-Control-Allow-Origin *; | |
} |
This file contains 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
(function () { | |
'use strict'; | |
angular | |
.module('app') | |
.service('alertService', alertService); | |
alertService.$inject = ['toaster', '$filter']; | |
/* @ngInject */ |
NewerOlder