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
/* | |
* Если в функцию передать не число, или число меньше 0 - вернет false | |
* UPD 15.06.2014 18:09 Еще более джедайский вариант | |
*/ | |
function checkNumber(n){ | |
return+~~n>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
'use strict'; | |
var gulp = require('gulp'), | |
watch = require('gulp-watch'), | |
prefixer = require('gulp-autoprefixer'), | |
uglify = require('gulp-uglify'), | |
sass = require('gulp-sass'), | |
sourcemaps = require('gulp-sourcemaps'), | |
rigger = require('gulp-rigger'), | |
cssmin = require('gulp-minify-css'), |
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
doctype html | |
html(class='no-js') | |
head | |
meta(charset='utf-8') | |
meta(http-equiv='X-UA-Compatible', content='IE=edge') | |
title | |
meta(name='description', content='') | |
meta(name='viewport', content='width=device-width, initial-scale=1') |
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 |
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
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.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.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
'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
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 |
OlderNewer