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
# Karma configuration | |
# Generated on Tue Aug 20 2013 16:26:25 GMT-0400 (EDT) | |
module.exports = (config) -> | |
config.set | |
# base path, that will be used to resolve all patterns, eg. files, exclude | |
basePath: '..' | |
# frameworks to use |
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
describe('e2e: main', function() { | |
var ptor; | |
beforeEach(function() { | |
browser.get('/'); | |
ptor = protractor.getInstance(); | |
}); | |
it('should load the home page', function() { |
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
'use strict'; | |
angular.module('app.routes', ['ngRoute', 'app.config']) | |
.config(['$routeProvider', 'ROUTES', ($routeProvider, ROUTES) -> | |
$routeProvider | |
# Organizations | |
.when(ROUTES.organizations, { | |
templateUrl: '/templates/organizations/index.html', |
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
'use strict'; | |
angular.module('app.routes') | |
.config(['$routeProvider', ($routeProvider) -> | |
angular.extend({}, $routeProvider, { | |
orgWhen: (path, route) -> | |
route.resolve ||= {} | |
route.resolve = _.merge(route.resolve, { | |
chef: 'OrganizationCheckerProvider' |
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
'use strict'; | |
class DataBagService | |
_exec = {} | |
_tmp = {} | |
_fs = {} | |
_knife = '' | |
constructor: (@$q) -> | |
console.log 'DataBagService: constructor called' |
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
# Converted JS from http://mgcrea.github.io/angular-strap | |
angular.module('ngAnimate', []) | |
.factory('$$animateReflow', ['$window', '$timeout', ($window, $timeout) -> | |
requestAnimationFrame = $window.requestAnimationFrame || | |
$window.webkitRequestAnimationFrame || | |
(fn) -> | |
$timeout(fn, 10, false) |
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
'use strict'; | |
angular.module('vc.messages') | |
.factory "logger", ['$log', '$location', '$timeout', 'NwService', 'stackTrace', ($log, $location, $timeout, NwService, stackTrace) -> | |
log4js = require('log4js') | |
airbrake = require('airbrake').createClient('SOMEKEY') | |
airbrake.protocol = 'http' | |
airbrake.serviceHost = 'api.airbrake.io' | |
airbrake.env = 'production' if NwService.isProduction() |
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
'use strict'; | |
angular.module('vc.messages') | |
.factory "stackTrace", () -> | |
stackTrace = require('stack-trace') | |
getStack: (level) -> | |
stack = stackTrace.get() | |
for i in [0..level-1] | |
stack.shift() |
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 | |
/* | |
Template name: Для яндекс маркета | |
*/ | |
header('Content-Type: text/xml; charset=utf-8'); | |
preg_match('|http://(.*)|', get_option('siteurl'), $m); | |
$shop_name = $m[1]; |