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
nicolaskruchten/pivottable:pivot.fr.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 ) (jQuery) -...
totals: "Totaux" vs: "sur" by: "par" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.countUnique(frFmtInt) "Liste de valeurs uniques": tpl.listUnique(", ") "Somme":...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.fr.coffee
1
50
octoblu/meshblu:lib/resetToken.coffee:1:raw_corpus
raw_corpus
resetToken = (fromDevice, uuid, emitToClient, callback=(->), {securityImpl, getDevice, Device}={}) -> securityImpl ?= require './getSecurityImpl' getDevice ?= require './getDevice' Device ?= require './models/device' getDevice uuid, (error, gotDevice) -> return callback 'invalid device' if error? sec...
CoffeeScript
octoblu/meshblu
lib/resetToken.coffee
MIT
7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa
815
https://github.com/octoblu/meshblu/blob/7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa/lib/resetToken.coffee
1
18
octoblu/meshblu:lib/resetToken.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript resetToken = (fromDevice, uuid, emitToClient, callback=(->), {securityImpl, getDevice, Device}={}) -> securityImpl ?= require './getSecurityImpl' getDevice ?= require './getDevice' Device ?= require './models/device' getDevice uuid, (error, gotDevice) -...
var resetToken; resetToken = function(fromDevice, uuid, emitToClient, callback = (function() {}), {securityImpl, getDevice, Device} = {}) { if (securityImpl == null) { securityImpl = require('./getSecurityImpl'); } if (getDevice == null) { getDevice = require('./getDevice'); } if (Device == null) { ...
CoffeeScript
JavaScript
octoblu/meshblu
lib/resetToken.coffee
MIT
7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa
815
https://github.com/octoblu/meshblu/blob/7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa/lib/resetToken.coffee
1
18
octoblu/meshblu:lib/resetToken.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var resetToken; resetToken = function(fromDevice, uuid, emitToClient, callback = (function() {}), {securityImpl, getDevice, Device} = {}) { if (securityImpl == null) { securityImpl = require('./getSecurityImpl'); } if (getDevice == null) { getDevice ...
resetToken = (fromDevice, uuid, emitToClient, callback=(->), {securityImpl, getDevice, Device}={}) -> securityImpl ?= require './getSecurityImpl' getDevice ?= require './getDevice' Device ?= require './models/device' getDevice uuid, (error, gotDevice) -> return callback 'invalid device' if error? sec...
JavaScript
CoffeeScript
octoblu/meshblu
lib/resetToken.coffee
MIT
7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa
815
https://github.com/octoblu/meshblu/blob/7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa/lib/resetToken.coffee
1
18
octoblu/meshblu:lib/resetToken.coffee:1:completion
completion
resetToken = (fromDevice, uuid, emitToClient, callback=(->), {securityImpl, getDevice, Device}={}) -> securityImpl ?= require './getSecurityImpl' getDevice ?= require './getDevice' Device ?= require './models/device' getDevice uuid, (error, gotDevice) -> return callback 'invalid device' if error? sec...
return callback "unauthorized" unless permission device = new Device uuid: uuid device.resetToken (error, token) => return callback "error updating device" if error? emitToClient 'notReady', fromDevice, {} return callback null, token module.exports = resetToken
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/resetToken.coffee
MIT
7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa
815
https://github.com/octoblu/meshblu/blob/7de2b1bc4b5063cdca0ca0b68925bf49c8bc34fa/lib/resetToken.coffee
1
18
octoblu/meshblu:lib/resetToken.coffee:1:raw_corpus
raw_corpus
crypto = require 'crypto' generateToken = -> crypto.createHash('sha1').update((new Date()).valueOf().toString() + Math.random().toString()).digest('hex'); resetToken = (fromDevice, uuid, emitToClient, callback=(->), securityImpl, getDevice, oldUpdateDevice) -> securityImpl ?= require './getSecurityImpl' getDev...
CoffeeScript
octoblu/meshblu
lib/resetToken.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/resetToken.coffee
1
22
octoblu/meshblu:lib/resetToken.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript crypto = require 'crypto' generateToken = -> crypto.createHash('sha1').update((new Date()).valueOf().toString() + Math.random().toString()).digest('hex'); resetToken = (fromDevice, uuid, emitToClient, callback=(->), securityImpl, getDevice, oldUpdateDevice) ...
var crypto, generateToken, resetToken; crypto = require('crypto'); generateToken = function() { return crypto.createHash('sha1').update((new Date()).valueOf().toString() + Math.random().toString()).digest('hex'); }; resetToken = function(fromDevice, uuid, emitToClient, callback = (function() {}), securityImpl, get...
CoffeeScript
JavaScript
octoblu/meshblu
lib/resetToken.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/resetToken.coffee
1
22
octoblu/meshblu:lib/resetToken.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var crypto, generateToken, resetToken; crypto = require('crypto'); generateToken = function() { return crypto.createHash('sha1').update((new Date()).valueOf().toString() + Math.random().toString()).digest('hex'); }; resetToken = function(fromDevice, uuid, emit...
crypto = require 'crypto' generateToken = -> crypto.createHash('sha1').update((new Date()).valueOf().toString() + Math.random().toString()).digest('hex'); resetToken = (fromDevice, uuid, emitToClient, callback=(->), securityImpl, getDevice, oldUpdateDevice) -> securityImpl ?= require './getSecurityImpl' getDev...
JavaScript
CoffeeScript
octoblu/meshblu
lib/resetToken.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/resetToken.coffee
1
22
octoblu/meshblu:lib/resetToken.coffee:1:completion
completion
crypto = require 'crypto' generateToken = -> crypto.createHash('sha1').update((new Date()).valueOf().toString() + Math.random().toString()).digest('hex'); resetToken = (fromDevice, uuid, emitToClient, callback=(->), securityImpl, getDevice, oldUpdateDevice) -> securityImpl ?= require './getSecurityImpl' getDev...
securityImpl.canConfigure fromDevice, device, (error, permission) => return callback "unauthorized" unless permission token = generateToken() oldUpdateDevice device.uuid, token: token, (error, device) -> return callback "error updating device" if error? emitToClient 'notReady', device...
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/resetToken.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/resetToken.coffee
1
22
soyjavi/QuoJS:src/quo2.coffee:1:raw_corpus
raw_corpus
### QuoJS 2.0 (c) 2011, 2012 Javi Jiménez Villar (@soyjavi) http://quojs.tapquo.com ### Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) -> unless selector ...
CoffeeScript
soyjavi/QuoJS
src/quo2.coffee
MIT
64fce0651ddcb2b02acf5f53f9611109591e9d46
2,055
https://github.com/soyjavi/QuoJS/blob/64fce0651ddcb2b02acf5f53f9611109591e9d46/src/quo2.coffee
1
35
soyjavi/QuoJS:src/quo2.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### QuoJS 2.0 (c) 2011, 2012 Javi Jiménez Villar (@soyjavi) http://quojs.tapquo.com ### Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' d...
/* QuoJS 2.0 (c) 2011, 2012 Javi Jiménez Villar (@soyjavi) http://quojs.tapquo.com */ var Quo; Quo = (function() { var $$, EMPTY_ARRAY, Q; EMPTY_ARRAY = []; Q = function(dom, selector) { dom = dom || EMPTY_ARRAY; dom.__proto__ = Q.prototype; dom.selector = selector || ''; return dom; }; ...
CoffeeScript
JavaScript
soyjavi/QuoJS
src/quo2.coffee
MIT
64fce0651ddcb2b02acf5f53f9611109591e9d46
2,055
https://github.com/soyjavi/QuoJS/blob/64fce0651ddcb2b02acf5f53f9611109591e9d46/src/quo2.coffee
1
35
soyjavi/QuoJS:src/quo2.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* QuoJS 2.0 (c) 2011, 2012 Javi Jiménez Villar (@soyjavi) http://quojs.tapquo.com */ var Quo; Quo = (function() { var $$, EMPTY_ARRAY, Q; EMPTY_ARRAY = []; Q = function(dom, selector) { dom = dom || EMPTY_ARRAY; dom.__proto__ = Q.prototype; ...
### QuoJS 2.0 (c) 2011, 2012 Javi Jiménez Villar (@soyjavi) http://quojs.tapquo.com ### Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) -> unless selector ...
JavaScript
CoffeeScript
soyjavi/QuoJS
src/quo2.coffee
MIT
64fce0651ddcb2b02acf5f53f9611109591e9d46
2,055
https://github.com/soyjavi/QuoJS/blob/64fce0651ddcb2b02acf5f53f9611109591e9d46/src/quo2.coffee
1
35
soyjavi/QuoJS:src/quo2.coffee:1:completion
completion
### QuoJS 2.0 (c) 2011, 2012 Javi Jiménez Villar (@soyjavi) http://quojs.tapquo.com ### Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) ->
unless selector Q() else domain_selector = $$.getDomainSelector(selector) Q(domain_selector, selector) $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> for key of source target[key] = source[key] target ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
src/quo2.coffee
MIT
64fce0651ddcb2b02acf5f53f9611109591e9d46
2,055
https://github.com/soyjavi/QuoJS/blob/64fce0651ddcb2b02acf5f53f9611109591e9d46/src/quo2.coffee
1
35
soyjavi/QuoJS:src/quo2.coffee:1:raw_corpus
raw_corpus
Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) -> unless selector Q() else domain_selector = $$.getDomainSelector(selector) ...
CoffeeScript
soyjavi/QuoJS
src/quo2.coffee
MIT
53d8c94572cde233571246a1cc672fbfc89750ac
2,055
https://github.com/soyjavi/QuoJS/blob/53d8c94572cde233571246a1cc672fbfc89750ac/src/quo2.coffee
1
28
soyjavi/QuoJS:src/quo2.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) -> unless selector Q() else doma...
var Quo; Quo = (function() { var $$, EMPTY_ARRAY, Q; EMPTY_ARRAY = []; Q = function(dom, selector) { dom = dom || EMPTY_ARRAY; dom.__proto__ = Q.prototype; dom.selector = selector || ''; return dom; }; $$ = function(selector) { var domain_selector; if (!selector) { return Q(); ...
CoffeeScript
JavaScript
soyjavi/QuoJS
src/quo2.coffee
MIT
53d8c94572cde233571246a1cc672fbfc89750ac
2,055
https://github.com/soyjavi/QuoJS/blob/53d8c94572cde233571246a1cc672fbfc89750ac/src/quo2.coffee
1
28
soyjavi/QuoJS:src/quo2.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Quo; Quo = (function() { var $$, EMPTY_ARRAY, Q; EMPTY_ARRAY = []; Q = function(dom, selector) { dom = dom || EMPTY_ARRAY; dom.__proto__ = Q.prototype; dom.selector = selector || ''; return dom; }; $$ = function(selector) { var do...
Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) -> unless selector Q() else domain_selector = $$.getDomainSelector(selector) ...
JavaScript
CoffeeScript
soyjavi/QuoJS
src/quo2.coffee
MIT
53d8c94572cde233571246a1cc672fbfc89750ac
2,055
https://github.com/soyjavi/QuoJS/blob/53d8c94572cde233571246a1cc672fbfc89750ac/src/quo2.coffee
1
28
soyjavi/QuoJS:src/quo2.coffee:1:completion
completion
Quo = (-> EMPTY_ARRAY = [] Q = (dom, selector) -> dom = dom or EMPTY_ARRAY dom.__proto__ = Q:: dom.selector = selector or '' dom $$ = (selector) -> unless selector Q() else domain_selector = $$.getDomainSelector(selector)
Q(domain_selector, selector) $$.extend = (target) -> Array::slice.call(arguments, 1).forEach (source) -> for key of source target[key] = source[key] target Q:: = $$.fn = {} $$ )() window.Quo = Quo '$$' of window or (window.$$ = Quo)
CoffeeScript
CoffeeScript
soyjavi/QuoJS
src/quo2.coffee
MIT
53d8c94572cde233571246a1cc672fbfc89750ac
2,055
https://github.com/soyjavi/QuoJS/blob/53d8c94572cde233571246a1cc672fbfc89750ac/src/quo2.coffee
1
28
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
class Config constructor: ($routeProvider) -> $routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Config constructor: ($routeProvider) -> $routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config] ```
var Config; Config = class Config { constructor($routeProvider) { $routeProvider.when('/github/:id', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Config]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Config; Config = class Config { constructor($routeProvider) { $routeProvider.when('/github/:id', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Config...
class Config constructor: ($routeProvider) -> $routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
class Config constructor: ($routeProvider) -> $routeProvider .when '/github/:id',
controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
class Config constructor: (@$routeProvider) -> @$routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Config constructor: (@$routeProvider) -> @$routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config] ```
var Config; Config = class Config { constructor($routeProvider) { this.$routeProvider = $routeProvider; this.$routeProvider.when('/github/:id', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Config]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Config; Config = class Config { constructor($routeProvider) { this.$routeProvider = $routeProvider; this.$routeProvider.when('/github/:id', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular...
class Config constructor: (@$routeProvider) -> @$routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
class Config constructor: (@$routeProvider) -> @$routeProvider .when '/github/:id',
controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Config]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
80aa978a56ae78b5eae38b5ba3211240f5379748
672
https://github.com/CaryLandholt/AngularFun/blob/80aa978a56ae78b5eae38b5ba3211240f5379748/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
90fccbd6f4dfb660a4663fdb70d80c446debde32
672
https://github.com/CaryLandholt/AngularFun/blob/90fccbd6f4dfb660a4663fdb70d80c446debde32/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes] ```
var Routes; Routes = class Routes { constructor($routeProvider) { $routeProvider.when('/github/:id', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Routes]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
90fccbd6f4dfb660a4663fdb70d80c446debde32
672
https://github.com/CaryLandholt/AngularFun/blob/90fccbd6f4dfb660a4663fdb70d80c446debde32/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Routes; Routes = class Routes { constructor($routeProvider) { $routeProvider.when('/github/:id', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Routes...
class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:id', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
90fccbd6f4dfb660a4663fdb70d80c446debde32
672
https://github.com/CaryLandholt/AngularFun/blob/90fccbd6f4dfb660a4663fdb70d80c446debde32/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:id',
controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
90fccbd6f4dfb660a4663fdb70d80c446debde32
672
https://github.com/CaryLandholt/AngularFun/blob/90fccbd6f4dfb660a4663fdb70d80c446debde32/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
390bfa1d9e5320429855980a8889dad64305245b
672
https://github.com/CaryLandholt/AngularFun/blob/390bfa1d9e5320429855980a8889dad64305245b/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes] ```
var Routes; Routes = class Routes { constructor($routeProvider) { $routeProvider.when('/github/', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Routes]);
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
390bfa1d9e5320429855980a8889dad64305245b
672
https://github.com/CaryLandholt/AngularFun/blob/390bfa1d9e5320429855980a8889dad64305245b/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Routes; Routes = class Routes { constructor($routeProvider) { $routeProvider.when('/github/', { controller: 'gitHubController' }).otherwise({ redirectTo: '/github' }); } }; angular.module('app').config(['$routeProvider', Routes]);...
class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/', controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
390bfa1d9e5320429855980a8889dad64305245b
672
https://github.com/CaryLandholt/AngularFun/blob/390bfa1d9e5320429855980a8889dad64305245b/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/',
controller: 'gitHubController' .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
390bfa1d9e5320429855980a8889dad64305245b
672
https://github.com/CaryLandholt/AngularFun/blob/390bfa1d9e5320429855980a8889dad64305245b/src/scripts/routes.coffee
1
9
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'GitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'People' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnS...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
cb59040b164996bca974f6142cab43e4482afc31
672
https://github.com/CaryLandholt/AngularFun/blob/cb59040b164996bca974f6142cab43e4482afc31/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'GitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'People' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:se...
var GitHubResolver, PersonDetailsResolver, Routes; GitHubResolver = class GitHubResolver { constructor($log, $rootScope) { $rootScope.tab = 'GitHub'; } }; PersonDetailsResolver = class PersonDetailsResolver { constructor($log, $rootScope) { $rootScope.tab = 'People'; } }; Routes = class Routes { ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
cb59040b164996bca974f6142cab43e4482afc31
672
https://github.com/CaryLandholt/AngularFun/blob/cb59040b164996bca974f6142cab43e4482afc31/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitHubResolver, PersonDetailsResolver, Routes; GitHubResolver = class GitHubResolver { constructor($log, $rootScope) { $rootScope.tab = 'GitHub'; } }; PersonDetailsResolver = class PersonDetailsResolver { constructor($log, $rootScope) { $rootSc...
class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'GitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'People' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnS...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
cb59040b164996bca974f6142cab43e4482afc31
672
https://github.com/CaryLandholt/AngularFun/blob/cb59040b164996bca974f6142cab43e4482afc31/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'GitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.tab = 'People' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm',
controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$log', '$rootScope', GitHubResolver] .when '/people/:id', controller: 'personDetailsController' reloadOnSearch: true resolve: changeTab: ['$log', '$rootScope', PersonDetailsResolver] .otherwise redirectTo: '/github' ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
cb59040b164996bca974f6142cab43e4482afc31
672
https://github.com/CaryLandholt/AngularFun/blob/cb59040b164996bca974f6142cab43e4482afc31/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: '...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $rout...
var GitHubResolver, PersonDetailsResolver, Routes; GitHubResolver = class GitHubResolver { constructor($log, $rootScope) { $rootScope.$broadcast('changeTab#gitHub'); } }; PersonDetailsResolver = class PersonDetailsResolver { constructor($log, $rootScope) { $rootScope.$broadcast('changeTab#people'); }...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var GitHubResolver, PersonDetailsResolver, Routes; GitHubResolver = class GitHubResolver { constructor($log, $rootScope) { $rootScope.$broadcast('changeTab#gitHub'); } }; PersonDetailsResolver = class PersonDetailsResolver { constructor($log, $rootScop...
class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: '...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm',
controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$log', '$rootScope', GitHubResolver] .when '/people/:id', controller: 'personDetailsController' reloadOnSearch: true resolve: changeTab: ['$log', '$rootScope', PersonDetailsResolver] .otherwise redirectTo: '/github' ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/routes.coffee
1
25
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
do (angular) -> 'use strict' class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $routeProvider .whe...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/routes.coffee
1
28
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do (angular) -> 'use strict' class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes c...
(function(angular) { 'use strict'; var GitHubResolver, PersonDetailsResolver, Routes; GitHubResolver = class GitHubResolver { constructor($log, $rootScope) { $rootScope.$broadcast('changeTab#gitHub'); } }; PersonDetailsResolver = class PersonDetailsResolver { constructor($log, $rootScope) {...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/routes.coffee
1
28
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function(angular) { 'use strict'; var GitHubResolver, PersonDetailsResolver, Routes; GitHubResolver = class GitHubResolver { constructor($log, $rootScope) { $rootScope.$broadcast('changeTab#gitHub'); } }; PersonDetailsResolver = class Pers...
do (angular) -> 'use strict' class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $routeProvider .whe...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/routes.coffee
1
28
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
do (angular) -> 'use strict' class GitHubResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' class PersonDetailsResolver constructor: ($log, $rootScope) -> $rootScope.$broadcast 'changeTab#people' class Routes constructor: ($routeProvider) -> $routeProvider
.when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$log', '$rootScope', GitHubResolver] .when '/people/:id', controller: 'personDetailsController' reloadOnSearch: true resolve: changeTab: ['$log', '$rootScope', PersonDetailsResolve...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
c8848363eb83958fd323cfdf2442c0831d53d985
672
https://github.com/CaryLandholt/AngularFun/blob/c8848363eb83958fd323cfdf2442c0831d53d985/src/scripts/routes.coffee
1
28
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
do (angular) -> 'use strict' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/peopl...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/routes.coffee
1
24
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do (angular) -> 'use strict' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootSc...
(function(angular) { 'use strict'; var Routes; Routes = class Routes { constructor($routeProvider) { $routeProvider.when('/github/:searchTerm', { controller: 'gitHubController', reloadOnSearch: true, resolve: { changeTab: [ '$rootScope', function...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/routes.coffee
1
24
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function(angular) { 'use strict'; var Routes; Routes = class Routes { constructor($routeProvider) { $routeProvider.when('/github/:searchTerm', { controller: 'gitHubController', reloadOnSearch: true, resolve: { chan...
do (angular) -> 'use strict' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/peopl...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/routes.coffee
1
24
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
do (angular) -> 'use strict' class Routes constructor: ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub'
] .when '/people/:id', controller: 'personDetailsController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#people' ] .otherwise redirectTo: '/github' angular.module('app').config ['$routeProvider', Routes]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
84cd4633279ad391623504698a20ed4b5560dc77
672
https://github.com/CaryLandholt/AngularFun/blob/84cd4633279ad391623504698a20ed4b5560dc77/src/scripts/routes.coffee
1
24
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id', controller: 'personD...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc
672
https://github.com/CaryLandholt/AngularFun/blob/dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc/src/scripts/routes.coffee
1
19
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#...
angular.module('app').config([ '$routeProvider', function($routeProvider) { return $routeProvider.when('/github/:searchTerm', { controller: 'gitHubController', reloadOnSearch: true, resolve: { changeTab: [ '$rootScope', function($rootScope) { return $r...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc
672
https://github.com/CaryLandholt/AngularFun/blob/dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc/src/scripts/routes.coffee
1
19
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').config([ '$routeProvider', function($routeProvider) { return $routeProvider.when('/github/:searchTerm', { controller: 'gitHubController', reloadOnSearch: true, resolve: { changeTab: [ '$rootScope',...
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id', controller: 'personD...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc
672
https://github.com/CaryLandholt/AngularFun/blob/dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc/src/scripts/routes.coffee
1
19
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ]
.when '/people/:id', controller: 'personDetailsController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#people' ] .otherwise redirectTo: '/github' ]
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc
672
https://github.com/CaryLandholt/AngularFun/blob/dcbe4ff9e30f1cc3a6d7e4dde37180b7202077cc/src/scripts/routes.coffee
1
19
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id', controller: 'personD...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
a5d01ee17468b0e837e8957705e9ffa6aa5a8a52
672
https://github.com/CaryLandholt/AngularFun/blob/a5d01ee17468b0e837e8957705e9ffa6aa5a8a52/src/scripts/routes.coffee
1
26
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#...
angular.module('app').config([ '$routeProvider', function($routeProvider) { return $routeProvider.when('/github/:searchTerm', { controller: 'gitHubController', reloadOnSearch: true, resolve: { changeTab: [ '$rootScope', function($rootScope) { return $r...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
a5d01ee17468b0e837e8957705e9ffa6aa5a8a52
672
https://github.com/CaryLandholt/AngularFun/blob/a5d01ee17468b0e837e8957705e9ffa6aa5a8a52/src/scripts/routes.coffee
1
26
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript angular.module('app').config([ '$routeProvider', function($routeProvider) { return $routeProvider.when('/github/:searchTerm', { controller: 'gitHubController', reloadOnSearch: true, resolve: { changeTab: [ '$rootScope',...
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id', controller: 'personD...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
a5d01ee17468b0e837e8957705e9ffa6aa5a8a52
672
https://github.com/CaryLandholt/AngularFun/blob/a5d01ee17468b0e837e8957705e9ffa6aa5a8a52/src/scripts/routes.coffee
1
26
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm', controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id', controller: 'personD...
changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#people' ] .when '/twitter/:searchTerm', controller: 'twitterController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#twitter' ] .otherwise redirectTo: '/githu...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
a5d01ee17468b0e837e8957705e9ffa6aa5a8a52
672
https://github.com/CaryLandholt/AngularFun/blob/a5d01ee17468b0e837e8957705e9ffa6aa5a8a52/src/scripts/routes.coffee
1
26
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:raw_corpus
raw_corpus
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm' controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id' controller: 'personDet...
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
94361b56b578119b372a04858dcd3ab92bb480eb
672
https://github.com/CaryLandholt/AngularFun/blob/94361b56b578119b372a04858dcd3ab92bb480eb/src/scripts/routes.coffee
1
26
CaryLandholt/AngularFun:src/scripts/routes.coffee:1:completion
completion
angular.module('app').config ['$routeProvider', ($routeProvider) -> $routeProvider .when '/github/:searchTerm' controller: 'gitHubController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#gitHub' ] .when '/people/:id' controller: 'personDet...
changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#people' ] .when '/twitter/:searchTerm' controller: 'twitterController' reloadOnSearch: true resolve: changeTab: ['$rootScope', ($rootScope) -> $rootScope.$broadcast 'changeTab#twitter' ] .otherwise redirectTo: '/github...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
src/scripts/routes.coffee
MIT
94361b56b578119b372a04858dcd3ab92bb480eb
672
https://github.com/CaryLandholt/AngularFun/blob/94361b56b578119b372a04858dcd3ab92bb480eb/src/scripts/routes.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/observers/tag.coffee:1:raw_corpus
raw_corpus
limbo = require 'limbo' Promise = require 'bluebird' logger = require 'graceful-logger' {socket} = require '../components' { TagModel MessageModel SearchMessageModel } = limbo.use 'talk' TagModel.schema.pre 'save', (next) -> @_wasNew = @isNew next() TagModel.schema.post 'save', (tag) -> if tag._wasNew ...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/tag.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/tag.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript limbo = require 'limbo' Promise = require 'bluebird' logger = require 'graceful-logger' {socket} = require '../components' { TagModel MessageModel SearchMessageModel } = limbo.use 'talk' TagModel.schema.pre 'save', (next) -> @_wasNew = @isNew next() ...
var MessageModel, Promise, SearchMessageModel, TagModel, limbo, logger, socket; limbo = require('limbo'); Promise = require('bluebird'); logger = require('graceful-logger'); ({socket} = require('../components')); ({TagModel, MessageModel, SearchMessageModel} = limbo.use('talk')); TagModel.schema.pre('save', funct...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/observers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/tag.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/tag.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MessageModel, Promise, SearchMessageModel, TagModel, limbo, logger, socket; limbo = require('limbo'); Promise = require('bluebird'); logger = require('graceful-logger'); ({socket} = require('../components')); ({TagModel, MessageModel, SearchMessageModel} =...
limbo = require 'limbo' Promise = require 'bluebird' logger = require 'graceful-logger' {socket} = require '../components' { TagModel MessageModel SearchMessageModel } = limbo.use 'talk' TagModel.schema.pre 'save', (next) -> @_wasNew = @isNew next() TagModel.schema.post 'save', (tag) -> if tag._wasNew ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/tag.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/tag.coffee:1:completion
completion
limbo = require 'limbo' Promise = require 'bluebird' logger = require 'graceful-logger' {socket} = require '../components' { TagModel MessageModel SearchMessageModel } = limbo.use 'talk' TagModel.schema.pre 'save', (next) -> @_wasNew = @isNew next() TagModel.schema.post 'save', (tag) -> if tag._wasNew ...
conditions = tags: tag._id team: tag._teamId $updateSearch = MessageModel.find conditions .populate 'tags' .execAsync() .map (message) -> message.index() .catch (err) -> logger.err err.stack socket.broadcast "team:#{tag._teamId}", "tag:update", tag, tag.socketId TagModel.schema.post 'remove', (ta...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/tag.coffee
1
50
jianliaoim/talk-os:talk-api2x/server/observers/tag.coffee:2:raw_corpus
raw_corpus
message.tags = message.tags?.map (tag) -> tag?._id message.index() $removeMsgTags = $messages.then -> update = $pull: tags: tag._id options = multi: true MessageModel.updateAsync conditions, update, options Promise.all [$updateSearch, $removeMsgTags] .catch (err) -> logger.err err.stack # Bro...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/tag.coffee
51
63
jianliaoim/talk-os:talk-api2x/server/observers/tag.coffee:2:completion
completion
message.tags = message.tags?.map (tag) -> tag?._id message.index() $removeMsgTags = $messages.then -> update = $pull: tags: tag._id options = multi: true
MessageModel.updateAsync conditions, update, options Promise.all [$updateSearch, $removeMsgTags] .catch (err) -> logger.err err.stack # Broadcast messages socket.broadcast "team:#{tag._teamId}", "tag:remove", tag, tag.socketId
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/observers/tag.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/observers/tag.coffee
51
63
jianliaoim/talk-os:talk-web/test/spec/module/permission.spec.coffee:1:raw_corpus
raw_corpus
describe 'module: permission', -> beforeEach -> @permission = require 'module/permission' describe 'function: hasPermission', -> describe 'member', -> it 'should have access to member', -> expect(@permission.hasPermission('member', @permission.member)).toBe true it 'should not have ac...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/module/permission.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/module/permission.spec.coffee
1
35
jianliaoim/talk-os:talk-web/test/spec/module/permission.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'module: permission', -> beforeEach -> @permission = require 'module/permission' describe 'function: hasPermission', -> describe 'member', -> it 'should have access to member', -> expect(@permission.hasPermission('member', @pe...
describe('module: permission', function() { beforeEach(function() { return this.permission = require('module/permission'); }); return describe('function: hasPermission', function() { describe('member', function() { it('should have access to member', function() { return expect(this.permission...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/module/permission.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/module/permission.spec.coffee
1
35
jianliaoim/talk-os:talk-web/test/spec/module/permission.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('module: permission', function() { beforeEach(function() { return this.permission = require('module/permission'); }); return describe('function: hasPermission', function() { describe('member', function() { it('should have access to memb...
describe 'module: permission', -> beforeEach -> @permission = require 'module/permission' describe 'function: hasPermission', -> describe 'member', -> it 'should have access to member', -> expect(@permission.hasPermission('member', @permission.member)).toBe true it 'should not have ac...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/module/permission.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/module/permission.spec.coffee
1
35
jianliaoim/talk-os:talk-web/test/spec/module/permission.spec.coffee:1:completion
completion
describe 'module: permission', -> beforeEach -> @permission = require 'module/permission' describe 'function: hasPermission', -> describe 'member', -> it 'should have access to member', -> expect(@permission.hasPermission('member', @permission.member)).toBe true it 'should not have ac...
it 'should have access to member', -> expect(@permission.hasPermission('admin', @permission.member)).toBe true it 'should have access to admin', -> expect(@permission.hasPermission('admin', @permission.admin)).toBe true it 'should have access to owner', -> expect(@permission.hasPer...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/module/permission.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/module/permission.spec.coffee
1
35
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:1:raw_corpus
raw_corpus
module.exports = MessageSchemaConstructor = -> _verifyAttachmentColor = (color) -> if color in ['green', 'red', 'yellow'] then color else undefined attachmentSetter = (attachments) -> throw new Err("INVALID_OBJECT", 'attachment') unless toString.call(attachments) is '[object Array]' message = this del...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
8
57
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = MessageSchemaConstructor = -> _verifyAttachmentColor = (color) -> if color in ['green', 'red', 'yellow'] then color else undefined attachmentSetter = (attachments) -> throw new Err("INVALID_OBJECT", 'attachment') unless toString.call(at...
var MessageSchemaConstructor; module.exports = MessageSchemaConstructor = function() { var MessageSchema, _verifyAttachmentColor, attachmentGetter, attachmentSetter; _verifyAttachmentColor = function(color) { if (color === 'green' || color === 'red' || color === 'yellow') { return color; } else { ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
8
57
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MessageSchemaConstructor; module.exports = MessageSchemaConstructor = function() { var MessageSchema, _verifyAttachmentColor, attachmentGetter, attachmentSetter; _verifyAttachmentColor = function(color) { if (color === 'green' || color === 'red' || col...
module.exports = MessageSchemaConstructor = -> _verifyAttachmentColor = (color) -> if color in ['green', 'red', 'yellow'] then color else undefined attachmentSetter = (attachments) -> throw new Err("INVALID_OBJECT", 'attachment') unless toString.call(attachments) is '[object Array]' message = this del...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
8
57
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:1:completion
completion
module.exports = MessageSchemaConstructor = -> _verifyAttachmentColor = (color) -> if color in ['green', 'red', 'yellow'] then color else undefined attachmentSetter = (attachments) -> throw new Err("INVALID_OBJECT", 'attachment') unless toString.call(attachments) is '[object Array]' message = this del...
unless @_attachments message = this @_attachments = attachments.map (attachment) -> element = _.clone attachment {category, data} = element try modelName = "#{category}Attachment" Model = message.model modelName catch err return attachment unless M...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
8
57
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:2:raw_corpus
raw_corpus
isSystem: type: Boolean, default: false icon: type: String, default: 'normal' # Icon of system message integration: type: Schema.Types.ObjectId, ref: 'Integration' displayType: type: String, default: 'text' createdAt: type: Date, default: Date.now updatedAt: type: Date, default: Date.now urls: ...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
58
107
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:2:completion
completion
isSystem: type: Boolean, default: false icon: type: String, default: 'normal' # Icon of system message integration: type: Schema.Types.ObjectId, ref: 'Integration' displayType: type: String, default: 'text' createdAt: type: Date, default: Date.now updatedAt: type: Date, default: Date.now urls: ...
.get -> @to?._id or @to .set (_id) -> @to = _id MessageSchema.virtual '_teamId' .get -> @team?._id or @team .set (_id) -> @team = _id MessageSchema.virtual '_storyId' .get -> @story?._id or @story .set (_id) -> @story = _id MessageSchema.virtual '_integrationId' .get -> @integration?._i...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
58
107
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:3:raw_corpus
raw_corpus
return 'story' if @_storyId # ================================= Methods ================================= MessageSchema.methods.getAlert = -> if @body text = lexer.stringify @body else if @attachments?.length attachment = @attachments[0] return unless attachment?.category {category, d...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
108
133
jianliaoim/talk-os:talk-api2x/server/schemas/constructors/message.coffee:3:completion
completion
return 'story' if @_storyId # ================================= Methods ================================= MessageSchema.methods.getAlert = -> if @body text = lexer.stringify @body else if @attachments?.length attachment = @attachments[0] return unless attachment?.category {category, d...
when 'message' text = data.message when 'quote' text = util.stripHtml(data.title or data.text)[0...100] when 'rtf', 'snippet' text = util.stripHtml(data.text)[0...100] when 'speech' text = "{{__info-new-speech}}" when 'video' text = "{{__...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/constructors/message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/constructors/message.coffee
108
133
twilson63/express-coffee:src/controllers/ping.coffee:1:raw_corpus
raw_corpus
# Sends `{"hello":["world"]}` in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> # Create ping-pong response from received data data = pongQuery: req.query pongBody: req.body pongParams: req.params ...
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Sends `{"hello":["world"]}` in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> # Create ping-pong response from received data data = pongQuery: req....
// Sends `{"hello":["world"]}` in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; // Create ping-pong response from received data data = { pongQue...
CoffeeScript
JavaScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Sends `{"hello":["world"]}` in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; // Create ping-...
# Sends `{"hello":["world"]}` in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> # Create ping-pong response from received data data = pongQuery: req.query pongBody: req.body pongParams: req.params ...
JavaScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:completion
completion
# Sends `{"hello":["world"]}` in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> # Create ping-pong response from received data data =
pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: req.cookies id: req.params.id controller: req.params.controller method: req.params.method # Send response object as JSON res.send data
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:raw_corpus
raw_corpus
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data = pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: req.cookies id: req.params.id ...
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/src/controllers/ping.coffee
1
16
twilson63/express-coffee:src/controllers/ping.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data = pongQuery: req.query pongBody: req.body pongParams: req.param...
// Just sends hello world in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; data = { pongQuery: req.query, pongBody: req.body, pongParams: ...
CoffeeScript
JavaScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/src/controllers/ping.coffee
1
16
twilson63/express-coffee:src/controllers/ping.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Just sends hello world in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; data = { pongQue...
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data = pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: req.cookies id: req.params.id ...
JavaScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/src/controllers/ping.coffee
1
16
twilson63/express-coffee:src/controllers/ping.coffee:1:completion
completion
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data =
pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: req.cookies id: req.params.id controller: req.params.controller method: req.params.method res.send data
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
3da2827dff738c8e9b45eb8c1491a97096209eba
622
https://github.com/twilson63/express-coffee/blob/3da2827dff738c8e9b45eb8c1491a97096209eba/src/controllers/ping.coffee
1
16
twilson63/express-coffee:src/controllers/ping.coffee:1:raw_corpus
raw_corpus
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> require('treeify').puts req.body data = pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: re...
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> require('treeify').puts req.body data = pongQuery: req.query pongBody...
// Just sends hello world in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; require('treeify').puts(req.body); data = { pongQuery: req.query, ...
CoffeeScript
JavaScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Just sends hello world in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; require('treeify').p...
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> require('treeify').puts req.body data = pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: re...
JavaScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:completion
completion
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> require('treeify').puts req.body
data = pongQuery: req.query pongBody: req.body pongParams: req.params pongCookies: req.cookies id: req.params.id controller: req.params.controller method: req.params.method res.send data
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
80f4a43f16bbcd1bec4bb24533af53a8e7470c3a
622
https://github.com/twilson63/express-coffee/blob/80f4a43f16bbcd1bec4bb24533af53a8e7470c3a/src/controllers/ping.coffee
1
18
twilson63/express-coffee:src/controllers/ping.coffee:1:raw_corpus
raw_corpus
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data = query: req.query body: req.body params: req.params route: req.route cookies: req.cookies id: req.params.id...
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
1f7b6ee213f182aeead268266e6df5a5c8a18bf4
622
https://github.com/twilson63/express-coffee/blob/1f7b6ee213f182aeead268266e6df5a5c8a18bf4/src/controllers/ping.coffee
1
17
twilson63/express-coffee:src/controllers/ping.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data = query: req.query body: req.body params: req.params route:...
// Just sends hello world in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; data = { query: req.query, body: req.body, params: req.params, ...
CoffeeScript
JavaScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
1f7b6ee213f182aeead268266e6df5a5c8a18bf4
622
https://github.com/twilson63/express-coffee/blob/1f7b6ee213f182aeead268266e6df5a5c8a18bf4/src/controllers/ping.coffee
1
17
twilson63/express-coffee:src/controllers/ping.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Just sends hello world in JSON exports.index = function(req, res) { var data; data = { "hello": ["world"] }; return res.send(data); }; // Sends anything from request back as JSON exports.pong = function(req, res) { var data; data = { query: ...
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data = query: req.query body: req.body params: req.params route: req.route cookies: req.cookies id: req.params.id...
JavaScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
1f7b6ee213f182aeead268266e6df5a5c8a18bf4
622
https://github.com/twilson63/express-coffee/blob/1f7b6ee213f182aeead268266e6df5a5c8a18bf4/src/controllers/ping.coffee
1
17
twilson63/express-coffee:src/controllers/ping.coffee:1:completion
completion
# Just sends hello world in JSON exports.index = (req, res) -> data = {"hello":["world"]} res.send data # Sends anything from request back as JSON exports.pong = (req, res) -> data =
query: req.query body: req.body params: req.params route: req.route cookies: req.cookies id: req.params.id controller: req.params.controller method: req.params.method res.send data
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/controllers/ping.coffee
MIT
1f7b6ee213f182aeead268266e6df5a5c8a18bf4
622
https://github.com/twilson63/express-coffee/blob/1f7b6ee213f182aeead268266e6df5a5c8a18bf4/src/controllers/ping.coffee
1
17
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 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/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 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-2018 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/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 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-2018 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/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee:1:completion
completion
### # Copyright (c) 2013-2018 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 ...
model: '=' definition: '=' factory: '&' headingfn: '&' templateUrl: '/partials/editor/inlineArray.html' transclude: true controller: ($scope) -> $scope.removeItem = (index) -> $scope.model.splice(index, 1) $scope.add...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.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/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
df26fc48ea0296697e2755b7a1d9ce5cf50a4483
1,544
https://github.com/ExpediaGroup/cyclotron/blob/df26fc48ea0296697e2755b7a1d9ce5cf50a4483/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.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/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
df26fc48ea0296697e2755b7a1d9ce5cf50a4483
1,544
https://github.com/ExpediaGroup/cyclotron/blob/df26fc48ea0296697e2755b7a1d9ce5cf50a4483/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.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/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
MIT
df26fc48ea0296697e2755b7a1d9ce5cf50a4483
1,544
https://github.com/ExpediaGroup/cyclotron/blob/df26fc48ea0296697e2755b7a1d9ce5cf50a4483/cyclotron-site/app/scripts/mgmt/directives/directives.editor.view.inlineArray.coffee
1
41