id
stringlengths
34
124
type
stringclasses
4 values
prompt
stringlengths
0
4.95k
response
stringlengths
21
4.89k
source_lang
stringclasses
3 values
target_lang
stringclasses
2 values
repo
stringclasses
75 values
path
stringlengths
10
88
license
stringclasses
1 value
commit
stringlengths
40
40
stars
int64
431
18.7k
source_url
stringlengths
86
176
line_start
int64
1
214
line_end
int64
3
253
kelp404/angular-form-builder:src/provider.coffee:1:raw_corpus
raw_corpus
a = angular.module 'builder.provider', [] a.provider '$builder', -> # ---------------------------------------- # providers # ---------------------------------------- $injector = null # ---------------------------------------- # properties # ---------------------------------------- @com...
CoffeeScript
kelp404/angular-form-builder
src/provider.coffee
MIT
dd8f666598e663b3a624a376e5a64ba620ceb19c
600
https://github.com/kelp404/angular-form-builder/blob/dd8f666598e663b3a624a376e5a64ba620ceb19c/src/provider.coffee
1
34
kelp404/angular-form-builder:src/provider.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript a = angular.module 'builder.provider', [] a.provider '$builder', -> # ---------------------------------------- # providers # ---------------------------------------- $injector = null # ---------------------------------------- # propertie...
var a; a = angular.module('builder.provider', []); a.provider('$builder', function() { var $injector; // ---------------------------------------- // providers // ---------------------------------------- $injector = null; // ---------------------------------------- // properties // --------------------...
CoffeeScript
JavaScript
kelp404/angular-form-builder
src/provider.coffee
MIT
dd8f666598e663b3a624a376e5a64ba620ceb19c
600
https://github.com/kelp404/angular-form-builder/blob/dd8f666598e663b3a624a376e5a64ba620ceb19c/src/provider.coffee
1
34
kelp404/angular-form-builder:src/provider.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var a; a = angular.module('builder.provider', []); a.provider('$builder', function() { var $injector; // ---------------------------------------- // providers // ---------------------------------------- $injector = null; // ---------------------------...
a = angular.module 'builder.provider', [] a.provider '$builder', -> # ---------------------------------------- # providers # ---------------------------------------- $injector = null # ---------------------------------------- # properties # ---------------------------------------- @com...
JavaScript
CoffeeScript
kelp404/angular-form-builder
src/provider.coffee
MIT
dd8f666598e663b3a624a376e5a64ba620ceb19c
600
https://github.com/kelp404/angular-form-builder/blob/dd8f666598e663b3a624a376e5a64ba620ceb19c/src/provider.coffee
1
34
kelp404/angular-form-builder:src/provider.coffee:1:completion
completion
a = angular.module 'builder.provider', [] a.provider '$builder', -> # ---------------------------------------- # providers # ---------------------------------------- $injector = null # ---------------------------------------- # properties # ---------------------------------------- @com...
$injector = injector # ---------------------------------------- # public functions # ---------------------------------------- @addComponent = (name, component={}) -> # ---------------------------------------- # $get # ---------------------------------------- @get = ($injector) -> ...
CoffeeScript
CoffeeScript
kelp404/angular-form-builder
src/provider.coffee
MIT
dd8f666598e663b3a624a376e5a64ba620ceb19c
600
https://github.com/kelp404/angular-form-builder/blob/dd8f666598e663b3a624a376e5a64ba620ceb19c/src/provider.coffee
1
34
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:raw_corpus
raw_corpus
$scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
42
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClick) c += ' actionable' return c ...
$scope.getClass = function(number) { var c; c = ''; if ($scope.isHorizontal) { c = 'orientation-horizontal'; } else { c = 'orientation-vertical'; } if (_.isFunction(number.onClick)) { c += ' actionable'; } return c; }; $scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.li...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
42
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript $scope.getClass = function(number) { var c; c = ''; if ($scope.isHorizontal) { c = 'orientation-horizontal'; } else { c = 'orientation-vertical'; } if (_.isFunction(number.onClick)) { c += ' actionable'; } return c; }; $scope.getUrl = f...
$scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
42
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:completion
completion
$scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope...
# Compiles the numbers and updates the widget $scope.compileNumbers = (row) -> numbers = _.map $scope.widget.numbers, (item, index) -> { number: _.compile(item.number, row) prefix: _.compile(item.prefix, row) suffix: _.compile(item.suffix, row) ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
42
83
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:raw_corpus
raw_corpus
$scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an argument number.onClick({ number }) $scope.reload = -> $scope.dataSource.execute(true) # Load Data Source dsDefinition = dashboardService.getDataSo...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
85
126
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an argument number.onClick({ number }) $scope.reload = -> $scope.dataSource.execute(true) # Load ...
var dsDefinition; $scope.onClickEvent = function(number) { if (_.isFunction(number.onClick)) { // Invoke event handler; pass the number object as an argument return number.onClick({number}); } }; $scope.reload = function() { return $scope.dataSource.execute(true); }; // Load Data Source dsDefinition = ...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
85
126
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var dsDefinition; $scope.onClickEvent = function(number) { if (_.isFunction(number.onClick)) { // Invoke event handler; pass the number object as an argument return number.onClick({number}); } }; $scope.reload = function() { return $scope.dataSource...
$scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an argument number.onClick({ number }) $scope.reload = -> $scope.dataSource.execute(true) # Load Data Source dsDefinition = dashboardService.getDataSo...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
85
126
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:completion
completion
$scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an argument number.onClick({ number }) $scope.reload = -> $scope.dataSource.execute(true) # Load Data Source dsDefinition = dashboardService.getDataSo...
$scope.widgetContext.dataSourceError = false $scope.widgetContext.dataSourceErrorMessage = null data = eventData.data[dsDefinition.resultSet].data data = $scope.filterAndSortWidgetData(data) # Check for no data if data? # Compile display wit...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
85
126
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:4:raw_corpus
raw_corpus
# Data Source loading $scope.$on 'dataSource:' + dsDefinition.name + ':loading', -> $scope.widgetContext.loading = true # Initialize the Data Source $scope.dataSource.init dsDefinition else # Compile display with no data source $scope.widgetContext.allowExport =...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
129
139
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:4:completion
completion
# Data Source loading $scope.$on 'dataSource:' + dsDefinition.name + ':loading', -> $scope.widgetContext.loading = true # Initialize the Data Source
$scope.dataSource.init dsDefinition else # Compile display with no data source $scope.widgetContext.allowExport = false $scope.compileNumbers {}
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/widgets/number/numberWidget.coffee
129
139
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:raw_corpus
raw_corpus
$scope.linkTarget = -> if $scope.dashboard.openLinksInNewWindow == false then '_self' else '_blank' $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClic...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
42
80
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $scope.linkTarget = -> if $scope.dashboard.openLinksInNewWindow == false then '_self' else '_blank' $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'ori...
$scope.linkTarget = function() { if ($scope.dashboard.openLinksInNewWindow === false) { return '_self'; } else { return '_blank'; } }; $scope.getClass = function(number) { var c; c = ''; if ($scope.isHorizontal) { c = 'orientation-horizontal'; } else { c = 'orientation-vertical'; } if...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
42
80
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript $scope.linkTarget = function() { if ($scope.dashboard.openLinksInNewWindow === false) { return '_self'; } else { return '_blank'; } }; $scope.getClass = function(number) { var c; c = ''; if ($scope.isHorizontal) { c = 'orientation-horizonta...
$scope.linkTarget = -> if $scope.dashboard.openLinksInNewWindow == false then '_self' else '_blank' $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClic...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
42
80
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:completion
completion
$scope.linkTarget = -> if $scope.dashboard.openLinksInNewWindow == false then '_self' else '_blank' $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'orientation-vertical' if _.isFunction(number.onClic...
if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers = (row) -> numbers = _.map $scope.widget.numbers, (item, index) -> { number: _...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
42
80
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:raw_corpus
raw_corpus
if $scope.numbers? _.each numbers, (number, index) -> _.assign($scope.numbers[index], number) else $scope.numbers = numbers $scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an arg...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
82
122
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if $scope.numbers? _.each numbers, (number, index) -> _.assign($scope.numbers[index], number) else $scope.numbers = numbers $scope.onClickEvent = (number) -> if _.isFunction(number.onClick) ...
var dsDefinition; if ($scope.numbers != null) { _.each(numbers, function(number, index) { return _.assign($scope.numbers[index], number); }); } else { $scope.numbers = numbers; } $scope.onClickEvent = function(number) { if (_.isFunction(number.onClick)) { // Invoke event handler; pass the number objec...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
82
122
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var dsDefinition; if ($scope.numbers != null) { _.each(numbers, function(number, index) { return _.assign($scope.numbers[index], number); }); } else { $scope.numbers = numbers; } $scope.onClickEvent = function(number) { if (_.isFunction(number.onClick...
if $scope.numbers? _.each numbers, (number, index) -> _.assign($scope.numbers[index], number) else $scope.numbers = numbers $scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an arg...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
82
122
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:completion
completion
if $scope.numbers? _.each numbers, (number, index) -> _.assign($scope.numbers[index], number) else $scope.numbers = numbers $scope.onClickEvent = (number) -> if _.isFunction(number.onClick) # Invoke event handler; pass the number object as an arg...
if $scope.dataSource? $scope.dataVersion = 0 $scope.loading = true # Data Source (re)loaded $scope.$on 'dataSource:' + dsDefinition.name + ':data', (event, eventData) -> return unless eventData.version > $scope.dataVersion $scope.dataVersion = eventData.version ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
82
122
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:4:raw_corpus
raw_corpus
# Check for no data if _.isEmpty(data) && $scope.widget.noData? $scope.nodata = _.jsExec($scope.widget.noData) else $scope.nodata = null # Compile display with the first row $scope.compileNumbers data[0] $scope.loading...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
124
151
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:4:completion
completion
# Check for no data if _.isEmpty(data) && $scope.widget.noData? $scope.nodata = _.jsExec($scope.widget.noData) else $scope.nodata = null # Compile display with the first row $scope.compileNumbers data[0] $scope.loading...
$scope.dataSourceErrorMessage = data.error $scope.nodata = null $scope.loading = false # Data Source loading $scope.$on 'dataSource:' + dsDefinition.name + ':loading', -> $scope.loading = true # Initialize the Data Source $scope.dataSource.init dsDef...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
aa249eacd2cdb7409ce6c4581e1cedf99c9471b7
1,544
https://github.com/ExpediaGroup/cyclotron/blob/aa249eacd2cdb7409ce6c4581e1cedf99c9471b7/cyclotron-site/app/widgets/number/numberWidget.coffee
124
151
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:raw_corpus
raw_corpus
$scope.widgetTitle = -> _.jsExec($scope.widget.title) $scope.linkTarget = -> if $scope.dashboard.openLinksInNewWindow == false then '_self' else '_blank' $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'o...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
db8b70aa09f97162a8b96a446c2efd953854c036
1,544
https://github.com/ExpediaGroup/cyclotron/blob/db8b70aa09f97162a8b96a446c2efd953854c036/cyclotron-site/app/widgets/number/numberWidget.coffee
42
82
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:completion
completion
$scope.widgetTitle = -> _.jsExec($scope.widget.title) $scope.linkTarget = -> if $scope.dashboard.openLinksInNewWindow == false then '_self' else '_blank' $scope.getClass = (number) -> c = '' if $scope.isHorizontal c = 'orientation-horizontal' else c = 'o...
url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers = (row) -> numbers = _.map $scope.widget.numbers, (item, index) -> ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
db8b70aa09f97162a8b96a446c2efd953854c036
1,544
https://github.com/ExpediaGroup/cyclotron/blob/db8b70aa09f97162a8b96a446c2efd953854c036/cyclotron-site/app/widgets/number/numberWidget.coffee
42
82
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
1
45
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
1
45
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
1
45
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# rows are returned, the filters/sortBy properties can be used to ensure the # correct row is positioned first. For example, to show a single real-time number, # sort by time descending. # cyclotronApp.controller 'NumberWidget', ($scope, dashboardService, dataService) -> $scope.loading = false $scope.dataSou...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
1
45
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:raw_corpus
raw_corpus
if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceU...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
47
87
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'ht...
if (_.isFunction(number.onClick)) { c += ' actionable'; } return c; $scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.link)) { return ''; } url = $scope.widget.link; if ($scope.widget.link.indexOf('http') !== 0) { url = 'http://' + url; } return $scope.$sce.trustAsResourceUrl(u...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
47
87
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (_.isFunction(number.onClick)) { c += ' actionable'; } return c; $scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.link)) { return ''; } url = $scope.widget.link; if ($scope.widget.link.indexOf('http') !== 0) { url = 'http:/...
if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceU...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
47
87
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:completion
completion
if _.isFunction(number.onClick) c += ' actionable' return c $scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceU...
prefix: _.compile(item.prefix, row) suffix: _.compile(item.suffix, row) color: _.compile(item.color, row) tooltip: _.compile(item.tooltip, row) icon: _.compile(item.icon, row) iconColor: _.compile(item.iconColor, row) iconTo...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
47
87
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:raw_corpus
raw_corpus
# Load Data Source dsDefinition = dashboardService.getDataSource $scope.dashboard, $scope.widget $scope.dataSource = dataService.get dsDefinition # Initialize if $scope.dataSource? $scope.dataVersion = 0 $scope.loading = true # Data Source (re)loaded $scope.$on 'dataSou...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
89
132
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Load Data Source dsDefinition = dashboardService.getDataSource $scope.dashboard, $scope.widget $scope.dataSource = dataService.get dsDefinition # Initialize if $scope.dataSource? $scope.dataVersion = 0 $scope.loading = true ...
// Load Data Source var dsDefinition; dsDefinition = dashboardService.getDataSource($scope.dashboard, $scope.widget); $scope.dataSource = dataService.get(dsDefinition); // Initialize if ($scope.dataSource != null) { $scope.dataVersion = 0; $scope.loading = true; // Data Source (re)loaded $scope.$on('dataSour...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
89
132
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Load Data Source var dsDefinition; dsDefinition = dashboardService.getDataSource($scope.dashboard, $scope.widget); $scope.dataSource = dataService.get(dsDefinition); // Initialize if ($scope.dataSource != null) { $scope.dataVersion = 0; $scope.loading = t...
# Load Data Source dsDefinition = dashboardService.getDataSource $scope.dashboard, $scope.widget $scope.dataSource = dataService.get dsDefinition # Initialize if $scope.dataSource? $scope.dataVersion = 0 $scope.loading = true # Data Source (re)loaded $scope.$on 'dataSou...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
89
132
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:completion
completion
# Load Data Source dsDefinition = dashboardService.getDataSource $scope.dashboard, $scope.widget $scope.dataSource = dataService.get dsDefinition # Initialize if $scope.dataSource? $scope.dataVersion = 0 $scope.loading = true # Data Source (re)loaded $scope.$on 'dataSou...
# Sort the data if the widget has "sortBy" if $scope.widget.sortBy? data = dataService.sort(data, $scope.widget.sortBy) # Check for no data if _.isEmpty(data) && $scope.widget.noData? $scope.nodata = _.jsExec($scope.widget.noData) else ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
89
132
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:4:raw_corpus
raw_corpus
# Data Source loading $scope.$on 'dataSource:' + dsDefinition.name + ':loading', -> $scope.loading = true # Initialize the Data Source $scope.dataSource.init dsDefinition else # Compile display with no data source $scope.compileNumbers {}
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
134
143
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:4:completion
completion
# Data Source loading $scope.$on 'dataSource:' + dsDefinition.name + ':loading', -> $scope.loading = true # Initialize the Data Source
$scope.dataSource.init dsDefinition else # Compile display with no data source $scope.compileNumbers {}
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
d6074320b57a8763c1fbff5ef45de0f9bc4e6752
1,544
https://github.com/ExpediaGroup/cyclotron/blob/d6074320b57a8763c1fbff5ef45de0f9bc4e6752/cyclotron-site/app/widgets/number/numberWidget.coffee
134
143
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
1
44
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
1
44
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
1
44
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# rows are returned, the filters/sortBy properties can be used to ensure the # correct row is positioned first. For example, to show a single real-time number, # sort by time descending. # cyclotronApp.controller 'NumberWidget', ($scope, dashboardService, dataService) -> $scope.loading = false $scope.dataSou...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
1
44
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:raw_corpus
raw_corpus
$scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers =...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
46
88
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the n...
var dsDefinition; $scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.link)) { return ''; } url = $scope.widget.link; if ($scope.widget.link.indexOf('http') !== 0) { url = 'http://' + url; } return $scope.$sce.trustAsResourceUrl(url); }; // Compiles the numbers and updates the widg...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
46
88
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var dsDefinition; $scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.link)) { return ''; } url = $scope.widget.link; if ($scope.widget.link.indexOf('http') !== 0) { url = 'http://' + url; } return $scope.$sce.trustAsResourceUrl...
$scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers =...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
46
88
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:completion
completion
$scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers =...
iconTooltip: _.compile(item.iconTooltip, row) } # Set flag for single number or not $scope.singleNumber = ($scope.numbers.length == 1) $scope.reload = -> $scope.dataSource.execute(true) # Load Data Source dsDefinition = dashboardService.getDataSource $scope.dashboard, ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
46
88
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:raw_corpus
raw_corpus
$scope.dataSourceError = false $scope.dataSourceErrorMessage = null data = eventData.data[dsDefinition.resultSet].data # Filter the data if the widget has "filters" if $scope.widget.filters? data = dataService.filter(data, $scope.widget.filters) ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
90
130
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:completion
completion
$scope.dataSourceError = false $scope.dataSourceErrorMessage = null data = eventData.data[dsDefinition.resultSet].data # Filter the data if the widget has "filters" if $scope.widget.filters? data = dataService.filter(data, $scope.widget.filters) ...
$scope.compileNumbers data[0] $scope.loading = false # Data Source error $scope.$on 'dataSource:' + dsDefinition.name + ':error', (event, data) -> $scope.dataSourceError = true $scope.dataSourceErrorMessage = data.error $scope.nodata = null $...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
425ed381cbae1e6fb7fd34c1d1427426d69292df
1,544
https://github.com/ExpediaGroup/cyclotron/blob/425ed381cbae1e6fb7fd34c1d1427426d69292df/cyclotron-site/app/widgets/number/numberWidget.coffee
90
130
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:raw_corpus
raw_corpus
$scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers =...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/number/numberWidget.coffee
46
86
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the n...
$scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.link)) { return ''; } url = $scope.widget.link; if ($scope.widget.link.indexOf('http') !== 0) { url = 'http://' + url; } return $scope.$sce.trustAsResourceUrl(url); }; // Compiles the numbers and updates the widget $scope.compileNu...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/number/numberWidget.coffee
46
86
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript $scope.getUrl = function() { var url; if (_.isEmpty($scope.widget.link)) { return ''; } url = $scope.widget.link; if ($scope.widget.link.indexOf('http') !== 0) { url = 'http://' + url; } return $scope.$sce.trustAsResourceUrl(url); }; // Compi...
$scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers =...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/number/numberWidget.coffee
46
86
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:2:completion
completion
$scope.getUrl = -> return '' if _.isEmpty($scope.widget.link) url = $scope.widget.link if $scope.widget.link.indexOf('http') != 0 url = 'http://' + url return $scope.$sce.trustAsResourceUrl(url) # Compiles the numbers and updates the widget $scope.compileNumbers =...
iconColor: _.compile(item.iconColor, row) iconTooltip: _.compile(item.iconTooltip, row) } # Set flag for single number or not $scope.singleNumber = ($scope.numbers.length == 1) $scope.loadData = -> $scope.loading = true $scope.dataSourceError = false ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/number/numberWidget.coffee
46
86
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:raw_corpus
raw_corpus
# Filter the data if the widget has filters if $scope.widget.filters? data = dataService.filter(data, $scope.widget.filters) # Sort the data if the widget has sortBy if $scope.widget.sortBy? data = dataService.sort(data, $scope.widget.sortBy) ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/number/numberWidget.coffee
88
126
ExpediaGroup/cyclotron:cyclotron-site/app/widgets/number/numberWidget.coffee:3:completion
completion
# Filter the data if the widget has filters if $scope.widget.filters? data = dataService.filter(data, $scope.widget.filters) # Sort the data if the widget has sortBy if $scope.widget.sortBy? data = dataService.sort(data, $scope.widget.sortBy) ...
, (errorMessage, status) -> # Error callback $scope.loading = false $scope.dataSourceError = true $scope.dataSourceErrorMessage = errorMessage $scope.nodata = null , -> # Loading callback $scope.loading = true $scope.reload...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/widgets/number/numberWidget.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/widgets/number/numberWidget.coffee
88
126
CaryLandholt/AngularFun:tasks/template.coffee:1:raw_corpus
raw_corpus
###global module, require### module.exports = (grunt) -> removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, '' grunt.registerMultiTask 'template', 'Compiles a template', -> src = @file.src dest = @file.dest source = grunt.file.read src...
CoffeeScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
b51fa32a9d2a3556c592d2e033e8802bf40b3f97
672
https://github.com/CaryLandholt/AngularFun/blob/b51fa32a9d2a3556c592d2e033e8802bf40b3f97/tasks/template.coffee
1
17
CaryLandholt/AngularFun:tasks/template.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global module, require### module.exports = (grunt) -> removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, '' grunt.registerMultiTask 'template', 'Compiles a template', -> src = @fi...
/*global module, require*/ module.exports = function(grunt) { var removeNonPrintableCharacters; removeNonPrintableCharacters = function(content) { var pattern; // tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm; return content.replace(pattern, ''); }; return grunt.registerMultiTask('template', '...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
b51fa32a9d2a3556c592d2e033e8802bf40b3f97
672
https://github.com/CaryLandholt/AngularFun/blob/b51fa32a9d2a3556c592d2e033e8802bf40b3f97/tasks/template.coffee
1
17
CaryLandholt/AngularFun:tasks/template.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global module, require*/ module.exports = function(grunt) { var removeNonPrintableCharacters; removeNonPrintableCharacters = function(content) { var pattern; // tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm; return content.replace(pattern, '...
###global module, require### module.exports = (grunt) -> removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, '' grunt.registerMultiTask 'template', 'Compiles a template', -> src = @file.src dest = @file.dest source = grunt.file.read src...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
b51fa32a9d2a3556c592d2e033e8802bf40b3f97
672
https://github.com/CaryLandholt/AngularFun/blob/b51fa32a9d2a3556c592d2e033e8802bf40b3f97/tasks/template.coffee
1
17
CaryLandholt/AngularFun:tasks/template.coffee:1:completion
completion
###global module, require### module.exports = (grunt) -> removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, ''
grunt.registerMultiTask 'template', 'Compiles a template', -> src = @file.src dest = @file.dest source = grunt.file.read src config = {config: @data} compiled = grunt.template.process source, config grunt.file.write dest, compiled
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
b51fa32a9d2a3556c592d2e033e8802bf40b3f97
672
https://github.com/CaryLandholt/AngularFun/blob/b51fa32a9d2a3556c592d2e033e8802bf40b3f97/tasks/template.coffee
1
17
CaryLandholt/AngularFun:tasks/template.coffee:1:raw_corpus
raw_corpus
###global module, require### module.exports = (grunt) -> growl = require 'growl' path = require 'path' rimraf = require 'rimraf' removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, '' grunt.registerMultiTask 'template', 'Compiles a templa...
CoffeeScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
a8f66a0a3617e549d0071a85d4d386a4103264e3
672
https://github.com/CaryLandholt/AngularFun/blob/a8f66a0a3617e549d0071a85d4d386a4103264e3/tasks/template.coffee
1
49
CaryLandholt/AngularFun:tasks/template.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global module, require### module.exports = (grunt) -> growl = require 'growl' path = require 'path' rimraf = require 'rimraf' removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, ''...
/*global module, require*/ module.exports = function(grunt) { var growl, path, removeNonPrintableCharacters, rimraf; growl = require('growl'); path = require('path'); rimraf = require('rimraf'); removeNonPrintableCharacters = function(content) { var pattern; // tabs and newlines pattern = /(\t|\r\...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
a8f66a0a3617e549d0071a85d4d386a4103264e3
672
https://github.com/CaryLandholt/AngularFun/blob/a8f66a0a3617e549d0071a85d4d386a4103264e3/tasks/template.coffee
1
49
CaryLandholt/AngularFun:tasks/template.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global module, require*/ module.exports = function(grunt) { var growl, path, removeNonPrintableCharacters, rimraf; growl = require('growl'); path = require('path'); rimraf = require('rimraf'); removeNonPrintableCharacters = function(content) { var p...
###global module, require### module.exports = (grunt) -> growl = require 'growl' path = require 'path' rimraf = require 'rimraf' removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, '' grunt.registerMultiTask 'template', 'Compiles a templa...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
a8f66a0a3617e549d0071a85d4d386a4103264e3
672
https://github.com/CaryLandholt/AngularFun/blob/a8f66a0a3617e549d0071a85d4d386a4103264e3/tasks/template.coffee
1
49
CaryLandholt/AngularFun:tasks/template.coffee:1:completion
completion
###global module, require### module.exports = (grunt) -> growl = require 'growl' path = require 'path' rimraf = require 'rimraf' removeNonPrintableCharacters = (content) -> # tabs and newlines pattern = /(\t|\r\n|\n|\r)/gm content.replace pattern, '' grunt.registerMultiTask 'template', 'Compiles a templa...
grunt.file.write src, compiled #compiled = grunt.template.process source, config #grunt.file.write src, compiled #scripts = config.scripts #scriptsTemplate = grunt.file.read scripts #styles = config.styles #stylesTemplate = grunt.file.read styles ### environment = config.environment obj = sc...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
tasks/template.coffee
MIT
a8f66a0a3617e549d0071a85d4d386a4103264e3
672
https://github.com/CaryLandholt/AngularFun/blob/a8f66a0a3617e549d0071a85d4d386a4103264e3/tasks/template.coffee
1
49
linemanjs/lineman:lib/cli/lineman-new.coffee:1:raw_corpus
raw_corpus
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples, shouldCoffeeify) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteE...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:completion
completion
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples, shouldCoffeeify) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteE...
_ _ | | (_) | | _ _ __ ___ _ __ ___ __ _ _ __ | | | | '_ \\ / _ \\ '_ ` _ \\ / _` | '_ \\ | |____| | | | | __/ | | | | | (_| | | | | |______|_|_| |_|\\___|_| |_| |_|\\__,_|_| |_| - Assembling your new...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:2:raw_corpus
raw_corpus
"vendor/js/underscore.js" ], (path) -> fs.unlink("#{dest}/#{path}") npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console....
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/lineman-new.coffee
51
80
linemanjs/lineman:lib/cli/lineman-new.coffee:2:completion
completion
"vendor/js/underscore.js" ], (path) -> fs.unlink("#{dest}/#{path}") npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console....
1. `cd #{projectName}` into your new project directory' 2. Start working on your project! * `lineman run` starts a web server at http://localhost:8000 * `lineman build` bundles a distribution in the "dist" directory * `lineman clean` empties the ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/lineman-new.coffee
51
80
linemanjs/lineman:lib/cli/lineman-new.coffee:1:raw_corpus
raw_corpus
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples, shouldCoffeeify) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteE...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0d9cde588965f2785b0cd879d8a99545337ff57b
1,168
https://github.com/linemanjs/lineman/blob/0d9cde588965f2785b0cd879d8a99545337ff57b/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:completion
completion
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples, shouldCoffeeify) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteE...
_ _ | | (_) | | _ _ __ ___ _ __ ___ __ _ _ __ | | | | '_ \\ / _ \\ '_ ` _ \\ / _` | '_ \\ | |____| | | | | __/ | | | | | (_| | | | | |______|_|_| |_|\\___|_| |_| |_|\\__,_|_| |_| - Assembling your new...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0d9cde588965f2785b0cd879d8a99545337ff57b
1,168
https://github.com/linemanjs/lineman/blob/0d9cde588965f2785b0cd879d8a99545337ff57b/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:2:raw_corpus
raw_corpus
"vendor/js/underscore.js" ]).each (path) -> fs.unlink("#{dest}/#{path}") npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> con...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0d9cde588965f2785b0cd879d8a99545337ff57b
1,168
https://github.com/linemanjs/lineman/blob/0d9cde588965f2785b0cd879d8a99545337ff57b/lib/cli/lineman-new.coffee
51
80
linemanjs/lineman:lib/cli/lineman-new.coffee:2:completion
completion
"vendor/js/underscore.js" ]).each (path) -> fs.unlink("#{dest}/#{path}") npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> con...
1. `cd #{projectName}` into your new project directory' 2. Start working on your project! * `lineman run` starts a web server at http://localhost:8000 * `lineman build` bundles a distribution in the "dist" directory * `lineman clean` empties the ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0d9cde588965f2785b0cd879d8a99545337ff57b
1,168
https://github.com/linemanjs/lineman/blob/0d9cde588965f2785b0cd879d8a99545337ff57b/lib/cli/lineman-new.coffee
51
80
linemanjs/lineman:lib/cli/lineman-new.coffee:1:raw_corpus
raw_corpus
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples, shouldCoffeeify) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) convert...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
235368eb4509e8b00fc1ccf92e776def55647843
1,168
https://github.com/linemanjs/lineman/blob/235368eb4509e8b00fc1ccf92e776def55647843/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:completion
completion
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples, shouldCoffeeify) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) convert...
_ _ | | (_) | | _ _ __ ___ _ __ ___ __ _ _ __ | | | | '_ \\ / _ \\ '_ ` _ \\ / _` | '_ \\ | |____| | | | | __/ | | | | | (_| | | | | |______|_|_| |_|\\___|_| |_| |_|\\__,_|_| |_| - Assembling your new...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
235368eb4509e8b00fc1ccf92e776def55647843
1,168
https://github.com/linemanjs/lineman/blob/235368eb4509e8b00fc1ccf92e776def55647843/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:2:raw_corpus
raw_corpus
"vendor/js/underscore.js" ]).each (path) -> fs.unlink("#{dest}/#{path}") npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> con...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/lib/cli/lineman-new.coffee
51
78
linemanjs/lineman:lib/cli/lineman-new.coffee:2:completion
completion
"vendor/js/underscore.js" ]).each (path) -> fs.unlink("#{dest}/#{path}") npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> con...
Getting started: 1. `cd #{projectName}` into your new project directory' 2. Start working on your project! * `lineman run` starts a web server at http://localhost:8000 * `lineman build` bundles a distribution in the "dist" directory ...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
e5828fdde5d00a181dea74dedd44d40bbd5fa572
1,168
https://github.com/linemanjs/lineman/blob/e5828fdde5d00a181dea74dedd44d40bbd5fa572/lib/cli/lineman-new.coffee
51
78
linemanjs/lineman:lib/cli/lineman-new.coffee:1:raw_corpus
raw_corpus
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles(dest)...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) co...
var _, copyArchetype, deleteExampleFiles, ensureNew, ensureNotEmpty, files, fs, printHello; files = require("./../file-utils"); fs = require('fs'); _ = require("lodash"); module.exports = function(projectName, shouldNpmInstall, shouldSkipExamples) { var dest; ensureNotEmpty(projectName); dest = `${process.cwd...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, copyArchetype, deleteExampleFiles, ensureNew, ensureNotEmpty, files, fs, printHello; files = require("./../file-utils"); fs = require('fs'); _ = require("lodash"); module.exports = function(projectName, shouldNpmInstall, shouldSkipExamples) { var dest;...
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles(dest)...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:completion
completion
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles(dest)...
_ _ | | (_) | | _ _ __ ___ _ __ ___ __ _ _ __ | | | | '_ \\ / _ \\ '_ ` _ \\ / _` | '_ \\ | |____| | | | | __/ | | | | | (_| | | | | |______|_|_| |_|\\___|_| |_| |_|\\__,_|_| |_| - Assembling your new...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:2:raw_corpus
raw_corpus
npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `npm install` failed! You might try again later inside the p...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `np...
var fail, npmInstallTo, printWelcome; npmInstallTo = function(dest, projectName) { console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory."); return require("./../npm-utils").installFrom(dest, function(error) { if (error) { con...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fail, npmInstallTo, printWelcome; npmInstallTo = function(dest, projectName) { console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory."); return require("./../npm-utils").install...
npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `npm install` failed! You might try again later inside the p...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:2:completion
completion
npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `npm install` failed! You might try again later inside the p...
2. Start working on your project! * `lineman run` starts a web server at http://localhost:8000 * `lineman build` bundles a distribution in the "dist" directory * `lineman clean` empties the "dist" and "generated" directories * `lineman spec` ru...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
cb848d104be19f2252f951056855b36531f0c71e
1,168
https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:1:raw_corpus
raw_corpus
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles(dest)...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) co...
var _, copyArchetype, deleteExampleFiles, ensureNew, ensureNotEmpty, files, fs, printHello; files = require("./../file-utils"); fs = require('fs'); _ = require("lodash"); module.exports = function(projectName, shouldNpmInstall, shouldSkipExamples) { var dest; ensureNotEmpty(projectName); dest = `${process.cwd...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, copyArchetype, deleteExampleFiles, ensureNew, ensureNotEmpty, files, fs, printHello; files = require("./../file-utils"); fs = require('fs'); _ = require("lodash"); module.exports = function(projectName, shouldNpmInstall, shouldSkipExamples) { var dest;...
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles(dest)...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:completion
completion
files = require("./../file-utils") fs = require('fs') _ = require("lodash") module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles(dest)...
_ _ | | (_) | | _ _ __ ___ _ __ ___ __ _ _ __ | | | | '_ \\ / _ \\ '_ ` _ \\ / _` | '_ \\ | |____| | | | | __/ | | | | | (_| | | | | |______|_|_| |_|\\___|_| |_| |_|\\__,_|_| |_| - Assembling your new...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:raw_corpus
raw_corpus
files = require("./../file-utils") fs = require('fs') _ = require('grunt').util._ module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0a91bd629996e2274fa1350698300e17f93f4223
1,168
https://github.com/linemanjs/lineman/blob/0a91bd629996e2274fa1350698300e17f93f4223/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript files = require("./../file-utils") fs = require('fs') _ = require('grunt').util._ module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest...
var _, copyArchetype, deleteExampleFiles, ensureNew, ensureNotEmpty, files, fs, printHello; files = require("./../file-utils"); fs = require('fs'); _ = require('grunt').util._; module.exports = function(projectName, shouldNpmInstall, shouldSkipExamples) { var dest; ensureNotEmpty(projectName); dest = `${proce...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0a91bd629996e2274fa1350698300e17f93f4223
1,168
https://github.com/linemanjs/lineman/blob/0a91bd629996e2274fa1350698300e17f93f4223/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, copyArchetype, deleteExampleFiles, ensureNew, ensureNotEmpty, files, fs, printHello; files = require("./../file-utils"); fs = require('fs'); _ = require('grunt').util._; module.exports = function(projectName, shouldNpmInstall, shouldSkipExamples) { var...
files = require("./../file-utils") fs = require('fs') _ = require('grunt').util._ module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0a91bd629996e2274fa1350698300e17f93f4223
1,168
https://github.com/linemanjs/lineman/blob/0a91bd629996e2274fa1350698300e17f93f4223/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:1:completion
completion
files = require("./../file-utils") fs = require('fs') _ = require('grunt').util._ module.exports = (projectName, shouldNpmInstall, shouldSkipExamples) -> ensureNotEmpty(projectName) dest = "#{process.cwd()}/#{projectName}" ensureNew(dest) printHello(dest) copyArchetype(dest, projectName) deleteExampleFiles...
_ _ | | (_) | | _ _ __ ___ _ __ ___ __ _ _ __ | | | | '_ \\ / _ \\ '_ ` _ \\ / _` | '_ \\ | |____| | | | | __/ | | | | | (_| | | | | |______|_|_| |_|\\___|_| |_| |_|\\__,_|_| |_| - Assembling your new...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
0a91bd629996e2274fa1350698300e17f93f4223
1,168
https://github.com/linemanjs/lineman/blob/0a91bd629996e2274fa1350698300e17f93f4223/lib/cli/lineman-new.coffee
1
50
linemanjs/lineman:lib/cli/lineman-new.coffee:2:raw_corpus
raw_corpus
npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `npm install` failed! You might try again later inside the p...
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
92b48faa29da6ae7508696ce33301c4e04b4df1b
1,168
https://github.com/linemanjs/lineman/blob/92b48faa29da6ae7508696ce33301c4e04b4df1b/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `np...
var fail, npmInstallTo, printWelcome; npmInstallTo = function(dest, projectName) { console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory."); return require("./../npm-utils").installFrom(dest, function(error) { if (error) { con...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
92b48faa29da6ae7508696ce33301c4e04b4df1b
1,168
https://github.com/linemanjs/lineman/blob/92b48faa29da6ae7508696ce33301c4e04b4df1b/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fail, npmInstallTo, printWelcome; npmInstallTo = function(dest, projectName) { console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory."); return require("./../npm-utils").install...
npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `npm install` failed! You might try again later inside the p...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
92b48faa29da6ae7508696ce33301c4e04b4df1b
1,168
https://github.com/linemanjs/lineman/blob/92b48faa29da6ae7508696ce33301c4e04b4df1b/lib/cli/lineman-new.coffee
51
74
linemanjs/lineman:lib/cli/lineman-new.coffee:2:completion
completion
npmInstallTo = (dest, projectName) -> console.log(" - Performing `npm install`. Lineman will install into (and run out of) this project's `node_modules/lineman` directory.") require("./../npm-utils").installFrom dest, (error) -> console.warn("WARNING: `npm install` failed! You might try again later inside the p...
2. Start working on your project! * `lineman run` starts a web server at http://localhost:8000 * `lineman build` bundles a distribution in the "dist" directory * `lineman clean` empties the "dist" and "generated" directories * `lineman spec` ru...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/lineman-new.coffee
MIT
92b48faa29da6ae7508696ce33301c4e04b4df1b
1,168
https://github.com/linemanjs/lineman/blob/92b48faa29da6ae7508696ce33301c4e04b4df1b/lib/cli/lineman-new.coffee
51
74
nicolaskruchten/pivottable:pivot.es.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
f1dfb4e4e306617d89ee0c39f321c387bf726a9e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
tooMany: "(demasiados valores)" filterResults: "Filtrar resultados" totals: "Totales" vs: "vs" by: "por" aggregators: "Cuenta": tpl.count(frFmtInt) "Cuenta de valores únicos": tpl.countUnique(frFmtInt) ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
f1dfb4e4e306617d89ee0c39f321c387bf726a9e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
80455c7be5bac8542a2bfa77c10f41a988649134
4,440
https://github.com/nicolaskruchten/pivottable/blob/80455c7be5bac8542a2bfa77c10f41a988649134/pivot.es.coffee
1
50
nicolaskruchten/pivottable:pivot.es.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
tooMany: "(demasiados valores)" filterResults: "Filtrar resultados" totals: "Totales" vs: "vs" by: "por" aggregators: "Cuenta": tpl.count(frFmtInt) "Cuenta de valores únicos": tpl.countUnique(frFm...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.es.coffee
MIT
80455c7be5bac8542a2bfa77c10f41a988649134
4,440
https://github.com/nicolaskruchten/pivottable/blob/80455c7be5bac8542a2bfa77c10f41a988649134/pivot.es.coffee
1
50