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
cdglabs/apparatus:src/View/Inspector.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "Compon...
({ _addVariable: function() { var element; ({element} = this.props); return element.addVariable(); } }); R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ ...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
33341b13fca2662eeb70581100c8419fca12cb41
1,052
https://github.com/cdglabs/apparatus/blob/33341b13fca2662eeb70581100c8419fca12cb41/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _addVariable: function() { var element; ({element} = this.props); return element.addVariable(); } }); R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; comp...
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
33341b13fca2662eeb70581100c8419fca12cb41
1,052
https://github.com/cdglabs/apparatus/blob/33341b13fca2662eeb70581100c8419fca12cb41/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:completion
completion
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
# you might want to reference in another expression, and anything that might # be useful in understanding a diagram (so that the outline is like the source # code of the diagram). Currently we show any attribute from a component that # is novel and all variables. R.create "NovelAttributesList", propTypes: element...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
33341b13fca2662eeb70581100c8419fca12cb41
1,052
https://github.com/cdglabs/apparatus/blob/33341b13fca2662eeb70581100c8419fca12cb41/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:raw_corpus
raw_corpus
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
c1b8126b864be759c20ea146c79824e4ba2da839
1,052
https://github.com/cdglabs/apparatus/blob/c1b8126b864be759c20ea146c79824e4ba2da839/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "Compon...
({ _addVariable: function() { var element; ({element} = this.props); return element.addVariable(); } }); R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ ...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
c1b8126b864be759c20ea146c79824e4ba2da839
1,052
https://github.com/cdglabs/apparatus/blob/c1b8126b864be759c20ea146c79824e4ba2da839/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _addVariable: function() { var element; ({element} = this.props); return element.addVariable(); } }); R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; comp...
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
c1b8126b864be759c20ea146c79824e4ba2da839
1,052
https://github.com/cdglabs/apparatus/blob/c1b8126b864be759c20ea146c79824e4ba2da839/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:completion
completion
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
# you might want to reference in another expression, and anything that might # be useful in understanding a diagram (so that the outline is like the source # code of the diagram). Currently we show any attribute from a component that # is novel and all variables. R.create "NovelAttributesList", propTypes: element...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
c1b8126b864be759c20ea146c79824e4ba2da839
1,052
https://github.com/cdglabs/apparatus/blob/c1b8126b864be759c20ea146c79824e4ba2da839/src/View/Inspector.coffee
43
88
cdglabs/apparatus:src/View/Inspector.coffee:2:raw_corpus
raw_corpus
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
01049dcb97930be93d691b90680b2de929afeb4c
1,052
https://github.com/cdglabs/apparatus/blob/01049dcb97930be93d691b90680b2de929afeb4c/src/View/Inspector.coffee
43
82
cdglabs/apparatus:src/View/Inspector.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "Compon...
({ _addVariable: function() { var element; ({element} = this.props); return element.addVariable(); } }); R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ ...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
01049dcb97930be93d691b90680b2de929afeb4c
1,052
https://github.com/cdglabs/apparatus/blob/01049dcb97930be93d691b90680b2de929afeb4c/src/View/Inspector.coffee
43
82
cdglabs/apparatus:src/View/Inspector.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ _addVariable: function() { var element; ({element} = this.props); return element.addVariable(); } }); R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; comp...
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
01049dcb97930be93d691b90680b2de929afeb4c
1,052
https://github.com/cdglabs/apparatus/blob/01049dcb97930be93d691b90680b2de929afeb4c/src/View/Inspector.coffee
43
82
cdglabs/apparatus:src/View/Inspector.coffee:2:completion
completion
_addVariable: -> {element} = @props element.addVariable() R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.la...
# NovelAttributesList is used to show attributes in the Outline. R.create "NovelAttributesList", propTypes: element: Model.Element contextTypes: project: Model.Project render: -> {element} = @props {project} = @context R.div {className: "AttributesList"}, for attribute in element.attr...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
01049dcb97930be93d691b90680b2de929afeb4c
1,052
https://github.com/cdglabs/apparatus/blob/01049dcb97930be93d691b90680b2de929afeb4c/src/View/Inspector.coffee
43
82
cdglabs/apparatus:src/View/Inspector.coffee:1:raw_corpus
raw_corpus
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {c...
var Model, R, Util; R = require("./R"); Model = require("../Model/Model"); Util = require("../Util/Util"); R.create("Inspector", { contextTypes: { project: Model.Project }, render: function() { var element, project, ref, ref1; project = this.context.project; element = (ref = project.selectedPa...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Model, R, Util; R = require("./R"); Model = require("../Model/Model"); Util = require("../Util/Util"); R.create("Inspector", { contextTypes: { project: Model.Project }, render: function() { var element, project, ref, ref1; project = this.c...
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:completion
completion
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
render: -> element = @props.element R.div {className: "InspectorList"}, R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span {}, "Variables" R.div {className: "ComponentSectionContent"}, for attribute in element.variable...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:2:raw_corpus
raw_corpus
propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attribut...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
51
63
cdglabs/apparatus:src/View/Inspector.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSect...
({ propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ className: "ComponentSection" }, R.div({ className: "ComponentSectionTitle" }, R.span, component.label), R.div({ className: "Compo...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
51
63
cdglabs/apparatus:src/View/Inspector.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ className: "ComponentSection" }, R.div({ className: "ComponentSectionTitle" }, R....
propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attribut...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
51
63
cdglabs/apparatus:src/View/Inspector.coffee:2:completion
completion
propTypes: component: Model.Component render: -> component = @props.component
R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attributes() R.AttributeRow {attribute, key: Util.getId(attribute)}
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
44bda500915b664456170b39144f1d5a40e73d24
1,052
https://github.com/cdglabs/apparatus/blob/44bda500915b664456170b39144f1d5a40e73d24/src/View/Inspector.coffee
51
63
cdglabs/apparatus:src/View/Inspector.coffee:1:raw_corpus
raw_corpus
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {c...
var Model, R, Util; R = require("./R"); Model = require("../Model/Model"); Util = require("../Util/Util"); R.create("Inspector", { contextTypes: { project: Model.Project }, render: function() { var element, project, ref, ref1; project = this.context.project; element = (ref = project.selectedPa...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Model, R, Util; R = require("./R"); Model = require("../Model/Model"); Util = require("../Util/Util"); R.create("Inspector", { contextTypes: { project: Model.Project }, render: function() { var element, project, ref, ref1; project = this.c...
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:completion
completion
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
element: Model.Element render: -> element = @props.element R.div {className: "InspectorList"}, R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span {}, "Variables" R.div {className: "ComponentSectionContent"}, for att...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:2:raw_corpus
raw_corpus
R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for ...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
51
64
cdglabs/apparatus:src/View/Inspector.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R...
R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ className: "ComponentSection" }, R.div({ className: "ComponentSectionTitle" }, R.span, component.label), R.d...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
51
64
cdglabs/apparatus:src/View/Inspector.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript R.create("ComponentSection", { propTypes: { component: Model.Component }, render: function() { var attribute, component; component = this.props.component; return R.div({ className: "ComponentSection" }, R.div({ className: "Comp...
R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for ...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
51
64
cdglabs/apparatus:src/View/Inspector.coffee:2:completion
completion
R.create "ComponentSection", propTypes: component: Model.Component render: -> component = @props.component
R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attributes() R.AttributeRow {attribute, key: Util.getId(attribute)}
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
9845442708ebe72893312c0e2a04128115e06d6f
1,052
https://github.com/cdglabs/apparatus/blob/9845442708ebe72893312c0e2a04128115e06d6f/src/View/Inspector.coffee
51
64
cdglabs/apparatus:src/View/Inspector.coffee:1:raw_corpus
raw_corpus
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {c...
var Model, R, Util; R = require("./R"); Model = require("../Model/Model"); Util = require("../Util/Util"); R.create("Inspector", { contextTypes: { project: Model.Project }, render: function() { var element, project, ref, ref1; project = this.context.project; element = (ref = project.selectedPa...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Model, R, Util; R = require("./R"); Model = require("../Model/Model"); Util = require("../Util/Util"); R.create("Inspector", { contextTypes: { project: Model.Project }, render: function() { var element, project, ref, ref1; project = this.c...
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:1:completion
completion
R = require "./R" Model = require "../Model/Model" Util = require "../Util/Util" R.create "Inspector", contextTypes: project: Model.Project render: -> project = @context.project element = project.selectedParticularElement?.element R.div {className: "Inspector"}, R.div {className: "Header"}...
render: -> element = @props.element R.div {className: "InspectorList"}, R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span {}, "Variables" R.div {className: "ComponentSectionContent"}, for attribute in element.variable...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
1
50
cdglabs/apparatus:src/View/Inspector.coffee:2:raw_corpus
raw_corpus
render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attributes() R.AttributeRow {attribute, key...
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
51
61
cdglabs/apparatus:src/View/Inspector.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in compon...
({ render: function() { var attribute, component; component = this.props.component; return R.div({ className: "ComponentSection" }, R.div({ className: "ComponentSectionTitle" }, R.span, component.label), R.div({ className: "ComponentSectionContent" }, (function() { var ...
CoffeeScript
JavaScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
51
61
cdglabs/apparatus:src/View/Inspector.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ render: function() { var attribute, component; component = this.props.component; return R.div({ className: "ComponentSection" }, R.div({ className: "ComponentSectionTitle" }, R.span, component.label), R.div({ className: "C...
render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"}, R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attributes() R.AttributeRow {attribute, key...
JavaScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
51
61
cdglabs/apparatus:src/View/Inspector.coffee:2:completion
completion
render: -> component = @props.component R.div {className: "ComponentSection"}, R.div {className: "ComponentSectionTitle"},
R.span, component.label R.div {className: "ComponentSectionContent"}, for attribute in component.attributes() R.AttributeRow {attribute, key: Util.getId(attribute)}
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/View/Inspector.coffee
MIT
93c2cda678de77c5a0cd7663f307bd02353f4fc5
1,052
https://github.com/cdglabs/apparatus/blob/93c2cda678de77c5a0cd7663f307bd02353f4fc5/src/View/Inspector.coffee
51
61
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'inte-teambition' mixins: [mixinCreateTopic, mixinInteHandler, mixinInteEvents, PureRenderMixin] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequired inte: T.object settings: T.object.isRequir...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'inte-teambition' mixins: [mixinCreateTopic, mixinInteHandler, mixinInteEvents, PureRenderMixin] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequir...
module.exports = React.createClass({ displayName: 'inte-teambition', mixins: [mixinCreateTopic, mixinInteHandler, mixinInteEvents, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, _roomId: T.string.isRequired, onPageBack: T.func.isRequired, inte: T.object, settings: T.object.isRequ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'inte-teambition', mixins: [mixinCreateTopic, mixinInteHandler, mixinInteEvents, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, _roomId: T.string.isRequired, onPageBack: T.func.isRequ...
module.exports = React.createClass displayName: 'inte-teambition' mixins: [mixinCreateTopic, mixinInteHandler, mixinInteEvents, PureRenderMixin] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequired inte: T.object settings: T.object.isRequir...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:1:completion
completion
module.exports = React.createClass displayName: 'inte-teambition' mixins: [mixinCreateTopic, mixinInteHandler, mixinInteEvents, PureRenderMixin] propTypes: _teamId: T.string.isRequired _roomId: T.string.isRequired onPageBack: T.func.isRequired inte: T.object settings: T.object.isRequir...
isToSubmit: -> return false unless @state._roomId? return false unless @state.project? return false unless @state.events.length > 0 return true getProjectId: -> @state.project?.get('_id') or null hasChanges: -> return false unless @props.inte? inte = @props.inte @props.settings.g...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
28
77
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:2:raw_corpus
raw_corpus
# caution: projectUrl in settings is based on http://talk.bi if TALK.env is 'dev' projectsUrl = projectsUrl.replace 'http://talk.bi/v1', TALK.apiHost api.get(projectsUrl) .then (resp) => @setState projects: Immutable.fromJS(resp), isLoading: false # events onMenuToggle: -> @setSta...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
78
127
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:2:completion
completion
# caution: projectUrl in settings is based on http://talk.bi if TALK.env is 'dev' projectsUrl = projectsUrl.replace 'http://talk.bi/v1', TALK.apiHost api.get(projectsUrl) .then (resp) => @setState projects: Immutable.fromJS(resp), isLoading: false # events onMenuToggle: -> @setSta...
data = _teamId: @props._teamId _roomId: @state._roomId project: @state.project events: @state.events title: @state.title description: @state.description iconUrl: @state.iconUrl category: @props.settings.get('name') @setState isSending: true inteActions.inteCreate...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
78
127
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:3:raw_corpus
raw_corpus
selectedProject = @state.projects.find (project) => project.get('_id') is @getProjectId() data = {} data._roomId = @state._roomId if @state._roomId isnt inte.get('_roomId') if @getProjectId() isnt inte.getIn(['project', '_id']) data.project = @state.project.toJS() data.events = @state.event...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
128
177
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript selectedProject = @state.projects.find (project) => project.get('_id') is @getProjectId() data = {} data._roomId = @state._roomId if @state._roomId isnt inte.get('_roomId') if @getProjectId() isnt inte.getIn(['project', '_id']) data.proje...
var data, selectedProject; selectedProject = this.state.projects.find((project) => { return project.get('_id') === this.getProjectId(); }); data = {}; if (this.state._roomId !== inte.get('_roomId')) { data._roomId = this.state._roomId; } if (this.getProjectId() !== inte.getIn(['project', '_id'])) { data.proje...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
128
177
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var data, selectedProject; selectedProject = this.state.projects.find((project) => { return project.get('_id') === this.getProjectId(); }); data = {}; if (this.state._roomId !== inte.get('_roomId')) { data._roomId = this.state._roomId; } if (this.getProject...
selectedProject = @state.projects.find (project) => project.get('_id') is @getProjectId() data = {} data._roomId = @state._roomId if @state._roomId isnt inte.get('_roomId') if @getProjectId() isnt inte.getIn(['project', '_id']) data.project = @state.project.toJS() data.events = @state.event...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
128
177
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:3:completion
completion
selectedProject = @state.projects.find (project) => project.get('_id') is @getProjectId() data = {} data._roomId = @state._roomId if @state._roomId isnt inte.get('_roomId') if @getProjectId() isnt inte.getIn(['project', '_id']) data.project = @state.project.toJS() data.events = @state.event...
onClick = => @onProjectSelect project div className: 'item', key: project.get('_id'), onClick: onClick, project.get('name') renderProjects: -> selectedProject = @state.projects.find (project) => project.get('_id') is @getProjectId() LightDropdown displayText: selectedProje...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
128
177
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:4:raw_corpus
raw_corpus
render: -> div className: 'inte-teambition inte-board lm-content', @renderInteHeader() @renderTopicRow() @renderProjectSelector() @renderEvents() @renderInteTitle() @renderInteDesc() @renderInteIcon() if @props.inte? @renderInteModify() else @re...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
178
193
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript render: -> div className: 'inte-teambition inte-board lm-content', @renderInteHeader() @renderTopicRow() @renderProjectSelector() @renderEvents() @renderInteTitle() @renderInteDesc() @renderInteIcon() if @props...
({ render: function() { return div({ className: 'inte-teambition inte-board lm-content' // modals }, this.renderInteHeader(), this.renderTopicRow(), this.renderProjectSelector(), this.renderEvents(), this.renderInteTitle(), this.renderInteDesc(), this.renderInteIcon(), this.props.inte != null ? this...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
178
193
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ render: function() { return div({ className: 'inte-teambition inte-board lm-content' // modals }, this.renderInteHeader(), this.renderTopicRow(), this.renderProjectSelector(), this.renderEvents(), this.renderInteTitle(), this.renderInteDesc()...
render: -> div className: 'inte-teambition inte-board lm-content', @renderInteHeader() @renderTopicRow() @renderProjectSelector() @renderEvents() @renderInteTitle() @renderInteDesc() @renderInteIcon() if @props.inte? @renderInteModify() else @re...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
178
193
jianliaoim/talk-os:talk-web/client/app/inte-teambition.coffee:4:completion
completion
render: -> div className: 'inte-teambition inte-board lm-content', @renderInteHeader() @renderTopicRow() @renderProjectSelector() @renderEvents() @renderInteTitle()
@renderInteDesc() @renderInteIcon() if @props.inte? @renderInteModify() else @renderInteCreate() # modals @renderTopicCreate()
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/inte-teambition.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/inte-teambition.coffee
178
193
jianliaoim/talk-os:talk-web/client/util/highlightjs.coffee:1:raw_corpus
raw_corpus
hljs = require 'highlight.js/lib/highlight' Immutable = require 'immutable' assets = Immutable.fromJS [ { key: 'clojure', path: require 'highlight.js/lib/languages/clojure' } { key: 'coffeescript', path: require 'highlight.js/lib/languages/coffeescript' } { key: 'cpp', path: require 'highlight.js/lib/languages/c...
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/highlightjs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/highlightjs.coffee
1
26
jianliaoim/talk-os:talk-web/client/util/highlightjs.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript hljs = require 'highlight.js/lib/highlight' Immutable = require 'immutable' assets = Immutable.fromJS [ { key: 'clojure', path: require 'highlight.js/lib/languages/clojure' } { key: 'coffeescript', path: require 'highlight.js/lib/languages/coffeescript' } ...
var Immutable, assets, hljs; hljs = require('highlight.js/lib/highlight'); Immutable = require('immutable'); assets = Immutable.fromJS([ { key: 'clojure', path: require('highlight.js/lib/languages/clojure') }, { key: 'coffeescript', path: require('highlight.js/lib/languages/coffeescript') }, ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/util/highlightjs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/highlightjs.coffee
1
26
jianliaoim/talk-os:talk-web/client/util/highlightjs.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, assets, hljs; hljs = require('highlight.js/lib/highlight'); Immutable = require('immutable'); assets = Immutable.fromJS([ { key: 'clojure', path: require('highlight.js/lib/languages/clojure') }, { key: 'coffeescript', path: r...
hljs = require 'highlight.js/lib/highlight' Immutable = require 'immutable' assets = Immutable.fromJS [ { key: 'clojure', path: require 'highlight.js/lib/languages/clojure' } { key: 'coffeescript', path: require 'highlight.js/lib/languages/coffeescript' } { key: 'cpp', path: require 'highlight.js/lib/languages/c...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/highlightjs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/highlightjs.coffee
1
26
jianliaoim/talk-os:talk-web/client/util/highlightjs.coffee:1:completion
completion
hljs = require 'highlight.js/lib/highlight' Immutable = require 'immutable' assets = Immutable.fromJS [ { key: 'clojure', path: require 'highlight.js/lib/languages/clojure' } { key: 'coffeescript', path: require 'highlight.js/lib/languages/coffeescript' } { key: 'cpp', path: require 'highlight.js/lib/languages/c...
{ key: 'javascript', path: require 'highlight.js/lib/languages/javascript' } { key: 'json', path: require 'highlight.js/lib/languages/json' } { key: 'lisp', path: require 'highlight.js/lib/languages/lisp' } { key: 'markdown', path: require 'highlight.js/lib/languages/markdown' } { key: 'objectivec', path: requi...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/util/highlightjs.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/util/highlightjs.coffee
1
26
node-cache/node-cache:_src/test/helpers.coffee:1:raw_corpus
raw_corpus
### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "012345...
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
b5ee4352541fd284104b3bb224170db8de935d44
2,372
https://github.com/node-cache/node-cache/blob/b5ee4352541fd284104b3bb224170db8de935d44/_src/test/helpers.coffee
1
50
node-cache/node-cache:_src/test/helpers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMN...
/* Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string */ exports.randomString = function(length, withnumbers = true) { var chars, i, randomstring, rnum, string_length; chars = "ABCDEFGHIJKLMN...
CoffeeScript
JavaScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
b5ee4352541fd284104b3bb224170db8de935d44
2,372
https://github.com/node-cache/node-cache/blob/b5ee4352541fd284104b3bb224170db8de935d44/_src/test/helpers.coffee
1
50
node-cache/node-cache:_src/test/helpers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string */ exports.randomString = function(length, withnumbers = true) { var chars, i, rando...
### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "012345...
JavaScript
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
b5ee4352541fd284104b3bb224170db8de935d44
2,372
https://github.com/node-cache/node-cache/blob/b5ee4352541fd284104b3bb224170db8de935d44/_src/test/helpers.coffee
1
50
node-cache/node-cache:_src/test/helpers.coffee:1:completion
completion
### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "012345...
### Generates a random number between 0 and `max` @param {Number} max @return {Number} generated random number ### exports.randomNumber = (max) -> Math.floor Math.random() * (max + 1) ### Subtracts all objB keys from objA keys and returns the result. Both objects should have identical keys with numeric values @par...
CoffeeScript
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
b5ee4352541fd284104b3bb224170db8de935d44
2,372
https://github.com/node-cache/node-cache/blob/b5ee4352541fd284104b3bb224170db8de935d44/_src/test/helpers.coffee
1
50
node-cache/node-cache:_src/test/helpers.coffee:1:raw_corpus
raw_corpus
### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "012345...
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa
2,372
https://github.com/node-cache/node-cache/blob/83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa/_src/test/helpers.coffee
1
40
node-cache/node-cache:_src/test/helpers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMN...
/* Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string */ exports.randomString = function(length, withnumbers = true) { var chars, i, randomstring, rnum, string_length; chars = "ABCDEFGHIJKLMN...
CoffeeScript
JavaScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa
2,372
https://github.com/node-cache/node-cache/blob/83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa/_src/test/helpers.coffee
1
40
node-cache/node-cache:_src/test/helpers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string */ exports.randomString = function(length, withnumbers = true) { var chars, i, rando...
### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "012345...
JavaScript
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa
2,372
https://github.com/node-cache/node-cache/blob/83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa/_src/test/helpers.coffee
1
40
node-cache/node-cache:_src/test/helpers.coffee:1:completion
completion
### Generates a random string of given length @param {Number} length - length of the returned string @param {Boolean} withnumbers [true] @return {String} generated random string ### exports.randomString = (length, withnumbers = true) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "012345...
return randomstring ### Subtracts all objB keys from objA keys and returns the result. Both objects should have identical keys with numeric values @param {Object} objA @param {Object} objB @return {Object} Object with the diffed values ### exports.diffKeys = (objA, objB) -> diff = {} for key of objA if objB.has...
CoffeeScript
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa
2,372
https://github.com/node-cache/node-cache/blob/83525b144e6aaefaa7e15f0ac3caf7bdd368c9aa/_src/test/helpers.coffee
1
40
node-cache/node-cache:_src/test/helpers.coffee:1:raw_corpus
raw_corpus
exports.randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "0123456789" if withnumbers string_length = length or 5 randomstring = "" i = 0 while i < string_length rnum = Math.floor(Math.random() * chars.length) randomstring += chars.subst...
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56
2,372
https://github.com/node-cache/node-cache/blob/d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56/_src/test/helpers.coffee
1
14
node-cache/node-cache:_src/test/helpers.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "0123456789" if withnumbers string_length = length or 5 randomstring = "" i = 0 while i < string_length rnum = Math.floor(Ma...
exports.randomString = function(length, withnumbers = true) { var chars, i, randomstring, rnum, string_length; chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; if (withnumbers) { chars += "0123456789"; } string_length = length || 5; randomstring = ""; i = 0; while (i < string_length) ...
CoffeeScript
JavaScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56
2,372
https://github.com/node-cache/node-cache/blob/d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56/_src/test/helpers.coffee
1
14
node-cache/node-cache:_src/test/helpers.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.randomString = function(length, withnumbers = true) { var chars, i, randomstring, rnum, string_length; chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; if (withnumbers) { chars += "0123456789"; } string_length = length || 5; r...
exports.randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "0123456789" if withnumbers string_length = length or 5 randomstring = "" i = 0 while i < string_length rnum = Math.floor(Math.random() * chars.length) randomstring += chars.subst...
JavaScript
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56
2,372
https://github.com/node-cache/node-cache/blob/d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56/_src/test/helpers.coffee
1
14
node-cache/node-cache:_src/test/helpers.coffee:1:completion
completion
exports.randomString = ( length, withnumbers = true ) -> chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" chars += "0123456789" if withnumbers string_length = length or 5 randomstring = "" i = 0
while i < string_length rnum = Math.floor(Math.random() * chars.length) randomstring += chars.substring(rnum, rnum + 1) i++ return randomstring
CoffeeScript
CoffeeScript
node-cache/node-cache
_src/test/helpers.coffee
MIT
d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56
2,372
https://github.com/node-cache/node-cache/blob/d0901e7f174e46bb142ca7c9e4ef31b24c3c3d56/_src/test/helpers.coffee
1
14
linemanjs/lineman:config/plugins/clean.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: clean: dist: src: ["dist", "generated"]
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/clean.coffee
1
5
linemanjs/lineman:config/plugins/clean.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: clean: dist: src: ["dist", "generated"] ```
module.exports = function(lineman) { return { config: { clean: { dist: { src: ["dist", "generated"] } } } }; };
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/clean.coffee
1
5
linemanjs/lineman:config/plugins/clean.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { clean: { dist: { src: ["dist", "generated"] } } } }; }; ```
module.exports = (lineman) -> config: clean: dist: src: ["dist", "generated"]
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/clean.coffee
1
5
linemanjs/lineman:config/plugins/clean.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: clean: js: src: "<%= files.js.concatenated %>" css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"]
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/clean.coffee
1
11
linemanjs/lineman:config/plugins/clean.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: clean: js: src: "<%= files.js.concatenated %>" css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"] ```
module.exports = function(lineman) { return { config: { clean: { js: { src: "<%= files.js.concatenated %>" }, css: { src: "<%= files.css.concatenated %>" }, dist: { src: ["dist", "generated"] } } } }; };
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/clean.coffee
1
11
linemanjs/lineman:config/plugins/clean.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { clean: { js: { src: "<%= files.js.concatenated %>" }, css: { src: "<%= files.css.concatenated %>" }, dist: { src: ["dist", "gen...
module.exports = (lineman) -> config: clean: js: src: "<%= files.js.concatenated %>" css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"]
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/clean.coffee
1
11
linemanjs/lineman:config/plugins/clean.coffee:1:completion
completion
module.exports = (lineman) -> config: clean: js: src: "<%= files.js.concatenated %>"
css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"]
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
933adfea4b35d36c79ddfacdfc6c2b5330dd6e81
1,168
https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/clean.coffee
1
11
linemanjs/lineman:config/plugins/clean.coffee:1:raw_corpus
raw_corpus
module.exports = (lineman) -> config: js: src: "<%= files.js.concatenated %>" css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"]
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/clean.coffee
1
10
linemanjs/lineman:config/plugins/clean.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = (lineman) -> config: js: src: "<%= files.js.concatenated %>" css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"] ```
module.exports = function(lineman) { return { config: { js: { src: "<%= files.js.concatenated %>" }, css: { src: "<%= files.css.concatenated %>" }, dist: { src: ["dist", "generated"] } } }; };
CoffeeScript
JavaScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/clean.coffee
1
10
linemanjs/lineman:config/plugins/clean.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = function(lineman) { return { config: { js: { src: "<%= files.js.concatenated %>" }, css: { src: "<%= files.css.concatenated %>" }, dist: { src: ["dist", "generated"] } } }; }; ...
module.exports = (lineman) -> config: js: src: "<%= files.js.concatenated %>" css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"]
JavaScript
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/clean.coffee
1
10
linemanjs/lineman:config/plugins/clean.coffee:1:completion
completion
module.exports = (lineman) -> config: js: src: "<%= files.js.concatenated %>"
css: src: "<%= files.css.concatenated %>" dist: src: ["dist", "generated"]
CoffeeScript
CoffeeScript
linemanjs/lineman
config/plugins/clean.coffee
MIT
94365fc4e4b804de8672585c254895fbd9cb514e
1,168
https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/clean.coffee
1
10
Atraci/Atraci:coffee/_shortKey.coffee:1:raw_corpus
raw_corpus
( -> toggleTrack = -> if videojs('video_player').paused() videojs('video_player').play() else videojs('video_player').pause() playNextTrack = -> PlayNext(__currentTrack.artist, __currentTrack.title) playPrevTrack = -> PlayPrevious(__currentTrack.artist, __currentTrack.title) # Key...
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_shortKey.coffee
1
50
Atraci/Atraci:coffee/_shortKey.coffee:1:completion
completion
( -> toggleTrack = -> if videojs('video_player').paused() videojs('video_player').play() else videojs('video_player').pause() playNextTrack = -> PlayNext(__currentTrack.artist, __currentTrack.title) playPrevTrack = -> PlayPrevious(__currentTrack.artist, __currentTrack.title) # Key...
if e.keyCode is 39 and e.target.tagName != 'INPUT' playNextTrack() # special keys bound by node-webkit toggleTrackKey = new gui.Shortcut({ key: 'MediaPlayPause', active: -> toggleTrack() }) playNextTrackKey = new gui.Shortcut({ key: 'MediaNextTrack' active: -> playNextTrack()...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_shortKey.coffee
1
50
Atraci/Atraci:coffee/_shortKey.coffee:2:raw_corpus
raw_corpus
if process.platform is 'darwin' openSettingsKey = new gui.Shortcut({ key: 'Ctrl+Comma' active: -> window.settingsPanel.toggle() }) gui.App.registerGlobalHotKey(openSettingsKey) )()
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_shortKey.coffee
51
59
Atraci/Atraci:coffee/_shortKey.coffee:2:completion
completion
if process.platform is 'darwin' openSettingsKey = new gui.Shortcut({ key: 'Ctrl+Comma' active: ->
window.settingsPanel.toggle() }) gui.App.registerGlobalHotKey(openSettingsKey) )()
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca
800
https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_shortKey.coffee
51
59
Atraci/Atraci:coffee/_shortKey.coffee:1:raw_corpus
raw_corpus
( -> toggleTrack = -> if videojs('video_player').paused() videojs('video_player').play() else videojs('video_player').pause() playNextTrack = -> PlayNext(__currentTrack.artist, __currentTrack.title) playPrevTrack = -> PlayPrevious(__currentTrack.artist, __currentTrack.title) # Key...
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
79c7e8399bbcad1acd35f4da61d1f6d10a0e0530
800
https://github.com/Atraci/Atraci/blob/79c7e8399bbcad1acd35f4da61d1f6d10a0e0530/coffee/_shortKey.coffee
1
50
Atraci/Atraci:coffee/_shortKey.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ( -> toggleTrack = -> if videojs('video_player').paused() videojs('video_player').play() else videojs('video_player').pause() playNextTrack = -> PlayNext(__currentTrack.artist, __currentTrack.title) playPrevTrack = -> PlayPrevi...
(function() { var playNextTrack, playNextTrackKey, playPrevTrack, playPrevTrackKey, toggleTrack, toggleTrackKey; toggleTrack = function() { if (videojs('video_player').paused()) { return videojs('video_player').play(); } else { return videojs('video_player').pause(); } }; playNextTrack =...
CoffeeScript
JavaScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
79c7e8399bbcad1acd35f4da61d1f6d10a0e0530
800
https://github.com/Atraci/Atraci/blob/79c7e8399bbcad1acd35f4da61d1f6d10a0e0530/coffee/_shortKey.coffee
1
50
Atraci/Atraci:coffee/_shortKey.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript (function() { var playNextTrack, playNextTrackKey, playPrevTrack, playPrevTrackKey, toggleTrack, toggleTrackKey; toggleTrack = function() { if (videojs('video_player').paused()) { return videojs('video_player').play(); } else { return videoj...
( -> toggleTrack = -> if videojs('video_player').paused() videojs('video_player').play() else videojs('video_player').pause() playNextTrack = -> PlayNext(__currentTrack.artist, __currentTrack.title) playPrevTrack = -> PlayPrevious(__currentTrack.artist, __currentTrack.title) # Key...
JavaScript
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
79c7e8399bbcad1acd35f4da61d1f6d10a0e0530
800
https://github.com/Atraci/Atraci/blob/79c7e8399bbcad1acd35f4da61d1f6d10a0e0530/coffee/_shortKey.coffee
1
50
Atraci/Atraci:coffee/_shortKey.coffee:1:completion
completion
( -> toggleTrack = -> if videojs('video_player').paused() videojs('video_player').play() else videojs('video_player').pause() playNextTrack = -> PlayNext(__currentTrack.artist, __currentTrack.title) playPrevTrack = -> PlayPrevious(__currentTrack.artist, __currentTrack.title) # Key...
playNextTrack() # special keys bound by node-webkit toggleTrackKey = new gui.Shortcut({ key: 'MediaPlayPause', active: -> toggleTrack() }) playNextTrackKey = new gui.Shortcut({ key: 'MediaNextTrack' active: -> playNextTrack() }) playPrevTrackKey = new gui.Shortcut({ key: '...
CoffeeScript
CoffeeScript
Atraci/Atraci
coffee/_shortKey.coffee
MIT
79c7e8399bbcad1acd35f4da61d1f6d10a0e0530
800
https://github.com/Atraci/Atraci/blob/79c7e8399bbcad1acd35f4da61d1f6d10a0e0530/coffee/_shortKey.coffee
1
50
octoblu/meshblu:lib/publishToReceived.coffee:1:raw_corpus
raw_corpus
Publisher = require './Publisher' module.exports = (uuid, message, callback) => publisher = new Publisher uuid: uuid, namespace: 'meshblu:received' publisher.publish message, callback
CoffeeScript
octoblu/meshblu
lib/publishToReceived.coffee
MIT
32803658e5d5b6cdd2553cd353c4d589d36e5306
815
https://github.com/octoblu/meshblu/blob/32803658e5d5b6cdd2553cd353c4d589d36e5306/lib/publishToReceived.coffee
1
5
octoblu/meshblu:lib/publishToReceived.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Publisher = require './Publisher' module.exports = (uuid, message, callback) => publisher = new Publisher uuid: uuid, namespace: 'meshblu:received' publisher.publish message, callback ```
var Publisher; Publisher = require('./Publisher'); module.exports = (uuid, message, callback) => { var publisher; publisher = new Publisher({ uuid: uuid, namespace: 'meshblu:received' }); return publisher.publish(message, callback); };
CoffeeScript
JavaScript
octoblu/meshblu
lib/publishToReceived.coffee
MIT
32803658e5d5b6cdd2553cd353c4d589d36e5306
815
https://github.com/octoblu/meshblu/blob/32803658e5d5b6cdd2553cd353c4d589d36e5306/lib/publishToReceived.coffee
1
5
octoblu/meshblu:lib/publishToReceived.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Publisher; Publisher = require('./Publisher'); module.exports = (uuid, message, callback) => { var publisher; publisher = new Publisher({ uuid: uuid, namespace: 'meshblu:received' }); return publisher.publish(message, callback); }; ```
Publisher = require './Publisher' module.exports = (uuid, message, callback) => publisher = new Publisher uuid: uuid, namespace: 'meshblu:received' publisher.publish message, callback
JavaScript
CoffeeScript
octoblu/meshblu
lib/publishToReceived.coffee
MIT
32803658e5d5b6cdd2553cd353c4d589d36e5306
815
https://github.com/octoblu/meshblu/blob/32803658e5d5b6cdd2553cd353c4d589d36e5306/lib/publishToReceived.coffee
1
5
octoblu/meshblu:lib/publishToReceived.coffee:1:completion
completion
Publisher = require './Publisher'
module.exports = (uuid, message, callback) => publisher = new Publisher uuid: uuid, namespace: 'meshblu:received' publisher.publish message, callback
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/publishToReceived.coffee
MIT
32803658e5d5b6cdd2553cd353c4d589d36e5306
815
https://github.com/octoblu/meshblu/blob/32803658e5d5b6cdd2553cd353c4d589d36e5306/lib/publishToReceived.coffee
1
5
jianliaoim/talk-os:talk-api2x/server/components/i18n.coffee:1:raw_corpus
raw_corpus
i18n = require 'i18n' requireDir = require 'require-dir' innerLocales = requireDir "#{__dirname}/../config/locales" pattern = /\{\{__([\s\S]+?)\}\}/g i18n.configure directory: "#{__dirname}/../../locales" defaultLocale: 'zh' locales: ['zh', 'en'] cookie: 'lang' updateFiles: false # Grep pharses and replace...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/i18n.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/i18n.coffee
1
22
jianliaoim/talk-os:talk-api2x/server/components/i18n.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript i18n = require 'i18n' requireDir = require 'require-dir' innerLocales = requireDir "#{__dirname}/../config/locales" pattern = /\{\{__([\s\S]+?)\}\}/g i18n.configure directory: "#{__dirname}/../../locales" defaultLocale: 'zh' locales: ['zh', 'en'] cookie...
var i18n, innerLocales, pattern, requireDir; i18n = require('i18n'); requireDir = require('require-dir'); innerLocales = requireDir(`${__dirname}/../config/locales`); pattern = /\{\{__([\s\S]+?)\}\}/g; i18n.configure({ directory: `${__dirname}/../../locales`, defaultLocale: 'zh', locales: ['zh', 'en'], coo...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/components/i18n.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/i18n.coffee
1
22
jianliaoim/talk-os:talk-api2x/server/components/i18n.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var i18n, innerLocales, pattern, requireDir; i18n = require('i18n'); requireDir = require('require-dir'); innerLocales = requireDir(`${__dirname}/../config/locales`); pattern = /\{\{__([\s\S]+?)\}\}/g; i18n.configure({ directory: `${__dirname}/../../locales`...
i18n = require 'i18n' requireDir = require 'require-dir' innerLocales = requireDir "#{__dirname}/../config/locales" pattern = /\{\{__([\s\S]+?)\}\}/g i18n.configure directory: "#{__dirname}/../../locales" defaultLocale: 'zh' locales: ['zh', 'en'] cookie: 'lang' updateFiles: false # Grep pharses and replace...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/i18n.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/i18n.coffee
1
22
jianliaoim/talk-os:talk-api2x/server/components/i18n.coffee:1:completion
completion
i18n = require 'i18n' requireDir = require 'require-dir' innerLocales = requireDir "#{__dirname}/../config/locales" pattern = /\{\{__([\s\S]+?)\}\}/g i18n.configure directory: "#{__dirname}/../../locales" defaultLocale: 'zh' locales: ['zh', 'en'] cookie: 'lang'
updateFiles: false # Grep pharses and replace with the messages in the dictionary i18n.replace = (str) -> return str unless toString.call(str) is '[object String]' str.replace pattern, (m, code) -> i18n.__(code) or code # Generate i18n data by inner locale configurations i18n.fns = (lang) -> innerLocales[lang] or...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/components/i18n.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/components/i18n.coffee
1
22
soulwire/Coffee-Physics:source/behaviour/ConstantForce.coffee:1:raw_corpus
raw_corpus
### Constant Force Behaviour ### class ConstantForce extends Behaviour constructor: (@force = new Vector()) -> super apply: (p, dt,index) -> #super p, dt, index p.acc.add @force
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/ConstantForce.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/behaviour/ConstantForce.coffee
1
13
soulwire/Coffee-Physics:source/behaviour/ConstantForce.coffee:1:completion
completion
### Constant Force Behaviour ### class ConstantForce extends Behaviour constructor: (@force = new Vector()) ->
super apply: (p, dt,index) -> #super p, dt, index p.acc.add @force
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/ConstantForce.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/behaviour/ConstantForce.coffee
1
13
nicolaskruchten/pivottable:locales/pivot.cs.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.cs.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.cs.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.cs.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript 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 brow...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain br...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
locales/pivot.cs.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.cs.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.cs.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return defi...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.cs.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.cs.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.cs.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "Hodnoty pro filtr" apply: "Použít" cancel: "Zrušit" totals: "Celkem" vs: "ku" by: "z" aggregators: "Počet": tpl.count(csFmtInt) "Počet unikátních hodnot": tpl.countUnique(csFmtInt) ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.cs.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.cs.coffee
1
50
soyjavi/QuoJS:src/quo.ajax.coffee:1:raw_corpus
raw_corpus
do ($$ = Quo) -> DEFAULT = TYPE: "GET" MIME: "json" MIME_TYPES = script: "text/javascript, application/javascript" json: "application/json" xml: "application/xml, text/xml" html: "text/html" text: "text/plain" JSONP_ID = 0 $$.ajaxSettings = ...
CoffeeScript
soyjavi/QuoJS
src/quo.ajax.coffee
MIT
be94c69491c80362458f2e85783e2c0ad694703e
2,055
https://github.com/soyjavi/QuoJS/blob/be94c69491c80362458f2e85783e2c0ad694703e/src/quo.ajax.coffee
1
41
soyjavi/QuoJS:src/quo.ajax.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript do ($$ = Quo) -> DEFAULT = TYPE: "GET" MIME: "json" MIME_TYPES = script: "text/javascript, application/javascript" json: "application/json" xml: "application/xml, text/xml" html: "text/html" text: ...
(function($$) { var DEFAULT, JSONP_ID, MIME_TYPES; DEFAULT = { TYPE: "GET", MIME: "json" }; MIME_TYPES = { script: "text/javascript, application/javascript", json: "application/json", xml: "application/xml, text/xml", html: "text/html", text: "text/plain" }; JSONP_ID = 0; $$.aj...
CoffeeScript
JavaScript
soyjavi/QuoJS
src/quo.ajax.coffee
MIT
be94c69491c80362458f2e85783e2c0ad694703e
2,055
https://github.com/soyjavi/QuoJS/blob/be94c69491c80362458f2e85783e2c0ad694703e/src/quo.ajax.coffee
1
41