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 artisan --help OR -h | |
php artisan --quiet OR -q | |
php artisan --version OR -V | |
php artisan --no-interaction OR -n | |
php artisan --ansi | |
php artisan --no-ansi | |
php artisan --env | |
// -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug | |
php artisan --verbose |
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
.directive('embedVideoSrc', ['$compile','VideoService', function ($compile, VideoService) { | |
return { | |
link: function(scope, element, attrs) { | |
scope.srcVideo = attrs.embedVideoSrc; | |
var template = ''; | |
var serviceVideo = VideoService.getVideoServiceByUrl(attrs.embedVideoSrc); | |
console.log(attrs); | |
attrs.embedVideoHeight = attrs.embedVideoHeight || 315; |
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
'use strict'; | |
angular.module('Yeopen') | |
.service('$videoApi', ['$modal', '$rootScope', '$state', 'AbstractService', 'Routes', | |
function ($modal, $rootScope, $state, AbstractService, Routes) { | |
var videoApi = new AbstractService(Routes.gallery); | |
angular.extend(videoApi, { | |
create: function(data) { |
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
Execution of target "generate_doctrine_db_shem" failed for the following reason: /Users/insayt/Projects/yeopen-development/deploy/build.xml:52:26: Task exited with code 1 | |
BUILD FAILED | |
/Users/insayt/Projects/yeopen-development/deploy/build.xml:52:26: Task exited with code 1 | |
Total time: 29.8486 seconds |
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
'use strict'; | |
var _ = require('lodash'), | |
gulp = require('gulp'), | |
watch = require('gulp-watch'), | |
plumber = require('gulp-plumber'), | |
prefixer = require('gulp-autoprefixer'), | |
uglify = require('gulp-uglify'), | |
less = require('gulp-less'), | |
stripCssComments = require('gulp-strip-css-comments'), |
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
app.directive('counter', function() { | |
var interval, | |
count = 0; | |
return { | |
link: function($scope, element, attrs, $rootScope) { | |
$scope.$on('counter:start', function() { | |
interval = setInterval(function() { | |
count += 1000; |
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
app.factory('$dataApi', function($http, $Api) { | |
return { | |
getCountries: function() { | |
return $http.get(appConfig.apiBase + 'country/index'); | |
}, | |
getStates: function(countryId) { | |
return $Api.get(appConfig.apiBase + 'state/index/?country=' + countryId); | |
}, | |
getTimezones: function() { | |
return $http.get(appConfig.apiBase + 'timezone/index'); |
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
app.config(function($stateProvider, | |
$urlRouterProvider, | |
$locationProvider, | |
$translateProvider, | |
growlProvider, | |
$localStorageProvider) { | |
$locationProvider.html5Mode(true); | |
$translateProvider.useSanitizeValueStrategy('escape'); |
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
app.directive('select', function() { | |
return { | |
link: function($scope, element, attrs, $rootScope) { | |
setTimeout(function() { | |
$(element).on( 'change.fs', function(e) { | |
$(element).val(e.target.value).trigger('input'); | |
$scope.$emit('filter:change'); | |
} ).fancySelect(); | |
}, 0); | |
} |
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
var x = 1; | |
try { | |
x.noExistsMethod(); | |
} catch (e) { | |
alert(e.toString().split('.')[0].split(':')[1].trim()); | |
} | |
// x |