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
#Download Elementary OS from here: | |
#http://sourceforge.net/projects/elementaryos/files/stable/ | |
#First you update your system | |
sudo apt-get update && sudo apt-get dist-upgrade | |
#Install Google Chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |
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
<script> | |
// an component | |
import { orderBy, isEmpty } from 'lodash'; | |
import filterByName from '../helpers/filters/by-name'; | |
// omit | |
computed: { | |
listOrdened() { | |
const { orderBy as by, order } = this.configs; |
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
<script> | |
import UseModal from './shared/modal/UseModalMixin.js'; | |
export default { | |
mixins: [UseModal], | |
}; | |
</script> | |
<template> | |
<modal size="md" v-ref:modal> |
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
<script> | |
import { defaultsDeep, forEach, has, set } from 'lodash'; | |
import { loadAddGrids, setAvgGrid } from './helpers/grids'; | |
import defaults from './defaults/index.js'; | |
import applyCustomValuesInC3Instanse from './helpers/apply-custom-values-in-c3-instanse.js'; | |
import formatTooltipValue from './helpers/format-tooltip-value'; | |
const charts = {}; | |
export default { |
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
<script> | |
const INSTANCE = {}; | |
export default { | |
data() { | |
const instance = Symbol('modal'); | |
return { instance }; | |
}, | |
ready() { | |
INSTANCE[this.instance] = jQuery(this.$els.modal); |
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
<?php | |
use Illuminate\Database\Seeder; | |
use App\Domains\ActLogs\ActLog; | |
use App\Domains\Finance\Account; | |
class LogsTableSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. |
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
<?php | |
$blade = Blade::getFacadeRoot(); | |
$blade->directive('hasErrorClass', function ($expression) { | |
return '<?php echo ($errors->has' . $expression . ') ? "has-error" : null; ?>'; | |
}); | |
$blade->directive('errorBlock', function ($expression) { | |
$name = str_replace(['(', ')'], null, $expression); |
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
export default function microtime(getAsFloat) { | |
// discuss at: http://locutus.io/php/microtime/ | |
// original by: Paulo Freitas | |
// improved by: Dumitru Uzun (http://duzun.me) | |
// example 1: var $timeStamp = microtime(true) | |
// example 1: $timeStamp > 1000000000 && $timeStamp < 2000000000 | |
// returns 1: true | |
// example 2: /^0\.[0-9]{1,6} [0-9]{10,10}$/.test(microtime()) | |
// returns 2: true |
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
<?php | |
namespace App\Support\ViewPresenter; | |
trait PresentableTrait | |
{ | |
/** | |
* View presenter instance. | |
* | |
* @var mixed |