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
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:completion
completion
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
throw new Error "Missing DTD notation name. " + @debugInfo(name) if not value.pubID and not value.sysID throw new Error "Public or system identifiers are required for an external entity. " + @debugInfo(name) @name = @stringify.name name @pubID = @stringify.dtdPubID value.pubID if value.pubID? @sy...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e
926
https://github.com/oozcitak/xmlbuilder-js/blob/b38e655b1c8b3f940de5f764029d4cb6c4bc5d9e/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation...
var XMLDTDNotation, XMLNode; XMLNode = require('./XMLNode'); // Represents a NOTATION entry in the DTD module.exports = XMLDTDNotation = class XMLDTDNotation extends XMLNode { // Initializes a new instance of `XMLDTDNotation` // `parent` the parent `XMLDocType` element // `name` the name of the notation // `...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLDTDNotation, XMLNode; XMLNode = require('./XMLNode'); // Represents a NOTATION entry in the DTD module.exports = XMLDTDNotation = class XMLDTDNotation extends XMLNode { // Initializes a new instance of `XMLDTDNotation` // `parent` the parent `XMLDocTy...
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:completion
completion
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
throw new Error "Missing DTD notation name. " + @debugInfo(name) if not value.pubID and not value.sysID throw new Error "Public or system identifiers are required for an external entity. " + @debugInfo(name) @name = @stringify.eleName name @pubID = @stringify.dtdPubID value.pubID if value.pubID? ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
b6c2503daa774b02579fb8c98c31877ea24861a1
926
https://github.com/oozcitak/xmlbuilder-js/blob/b6c2503daa774b02579fb8c98c31877ea24861a1/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:raw_corpus
raw_corpus
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation...
var XMLDTDNotation, XMLNode; XMLNode = require('./XMLNode'); // Represents a NOTATION entry in the DTD module.exports = XMLDTDNotation = class XMLDTDNotation extends XMLNode { // Initializes a new instance of `XMLDTDNotation` // `parent` the parent `XMLDocType` element // `name` the name of the notation // `...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLDTDNotation, XMLNode; XMLNode = require('./XMLNode'); // Represents a NOTATION entry in the DTD module.exports = XMLDTDNotation = class XMLDTDNotation extends XMLNode { // Initializes a new instance of `XMLDTDNotation` // `parent` the parent `XMLDocTy...
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLDTDNotation.coffee
1
34
oozcitak/xmlbuilder-js:src/XMLDTDNotation.coffee:1:completion
completion
XMLNode = require './XMLNode' # Represents a NOTATION entry in the DTD module.exports = class XMLDTDNotation extends XMLNode # Initializes a new instance of `XMLDTDNotation` # # `parent` the parent `XMLDocType` element # `name` the name of the notation # `value` an object with external entity details # `...
throw new Error "Missing DTD notation name. " + @debugInfo(name) if not value.pubID and not value.sysID throw new Error "Public or system identifiers are required for an external entity. " + @debugInfo(name) @name = @stringify.eleName name @pubID = @stringify.dtdPubID value.pubID if value.pubID? ...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLDTDNotation.coffee
MIT
f066a3151d269e738ea37d87e5bf2470ef948b24
926
https://github.com/oozcitak/xmlbuilder-js/blob/f066a3151d269e738ea37d87e5bf2470ef948b24/src/XMLDTDNotation.coffee
1
34
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
class Controller constructor: (@$log, @gitHubService) -> @search = (searchTerm) => @gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Controller constructor: (@$log, @gitHubService) -> @search = (searchTerm) => @gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller] ```
var Controller; Controller = class Controller { constructor($log, gitHubService) { this.$log = $log; this.gitHubService = gitHubService; this.search = (searchTerm) => { return this.gitHubService.get(searchTerm).then((results) => { return this.repos = results; }); }; } }; angul...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Controller; Controller = class Controller { constructor($log, gitHubService) { this.$log = $log; this.gitHubService = gitHubService; this.search = (searchTerm) => { return this.gitHubService.get(searchTerm).then((results) => { retur...
class Controller constructor: (@$log, @gitHubService) -> @search = (searchTerm) => @gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
class Controller constructor: (@$log, @gitHubService) -> @search = (searchTerm) =>
@gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
class Controller constructor: ($log, gitHubService) -> @search = (searchTerm) => gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Controller constructor: ($log, gitHubService) -> @search = (searchTerm) => gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller] ```
var Controller; Controller = class Controller { constructor($log, gitHubService) { this.search = (searchTerm) => { return gitHubService.get(searchTerm).then((results) => { return this.repos = results; }); }; } }; angular.module('app').controller('gitHubController', ['$log', 'gitHubSer...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Controller; Controller = class Controller { constructor($log, gitHubService) { this.search = (searchTerm) => { return gitHubService.get(searchTerm).then((results) => { return this.repos = results; }); }; } }; angular.module('a...
class Controller constructor: ($log, gitHubService) -> @search = (searchTerm) => gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
class Controller constructor: ($log, gitHubService) -> @search = (searchTerm) =>
gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', Controller]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
3d326c4da4d180fd2b3db82b132bb418234ccdab
672
https://github.com/CaryLandholt/AngularFun/blob/3d326c4da4d180fd2b3db82b132bb418234ccdab/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
b84573eefed26945462825227688b2e2fd24cfc8
672
https://github.com/CaryLandholt/AngularFun/blob/b84573eefed26945462825227688b2e2fd24cfc8/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController] ```
var GitHubController; GitHubController = class GitHubController { constructor($log, gitHubService) { this.search = (searchTerm) => { return gitHubService.get(searchTerm).then((results) => { return this.repos = results; }); }; } }; angular.module('app').controller('gitHubController', [...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
b84573eefed26945462825227688b2e2fd24cfc8
672
https://github.com/CaryLandholt/AngularFun/blob/b84573eefed26945462825227688b2e2fd24cfc8/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitHubController; GitHubController = class GitHubController { constructor($log, gitHubService) { this.search = (searchTerm) => { return gitHubService.get(searchTerm).then((results) => { return this.repos = results; }); }; } }; ...
class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
b84573eefed26945462825227688b2e2fd24cfc8
672
https://github.com/CaryLandholt/AngularFun/blob/b84573eefed26945462825227688b2e2fd24cfc8/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) =>
gitHubService.get(searchTerm).then (results) => @repos = results angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
b84573eefed26945462825227688b2e2fd24cfc8
672
https://github.com/CaryLandholt/AngularFun/blob/b84573eefed26945462825227688b2e2fd24cfc8/src/scripts/controllers/gitHubController.coffee
1
7
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/gitHubController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController] ```
var GitHubController; GitHubController = class GitHubController { constructor($log, gitHubService) { this.search = (searchTerm) => { return this.repos = gitHubService.get(searchTerm); }; } }; angular.module('app').controller('gitHubController', ['$log', 'gitHubService', GitHubController]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/gitHubController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitHubController; GitHubController = class GitHubController { constructor($log, gitHubService) { this.search = (searchTerm) => { return this.repos = gitHubService.get(searchTerm); }; } }; angular.module('app').controller('gitHubController',...
class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/gitHubController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) =>
@repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/gitHubController.coffee
1
6
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
do (angular) -> 'use strict' class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/gitHubController.coffee
1
9
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do (angular) -> 'use strict' class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController...
(function(angular) { 'use strict'; var GitHubController; GitHubController = class GitHubController { constructor($log, gitHubService) { this.search = (searchTerm) => { return this.repos = gitHubService.get(searchTerm); }; } }; return angular.module('app').controller('gitHubControl...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/gitHubController.coffee
1
9
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function(angular) { 'use strict'; var GitHubController; GitHubController = class GitHubController { constructor($log, gitHubService) { this.search = (searchTerm) => { return this.repos = gitHubService.get(searchTerm); }; } }; ...
do (angular) -> 'use strict' class GitHubController constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/gitHubController.coffee
1
9
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
do (angular) -> 'use strict' class GitHubController
constructor: ($log, gitHubService) -> @search = (searchTerm) => @repos = gitHubService.get searchTerm angular.module('app').controller 'gitHubController', ['$log', 'gitHubService', GitHubController]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/controllers/gitHubController.coffee
1
9
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$location', 'gitHubService', ($log, $scope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParams.searchTerm gitHubServ...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
a63d2a284d018f3a58ac10d805fd689faf36ebd7
672
https://github.com/CaryLandholt/AngularFun/blob/a63d2a284d018f3a58ac10d805fd689faf36ebd7/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').controller 'gitHubController', ['$log', '$scope', '$location', 'gitHubService', ($log, $scope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> ...
angular.module('app').controller('gitHubController', [ '$log', '$scope', '$location', 'gitHubService', function($log, $scope, $location, gitHubService) { $scope.search = function(searchTerm) { return $location.path(`/github/${searchTerm}`); }; return $scope.onRouteChange = function(rou...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
a63d2a284d018f3a58ac10d805fd689faf36ebd7
672
https://github.com/CaryLandholt/AngularFun/blob/a63d2a284d018f3a58ac10d805fd689faf36ebd7/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').controller('gitHubController', [ '$log', '$scope', '$location', 'gitHubService', function($log, $scope, $location, gitHubService) { $scope.search = function(searchTerm) { return $location.path(`/github/${searchTerm}`)...
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$location', 'gitHubService', ($log, $scope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParams.searchTerm gitHubServ...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
a63d2a284d018f3a58ac10d805fd689faf36ebd7
672
https://github.com/CaryLandholt/AngularFun/blob/a63d2a284d018f3a58ac10d805fd689faf36ebd7/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$location', 'gitHubService', ($log, $scope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) ->
$scope.searchTerm = routeParams.searchTerm gitHubService.get($scope.searchTerm).then (results) -> $scope.repos = results ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
a63d2a284d018f3a58ac10d805fd689faf36ebd7
672
https://github.com/CaryLandholt/AngularFun/blob/a63d2a284d018f3a58ac10d805fd689faf36ebd7/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParam...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474
672
https://github.com/CaryLandholt/AngularFun/blob/6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteC...
angular.module('app').controller('gitHubController', [ '$log', '$scope', '$rootScope', '$location', 'gitHubService', function($log, $scope, $rootScope, $location, gitHubService) { $scope.search = function(searchTerm) { return $location.path(`/github/${searchTerm}`); }; return $scop...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474
672
https://github.com/CaryLandholt/AngularFun/blob/6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').controller('gitHubController', [ '$log', '$scope', '$rootScope', '$location', 'gitHubService', function($log, $scope, $rootScope, $location, gitHubService) { $scope.search = function(searchTerm) { return $location...
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParam...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474
672
https://github.com/CaryLandholt/AngularFun/blob/6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) ->
$scope.searchTerm = routeParams.searchTerm gitHubService.get($scope.searchTerm).then (results) -> $scope.repos = results ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474
672
https://github.com/CaryLandholt/AngularFun/blob/6506e79cc46ff4b7b0e0aff6b342f6b5a64e9474/src/scripts/controllers/gitHubController.coffee
1
10
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParam...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/gitHubController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteC...
angular.module('app').controller('gitHubController', [ '$log', '$scope', '$rootScope', '$location', 'gitHubService', function($log, $scope, $rootScope, $location, gitHubService) { $scope.search = function(searchTerm) { return $location.path(`/github/${searchTerm}`); }; return $scop...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/gitHubController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').controller('gitHubController', [ '$log', '$scope', '$rootScope', '$location', 'gitHubService', function($log, $scope, $rootScope, $location, gitHubService) { $scope.search = function(searchTerm) { return $location...
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParam...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/gitHubController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
angular.module('app').controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $location.path "/github/#{searchTerm}" $scope.onRouteChange = (routeParams) ->
$scope.searchTerm = routeParams.searchTerm gitHubService.get $scope.searchTerm , (repos) -> $scope.repos = repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
ee3e13320b45929f8c738ee5b5ec26437044f1d4
672
https://github.com/CaryLandholt/AngularFun/blob/ee3e13320b45929f8c738ee5b5ec26437044f1d4/src/scripts/controllers/gitHubController.coffee
1
11
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:raw_corpus
raw_corpus
###global define### define ['controllers/controllers', 'services/gitHubService'], (controllers) -> 'use strict' controllers.controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $loca...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/gitHubController.coffee
1
16
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ###global define### define ['controllers/controllers', 'services/gitHubService'], (controllers) -> 'use strict' controllers.controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, git...
/*global define*/ define(['controllers/controllers', 'services/gitHubService'], function(controllers) { 'use strict'; return controllers.controller('gitHubController', [ '$log', '$scope', '$rootScope', '$location', 'gitHubService', function($log, $scope, $rootScope, $location, ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/gitHubController.coffee
1
16
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /*global define*/ define(['controllers/controllers', 'services/gitHubService'], function(controllers) { 'use strict'; return controllers.controller('gitHubController', [ '$log', '$scope', '$rootScope', '$location', 'gitHubService', funct...
###global define### define ['controllers/controllers', 'services/gitHubService'], (controllers) -> 'use strict' controllers.controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $loca...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/gitHubController.coffee
1
16
CaryLandholt/AngularFun:src/scripts/controllers/gitHubController.coffee:1:completion
completion
###global define### define ['controllers/controllers', 'services/gitHubService'], (controllers) -> 'use strict' controllers.controller 'gitHubController', ['$log', '$scope', '$rootScope', '$location', 'gitHubService', ($log, $scope, $rootScope, $location, gitHubService) -> $scope.search = (searchTerm) -> $loca...
$scope.onRouteChange = (routeParams) -> $scope.searchTerm = routeParams.searchTerm gitHubService.get $scope.searchTerm , (repos) -> $scope.repos = repos ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/gitHubController.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/src/scripts/controllers/gitHubController.coffee
1
16
yakyak/yakyak:src/ui/views/trayicon.coffee:5:raw_corpus
raw_corpus
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click_action: 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to tr...
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click_action: 'togglewindow' } { label: i18...
var update; update = function(unreadCount, viewstate) { var templateContextMenu; // update menu templateContextMenu = compact([ { label: i18n.__('menu.view.tray.toggle_minimize:Toggle window show/hide'), click_action: 'togglewindow' }, { label: i18n.__("menu.view.tray.start_minimize...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var update; update = function(unreadCount, viewstate) { var templateContextMenu; // update menu templateContextMenu = compact([ { label: i18n.__('menu.view.tray.toggle_minimize:Toggle window show/hide'), click_action: 'togglewindow' }, ...
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click_action: 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to tr...
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:5:completion
completion
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click_action: 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to tr...
label: i18n.__ "menu.view.tray.close:Close to tray" type: "checkbox" checked: viewstate.closetotray click_action: 'toggleclosetotray' } { label: i18n.__ 'menu.view.hide_dock:Hide Dock icon' type: 'checkbox' checked: viewstate.hidedockico...
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:6:raw_corpus
raw_corpus
readIconName = if viewstate?.colorblind then 'read-colorblind' else 'read' later -> action 'settray', templateContextMenu, trayIcons[readIconName], i18n.__('title:YakYak - Hangouts Client') catch e console.log 'missing icons', e
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
85
89
yakyak/yakyak:src/ui/views/trayicon.coffee:6:completion
completion
readIconName = if viewstate?.colorblind then 'read-colorblind' else 'read' later ->
action 'settray', templateContextMenu, trayIcons[readIconName], i18n.__('title:YakYak - Hangouts Client') catch e console.log 'missing icons', e
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
85
89
yakyak/yakyak:src/ui/views/trayicon.coffee:7:raw_corpus
raw_corpus
module.exports = ({viewstate, conv}) -> if viewstate.showtray update(conv.unreadTotal(), viewstate) else destroy()
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
92
96
yakyak/yakyak:src/ui/views/trayicon.coffee:7:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = ({viewstate, conv}) -> if viewstate.showtray update(conv.unreadTotal(), viewstate) else destroy() ```
module.exports = function({viewstate, conv}) { if (viewstate.showtray) { return update(conv.unreadTotal(), viewstate); } else { return destroy(); } };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
92
96
yakyak/yakyak:src/ui/views/trayicon.coffee:7:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function({viewstate, conv}) { if (viewstate.showtray) { return update(conv.unreadTotal(), viewstate); } else { return destroy(); } }; ```
module.exports = ({viewstate, conv}) -> if viewstate.showtray update(conv.unreadTotal(), viewstate) else destroy()
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
92
96
yakyak/yakyak:src/ui/views/trayicon.coffee:7:completion
completion
module.exports = ({viewstate, conv}) -> if viewstate.showtray
update(conv.unreadTotal(), viewstate) else destroy()
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd
3,762
https://github.com/yakyak/yakyak/blob/8f8cbc081c66ca00b5e9520a9bef5f2bc1d64dfd/src/ui/views/trayicon.coffee
92
96
yakyak/yakyak:src/ui/views/trayicon.coffee:4:raw_corpus
raw_corpus
destroy = -> tray.destroy() if tray console.log('is Destroyed', tray.isDestroyed()) tray = null
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
42
45
yakyak/yakyak:src/ui/views/trayicon.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript destroy = -> tray.destroy() if tray console.log('is Destroyed', tray.isDestroyed()) tray = null ```
var destroy; destroy = function() { var tray; if (tray) { tray.destroy(); } console.log('is Destroyed', tray.isDestroyed()); return tray = null; };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
42
45
yakyak/yakyak:src/ui/views/trayicon.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var destroy; destroy = function() { var tray; if (tray) { tray.destroy(); } console.log('is Destroyed', tray.isDestroyed()); return tray = null; }; ```
destroy = -> tray.destroy() if tray console.log('is Destroyed', tray.isDestroyed()) tray = null
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
42
45
yakyak/yakyak:src/ui/views/trayicon.coffee:4:completion
completion
destroy = -> tray.destroy() if tray
console.log('is Destroyed', tray.isDestroyed()) tray = null
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
42
45
yakyak/yakyak:src/ui/views/trayicon.coffee:7:raw_corpus
raw_corpus
module.exports = ({viewstate, conv}) -> if viewstate.showtray create(viewstate) if not tray? update(conv.unreadTotal(), viewstate) else destroy() if tray
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
104
109
yakyak/yakyak:src/ui/views/trayicon.coffee:7:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = ({viewstate, conv}) -> if viewstate.showtray create(viewstate) if not tray? update(conv.unreadTotal(), viewstate) else destroy() if tray ```
module.exports = function({viewstate, conv}) { if (viewstate.showtray) { if (typeof tray === "undefined" || tray === null) { create(viewstate); } return update(conv.unreadTotal(), viewstate); } else { if (tray) { return destroy(); } } };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
104
109
yakyak/yakyak:src/ui/views/trayicon.coffee:7:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function({viewstate, conv}) { if (viewstate.showtray) { if (typeof tray === "undefined" || tray === null) { create(viewstate); } return update(conv.unreadTotal(), viewstate); } else { if (tray) { return destroy(); ...
module.exports = ({viewstate, conv}) -> if viewstate.showtray create(viewstate) if not tray? update(conv.unreadTotal(), viewstate) else destroy() if tray
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
104
109
yakyak/yakyak:src/ui/views/trayicon.coffee:7:completion
completion
module.exports = ({viewstate, conv}) -> if viewstate.showtray create(viewstate) if not tray?
update(conv.unreadTotal(), viewstate) else destroy() if tray
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
beeab832f2e19d0de168c3f1d070b19ebaf459f5
3,762
https://github.com/yakyak/yakyak/blob/beeab832f2e19d0de168c3f1d070b19ebaf459f5/src/ui/views/trayicon.coffee
104
109
yakyak/yakyak:src/ui/views/trayicon.coffee:3:raw_corpus
raw_corpus
create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
34
39
yakyak/yakyak:src/ui/views/trayicon.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow' ```
var create; create = function() { var tray; tray = new Tray(trayIcons["read"]); tray.currentImage = 'read'; tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray icon is clicked return tray.on('click', function() { return action('togglewindow'); }); };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
34
39
yakyak/yakyak:src/ui/views/trayicon.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var create; create = function() { var tray; tray = new Tray(trayIcons["read"]); tray.currentImage = 'read'; tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray icon is clicked return tray.on('click', function() { re...
create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
34
39
yakyak/yakyak:src/ui/views/trayicon.coffee:3:completion
completion
create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read'
tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
34
39
yakyak/yakyak:src/ui/views/trayicon.coffee:5:raw_corpus
raw_corpus
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click: -> action 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to...
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
46
95
yakyak/yakyak:src/ui/views/trayicon.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click: -> action 'togglewindow' } { label: ...
var update; update = function(unreadCount, viewstate) { var contextMenu, templateContextMenu; // update menu templateContextMenu = compact([ { label: i18n.__('menu.view.tray.toggle_minimize:Toggle window show/hide'), click: function() { return action('togglewindow'); } }, { ...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
46
95
yakyak/yakyak:src/ui/views/trayicon.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var update; update = function(unreadCount, viewstate) { var contextMenu, templateContextMenu; // update menu templateContextMenu = compact([ { label: i18n.__('menu.view.tray.toggle_minimize:Toggle window show/hide'), click: function() { ...
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click: -> action 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to...
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
46
95
yakyak/yakyak:src/ui/views/trayicon.coffee:5:completion
completion
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle window show/hide' click: -> action 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to...
{ label: i18n.__ "menu.view.tray.close:Close to tray" type: "checkbox" checked: viewstate.closetotray click: -> action 'toggleclosetotray' } { label: i18n.__ 'menu.view.hide_dock:Hide Dock icon' type: 'checkbox' checked: view...
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
46
95
yakyak/yakyak:src/ui/views/trayicon.coffee:6:raw_corpus
raw_corpus
if unreadCount > 0 tray.setImage trayIcons["unread"] unless tray.currentImage == 'unread' tray.currentImage = 'unread' else tray.setImage trayIcons["read"] unless tray.currentImage == 'read' tray.currentImage = 'read' catch e console.log 'missing icons...
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
96
103
yakyak/yakyak:src/ui/views/trayicon.coffee:6:completion
completion
if unreadCount > 0 tray.setImage trayIcons["unread"] unless tray.currentImage == 'unread' tray.currentImage = 'unread' else
tray.setImage trayIcons["read"] unless tray.currentImage == 'read' tray.currentImage = 'read' catch e console.log 'missing icons', e
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
96
103
yakyak/yakyak:src/ui/views/trayicon.coffee:7:raw_corpus
raw_corpus
module.exports = ({viewstate, conv}) -> if viewstate.showtray create() if not tray? update(conv.unreadTotal(), viewstate) else destroy() if tray
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
106
111
yakyak/yakyak:src/ui/views/trayicon.coffee:7:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = ({viewstate, conv}) -> if viewstate.showtray create() if not tray? update(conv.unreadTotal(), viewstate) else destroy() if tray ```
module.exports = function({viewstate, conv}) { if (viewstate.showtray) { if (typeof tray === "undefined" || tray === null) { create(); } return update(conv.unreadTotal(), viewstate); } else { if (tray) { return destroy(); } } };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
106
111
yakyak/yakyak:src/ui/views/trayicon.coffee:7:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function({viewstate, conv}) { if (viewstate.showtray) { if (typeof tray === "undefined" || tray === null) { create(); } return update(conv.unreadTotal(), viewstate); } else { if (tray) { return destroy(); } } }...
module.exports = ({viewstate, conv}) -> if viewstate.showtray create() if not tray? update(conv.unreadTotal(), viewstate) else destroy() if tray
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
106
111
yakyak/yakyak:src/ui/views/trayicon.coffee:7:completion
completion
module.exports = ({viewstate, conv}) -> if viewstate.showtray create() if not tray?
update(conv.unreadTotal(), viewstate) else destroy() if tray
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
68cc15d3af8ed742b16632851b2532cdfaeae9c1
3,762
https://github.com/yakyak/yakyak/blob/68cc15d3af8ed742b16632851b2532cdfaeae9c1/src/ui/views/trayicon.coffee
106
111
yakyak/yakyak:src/ui/views/trayicon.coffee:3:raw_corpus
raw_corpus
create = () -> tray = new Tray(nativeImage.createEmpty()); tray.setImage(nativeImage.createFromPath(trayIcons["read"])); tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript create = () -> tray = new Tray(nativeImage.createEmpty()); tray.setImage(nativeImage.createFromPath(trayIcons["read"])); tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is click...
var create; create = function() { var tray; tray = new Tray(nativeImage.createEmpty()); tray.setImage(nativeImage.createFromPath(trayIcons["read"])); tray.currentImage = 'read'; tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray icon is clicked return tray.on('click', fu...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var create; create = function() { var tray; tray = new Tray(nativeImage.createEmpty()); tray.setImage(nativeImage.createFromPath(trayIcons["read"])); tray.currentImage = 'read'; tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); // Emitted whe...
create = () -> tray = new Tray(nativeImage.createEmpty()); tray.setImage(nativeImage.createFromPath(trayIcons["read"])); tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:completion
completion
create = () -> tray = new Tray(nativeImage.createEmpty()); tray.setImage(nativeImage.createFromPath(trayIcons["read"]));
tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:4:raw_corpus
raw_corpus
destroy = -> tray.destroy() if tray tray = null
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
39
41
yakyak/yakyak:src/ui/views/trayicon.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript destroy = -> tray.destroy() if tray tray = null ```
var destroy; destroy = function() { var tray; if (tray) { tray.destroy(); } return tray = null; };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
39
41
yakyak/yakyak:src/ui/views/trayicon.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var destroy; destroy = function() { var tray; if (tray) { tray.destroy(); } return tray = null; }; ```
destroy = -> tray.destroy() if tray tray = null
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
39
41
yakyak/yakyak:src/ui/views/trayicon.coffee:6:raw_corpus
raw_corpus
if unreadCount > 0 tray.setImage nativeImage.createFromPath(trayIcons["unread"]) unless tray.currentImage == 'unread' tray.currentImage = 'unread' else tray.setImage nativeImage.createFromPath(trayIcons["read"]) unless tray.currentImage == 'read' tray.currentImage...
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
93
100
yakyak/yakyak:src/ui/views/trayicon.coffee:6:completion
completion
if unreadCount > 0 tray.setImage nativeImage.createFromPath(trayIcons["unread"]) unless tray.currentImage == 'unread' tray.currentImage = 'unread' else
tray.setImage nativeImage.createFromPath(trayIcons["read"]) unless tray.currentImage == 'read' tray.currentImage = 'read' catch e console.log 'missing icons', e
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2
3,762
https://github.com/yakyak/yakyak/blob/f7b9774f7676782a73ef0c9e5b8b9f467e2e81a2/src/ui/views/trayicon.coffee
93
100
yakyak/yakyak:src/ui/views/trayicon.coffee:3:raw_corpus
raw_corpus
create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') tray.setTitle i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f666a6ec07dffd48a3eea3f8e428d30dc0e98153
3,762
https://github.com/yakyak/yakyak/blob/f666a6ec07dffd48a3eea3f8e428d30dc0e98153/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') tray.setTitle i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on '...
var create; create = function() { var tray; tray = new Tray(trayIcons["read"]); tray.currentImage = 'read'; tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); tray.setTitle(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray icon is clicked return tray.on('click', function() { ...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f666a6ec07dffd48a3eea3f8e428d30dc0e98153
3,762
https://github.com/yakyak/yakyak/blob/f666a6ec07dffd48a3eea3f8e428d30dc0e98153/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var create; create = function() { var tray; tray = new Tray(trayIcons["read"]); tray.currentImage = 'read'; tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); tray.setTitle(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray i...
create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read' tray.setToolTip i18n.__('title:YakYak - Hangouts Client') tray.setTitle i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f666a6ec07dffd48a3eea3f8e428d30dc0e98153
3,762
https://github.com/yakyak/yakyak/blob/f666a6ec07dffd48a3eea3f8e428d30dc0e98153/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:completion
completion
create = () -> tray = new Tray trayIcons["read"] tray.currentImage = 'read'
tray.setToolTip i18n.__('title:YakYak - Hangouts Client') tray.setTitle i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
f666a6ec07dffd48a3eea3f8e428d30dc0e98153
3,762
https://github.com/yakyak/yakyak/blob/f666a6ec07dffd48a3eea3f8e428d30dc0e98153/src/ui/views/trayicon.coffee
31
37
yakyak/yakyak:src/ui/views/trayicon.coffee:3:raw_corpus
raw_corpus
create = () -> tray = new Tray trayIcons["read"] tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
e66d5b24b30fc5c2f47b42983d5993cc4822b4d2
3,762
https://github.com/yakyak/yakyak/blob/e66d5b24b30fc5c2f47b42983d5993cc4822b4d2/src/ui/views/trayicon.coffee
25
29
yakyak/yakyak:src/ui/views/trayicon.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript create = () -> tray = new Tray trayIcons["read"] tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow' ```
var create; create = function() { var tray; tray = new Tray(trayIcons["read"]); tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray icon is clicked return tray.on('click', function() { return action('togglewindow'); }); };
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
e66d5b24b30fc5c2f47b42983d5993cc4822b4d2
3,762
https://github.com/yakyak/yakyak/blob/e66d5b24b30fc5c2f47b42983d5993cc4822b4d2/src/ui/views/trayicon.coffee
25
29
yakyak/yakyak:src/ui/views/trayicon.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var create; create = function() { var tray; tray = new Tray(trayIcons["read"]); tray.setToolTip(i18n.__('title:YakYak - Hangouts Client')); // Emitted when the tray icon is clicked return tray.on('click', function() { return action('togglewindow'); ...
create = () -> tray = new Tray trayIcons["read"] tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
e66d5b24b30fc5c2f47b42983d5993cc4822b4d2
3,762
https://github.com/yakyak/yakyak/blob/e66d5b24b30fc5c2f47b42983d5993cc4822b4d2/src/ui/views/trayicon.coffee
25
29
yakyak/yakyak:src/ui/views/trayicon.coffee:3:completion
completion
create = () -> tray = new Tray trayIcons["read"]
tray.setToolTip i18n.__('title:YakYak - Hangouts Client') # Emitted when the tray icon is clicked tray.on 'click', -> action 'togglewindow'
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
e66d5b24b30fc5c2f47b42983d5993cc4822b4d2
3,762
https://github.com/yakyak/yakyak/blob/e66d5b24b30fc5c2f47b42983d5993cc4822b4d2/src/ui/views/trayicon.coffee
25
29
yakyak/yakyak:src/ui/views/trayicon.coffee:5:raw_corpus
raw_corpus
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle minimize to tray' click: -> action 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to...
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
1c0cd0e6e118e0a67b3fed3c89d641082e56a423
3,762
https://github.com/yakyak/yakyak/blob/1c0cd0e6e118e0a67b3fed3c89d641082e56a423/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle minimize to tray' click: -> action 'togglewindow' } { label: ...
var update; update = function(unreadCount, viewstate) { var contextMenu, templateContextMenu; // update menu templateContextMenu = compact([ { label: i18n.__('menu.view.tray.toggle_minimize:Toggle minimize to tray'), click: function() { return action('togglewindow'); } }, { ...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
1c0cd0e6e118e0a67b3fed3c89d641082e56a423
3,762
https://github.com/yakyak/yakyak/blob/1c0cd0e6e118e0a67b3fed3c89d641082e56a423/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var update; update = function(unreadCount, viewstate) { var contextMenu, templateContextMenu; // update menu templateContextMenu = compact([ { label: i18n.__('menu.view.tray.toggle_minimize:Toggle minimize to tray'), click: function() { ...
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle minimize to tray' click: -> action 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to...
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
1c0cd0e6e118e0a67b3fed3c89d641082e56a423
3,762
https://github.com/yakyak/yakyak/blob/1c0cd0e6e118e0a67b3fed3c89d641082e56a423/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:5:completion
completion
update = (unreadCount, viewstate) -> # update menu templateContextMenu = compact([ { label: i18n.__ 'menu.view.tray.toggle_minimize:Toggle minimize to tray' click: -> action 'togglewindow' } { label: i18n.__ "menu.view.tray.start_minimize:Start minimized to...
{ label: i18n.__ "menu.view.tray.close:Close to tray" type: "checkbox" checked: viewstate.closetotray click: -> action 'toggleclosetotray' } { label: i18n.__ 'menu.view.hide_dock:Hide Dock icon' type: 'checkbox' checked: view...
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
1c0cd0e6e118e0a67b3fed3c89d641082e56a423
3,762
https://github.com/yakyak/yakyak/blob/1c0cd0e6e118e0a67b3fed3c89d641082e56a423/src/ui/views/trayicon.coffee
35
84
yakyak/yakyak:src/ui/views/trayicon.coffee:6:raw_corpus
raw_corpus
if unreadCount > 0 tray.setImage trayIcons["unread"] else tray.setImage trayIcons["read"] catch e console.log 'missing icons', e
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
db27f28d22c3d69531952f06693dbefaf3685533
3,762
https://github.com/yakyak/yakyak/blob/db27f28d22c3d69531952f06693dbefaf3685533/src/ui/views/trayicon.coffee
85
90
yakyak/yakyak:src/ui/views/trayicon.coffee:6:completion
completion
if unreadCount > 0 tray.setImage trayIcons["unread"] else
tray.setImage trayIcons["read"] catch e console.log 'missing icons', e
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/trayicon.coffee
MIT
db27f28d22c3d69531952f06693dbefaf3685533
3,762
https://github.com/yakyak/yakyak/blob/db27f28d22c3d69531952f06693dbefaf3685533/src/ui/views/trayicon.coffee
85
90