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 generateGuid() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { | |
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | |
return v.toString(16); | |
}); | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network :private_network, ip: "192.168.33.XX" | |
config.vm.hostname = "192.168.33.XX.xip.io" |
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
root@test:/vagrant/mzn# composer show -i | |
almasaeed2010/adminlte 2.1.1 AdminLTE - admin control panel and dashboard that's based on Bootstrap 3 | |
bower-asset/bootstrap v3.3.2 The most popular front-end framework for developing responsive, mobile first projects on the web. | |
bower-asset/jquery 2.1.3 | |
bower-asset/jquery.inputmask 3.1.61 jquery.inputmask is a jquery plugin which create an input mask. | |
bower-asset/punycode v1.3.2 | |
bower-asset/typeahead.js v0.10.5 | |
bower-asset/yii2-pjax v2.0.2 | |
cebe/js-search 0.9.2 A client side search engine for use on static pages. | |
cebe/markdown 1.0.2 A super fast, highly extensible markdown parser for 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
<?php | |
namespace app\commands; | |
use yii\console\Controller; | |
use yii\helpers\Inflector; | |
class GiiQController extends Controller | |
{ | |
public function actionCrud($table) |
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
<?php | |
/** | |
* This is project's console commands configuration for Robo task runner. | |
* | |
* @see http://robo.li/ | |
*/ | |
class RoboFile extends \Robo\Tasks | |
{ |
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
<?php | |
namespace app\components; | |
class ActiveRecord extends \yii\db\ActiveRecord | |
{ | |
public function safeAttributes() | |
{ |
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
<?php | |
namespace app\gii\giiant\providers; | |
class DateTimeProvider extends \schmunk42\giiant\crud\providers\DateTimeProvider | |
{ | |
public function activeField($attribute) | |
{ | |
$data = parent::activeField($attribute); |
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
<?php | |
class Job extends \yii\db\ActiveRecord | |
{ | |
public function getAuditFields() | |
{ | |
$link = []; | |
return $this->hasMany(AuditField::className(), $link) | |
->orOnCondition([ | |
'audit_field.model_id' => $this->job_id, |
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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/js/select2.min.js"></script> | |
<title>Select 2</title> | |
</head> | |
<body> |
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
<?php | |
namespace bedezign\yii2\audit\commands; | |
use bedezign\yii2\audit\models\AuditEntry; | |
use bedezign\yii2\audit\models\AuditError; | |
use Yii; | |
use yii\helpers\Html; | |
/** |