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
abe33/atom-pigments:lib/paths-scanner.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Task; ({Task} = require('atom')); module.exports = { startTask: function(paths, registry, callback) { var results, taskPath; results = []; taskPath = require.resolve('./tasks/scan-paths-handler'); this.task = Task.once(taskPath, [paths, regi...
{Task} = require 'atom' module.exports = startTask: (paths, registry, callback) -> results = [] taskPath = require.resolve('./tasks/scan-paths-handler') @task = Task.once( taskPath, [paths, registry.serialize()], => @task = null callback(results) ) @task.on 'sc...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/paths-scanner.coffee
MIT
ff6d0f5a491eed88feb63cac42c973352448b000
518
https://github.com/abe33/atom-pigments/blob/ff6d0f5a491eed88feb63cac42c973352448b000/lib/paths-scanner.coffee
1
22
abe33/atom-pigments:lib/paths-scanner.coffee:1:completion
completion
{Task} = require 'atom' module.exports = startTask: (paths, registry, callback) -> results = [] taskPath = require.resolve('./tasks/scan-paths-handler') @task = Task.once( taskPath, [paths, registry.serialize()], =>
@task = null callback(results) ) @task.on 'scan-paths:path-scanned', (result) -> results = results.concat(result) @task terminateRunningTask: -> @task?.terminate()
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/paths-scanner.coffee
MIT
ff6d0f5a491eed88feb63cac42c973352448b000
518
https://github.com/abe33/atom-pigments/blob/ff6d0f5a491eed88feb63cac42c973352448b000/lib/paths-scanner.coffee
1
22
abe33/atom-pigments:lib/paths-scanner.coffee:1:raw_corpus
raw_corpus
{Task} = require 'atom' module.exports = startTask: (paths, callback) -> results = [] taskPath = require.resolve('./tasks/scan-paths-handler') @task = Task.once( taskPath, paths, => @task = null callback(results) ) @task.on 'scan-paths:path-scanned', (result) -...
CoffeeScript
abe33/atom-pigments
lib/paths-scanner.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/paths-scanner.coffee
1
22
abe33/atom-pigments:lib/paths-scanner.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {Task} = require 'atom' module.exports = startTask: (paths, callback) -> results = [] taskPath = require.resolve('./tasks/scan-paths-handler') @task = Task.once( taskPath, paths, => @task = null callback(results) ...
var Task; ({Task} = require('atom')); module.exports = { startTask: function(paths, callback) { var results, taskPath; results = []; taskPath = require.resolve('./tasks/scan-paths-handler'); this.task = Task.once(taskPath, paths, () => { this.task = null; return callback(results); })...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/paths-scanner.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/paths-scanner.coffee
1
22
abe33/atom-pigments:lib/paths-scanner.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Task; ({Task} = require('atom')); module.exports = { startTask: function(paths, callback) { var results, taskPath; results = []; taskPath = require.resolve('./tasks/scan-paths-handler'); this.task = Task.once(taskPath, paths, () => { t...
{Task} = require 'atom' module.exports = startTask: (paths, callback) -> results = [] taskPath = require.resolve('./tasks/scan-paths-handler') @task = Task.once( taskPath, paths, => @task = null callback(results) ) @task.on 'scan-paths:path-scanned', (result) -...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/paths-scanner.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/paths-scanner.coffee
1
22
abe33/atom-pigments:lib/paths-scanner.coffee:1:completion
completion
{Task} = require 'atom' module.exports = startTask: (paths, callback) -> results = [] taskPath = require.resolve('./tasks/scan-paths-handler') @task = Task.once( taskPath, paths, =>
@task = null callback(results) ) @task.on 'scan-paths:path-scanned', (result) -> results = results.concat(result) @task terminateRunningTask: -> @task?.terminate()
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/paths-scanner.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/paths-scanner.coffee
1
22
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:1:raw_corpus
raw_corpus
exports.compile: compile: (code, options) -> options: or {} try (parser.parse lexer.tokenize code).compile options catch err err.message: "In $options.source, $err.message" if options.source throw err # Tokenize a string of CoffeeScript code, and return the array of tokens.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
32
40
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:1:completion
completion
exports.compile: compile: (code, options) -> options: or {} try (parser.parse lexer.tokenize code).compile options
catch err err.message: "In $options.source, $err.message" if options.source throw err # Tokenize a string of CoffeeScript code, and return the array of tokens.
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
32
40
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:2:raw_corpus
raw_corpus
exports.tokens: (code) -> lexer.tokenize code # Tokenize and parse a string of CoffeeScript code, and return the AST. You can # then compile it by calling `.compile()` on the root, or traverse it by using # `.traverse()` with a callback.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
41
46
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:3:raw_corpus
raw_corpus
exports.nodes: (code) -> parser.parse lexer.tokenize code # Compile and execute a string of CoffeeScript (on the server), correctly # setting `__filename`, `__dirname`, and relative `require()`.
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
47
51
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:4:raw_corpus
raw_corpus
exports.run: ((code, options) -> module.filename: __filename: options.source __dirname: path.dirname(__filename) eval exports.compile code, options ) # Extend CoffeeScript with a custom language extension. It should hook in to # the **Lexer** (as a peer of any of the lexer's tokenizing methods), and # push a tok...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
52
61
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:5:raw_corpus
raw_corpus
exports.extend: (func) -> Lexer.extensions.push func # The real Lexer produces a generic stream of tokens. This object provides a # thin wrapper around it, compatible with the Jison API. We can then pass it # directly as a "Jison lexer". parser.lexer: { lex: -> token: @tokens[@pos] or [""] @pos: + 1 th...
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
62
93
twilson63/express-coffee:lib/coffee/lib/coffee-script/src/coffee-script.coffee:5:completion
completion
exports.extend: (func) -> Lexer.extensions.push func # The real Lexer produces a generic stream of tokens. This object provides a # thin wrapper around it, compatible with the Jison API. We can then pass it # directly as a "Jison lexer". parser.lexer: { lex: -> token: @tokens[@pos] or [""] @pos: + 1 th...
upcomingInput: -> "" showPosition: -> @pos } # Activate CoffeeScript in the browser by having it compile and evaluate # all script tags with a content-type of `text/coffeescript`. This happens # on page load. Unfortunately, the text contents of remote scripts cannot be # accessed from the browser, so only inline scr...
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/src/coffee-script.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/src/coffee-script.coffee
62
93
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:raw_corpus
raw_corpus
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/helpers/spec-helper.coffee
1
25
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorPro...
var Pigments, deserializers, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); deserializers = { Palette: 'deserializePalette', ColorSearch: 'deserializeColorSearch', ColorProject: 'deserializeColorProject', ColorProjectElement: 'deserializeColorProjectEle...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/helpers/spec-helper.coffee
1
25
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Pigments, deserializers, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); deserializers = { Palette: 'deserializePalette', ColorSearch: 'deserializeColorSearch', ColorProject: 'deserializeColorProje...
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/helpers/spec-helper.coffee
1
25
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:completion
completion
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
atom.views.addViewProvider(Pigments.pigmentsViewProvider) for k,v of deserializers atom.deserializers.add name: k, deserialize: Pigments[v] registry.removeExpression('pigments:variables') jasmineContent = document.body.querySelector('#jasmine-content') jasmineContent.style.width = '100%' jasmineContent...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4
518
https://github.com/abe33/atom-pigments/blob/4bdef2e1ebeaa492a6c353c2fd9e7adecdebadf4/spec/helpers/spec-helper.coffee
1
25
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:raw_corpus
raw_corpus
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
079906cff3acb82f889b274b8d1da76db6f2ed88
518
https://github.com/abe33/atom-pigments/blob/079906cff3acb82f889b274b8d1da76db6f2ed88/spec/helpers/spec-helper.coffee
1
21
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorPro...
var Pigments, deserializers, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); deserializers = { Palette: 'deserializePalette', ColorSearch: 'deserializeColorSearch', ColorProject: 'deserializeColorProject', ColorProjectElement: 'deserializeColorProjectEle...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
079906cff3acb82f889b274b8d1da76db6f2ed88
518
https://github.com/abe33/atom-pigments/blob/079906cff3acb82f889b274b8d1da76db6f2ed88/spec/helpers/spec-helper.coffee
1
21
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Pigments, deserializers, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); deserializers = { Palette: 'deserializePalette', ColorSearch: 'deserializeColorSearch', ColorProject: 'deserializeColorProje...
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
079906cff3acb82f889b274b8d1da76db6f2ed88
518
https://github.com/abe33/atom-pigments/blob/079906cff3acb82f889b274b8d1da76db6f2ed88/spec/helpers/spec-helper.coffee
1
21
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:completion
completion
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
beforeEach -> atom.config.set('pigments.markerType', 'background') atom.views.addViewProvider(Pigments.pigmentsViewProvider) for k,v of deserializers atom.deserializers.add name: k, deserialize: Pigments[v] registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments...
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
079906cff3acb82f889b274b8d1da76db6f2ed88
518
https://github.com/abe33/atom-pigments/blob/079906cff3acb82f889b274b8d1da76db6f2ed88/spec/helpers/spec-helper.coffee
1
21
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:raw_corpus
raw_corpus
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/spec/helpers/spec-helper.coffee
1
20
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorPro...
var Pigments, deserializers, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); deserializers = { Palette: 'deserializePalette', ColorSearch: 'deserializeColorSearch', ColorProject: 'deserializeColorProject', ColorProjectElement: 'deserializeColorProjectEle...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/spec/helpers/spec-helper.coffee
1
20
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Pigments, deserializers, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); deserializers = { Palette: 'deserializePalette', ColorSearch: 'deserializeColorSearch', ColorProject: 'deserializeColorProje...
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
JavaScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/spec/helpers/spec-helper.coffee
1
20
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:completion
completion
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' deserializers = Palette: 'deserializePalette' ColorSearch: 'deserializeColorSearch' ColorProject: 'deserializeColorProject' ColorProjectElement: 'deserializeColorProjectElement' VariablesCollection: 'deserializeVariables...
beforeEach -> atom.views.addViewProvider(Pigments.pigmentsViewProvider) for k,v of deserializers atom.deserializers.add name: k, deserialize: Pigments[v] registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
a039f07c4cd39f1bdc650dbe335675f08c001852
518
https://github.com/abe33/atom-pigments/blob/a039f07c4cd39f1bdc650dbe335675f08c001852/spec/helpers/spec-helper.coffee
1
20
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:raw_corpus
raw_corpus
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' beforeEach -> Pigments.loadDeserializersAndRegisterViews() registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
734b870e50dfdc3f946a1264889bca8bd2fdc528
518
https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/helpers/spec-helper.coffee
1
9
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' beforeEach -> Pigments.loadDeserializersAndRegisterViews() registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables'...
var Pigments, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); beforeEach(function() { Pigments.loadDeserializersAndRegisterViews(); return registry.removeExpression('pigments:variables'); }); afterEach(function() { return registry.removeExpression('pigmen...
CoffeeScript
JavaScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
734b870e50dfdc3f946a1264889bca8bd2fdc528
518
https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/helpers/spec-helper.coffee
1
9
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Pigments, registry; registry = require('../../lib/color-expressions'); Pigments = require('../../lib/pigments'); beforeEach(function() { Pigments.loadDeserializersAndRegisterViews(); return registry.removeExpression('pigments:variables'); }); afterEach(...
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' beforeEach -> Pigments.loadDeserializersAndRegisterViews() registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
JavaScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
734b870e50dfdc3f946a1264889bca8bd2fdc528
518
https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/helpers/spec-helper.coffee
1
9
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:completion
completion
registry = require '../../lib/color-expressions' Pigments = require '../../lib/pigments' beforeEach ->
Pigments.loadDeserializersAndRegisterViews() registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
734b870e50dfdc3f946a1264889bca8bd2fdc528
518
https://github.com/abe33/atom-pigments/blob/734b870e50dfdc3f946a1264889bca8bd2fdc528/spec/helpers/spec-helper.coffee
1
9
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:raw_corpus
raw_corpus
registry = require '../../lib/color-expressions' beforeEach -> registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
8ba8e77523690760f049a6884652007eaf0afff6
518
https://github.com/abe33/atom-pigments/blob/8ba8e77523690760f049a6884652007eaf0afff6/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript registry = require '../../lib/color-expressions' beforeEach -> registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables') ```
var registry; registry = require('../../lib/color-expressions'); beforeEach(function() { return registry.removeExpression('pigments:variables'); }); afterEach(function() { return registry.removeExpression('pigments:variables'); });
CoffeeScript
JavaScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
8ba8e77523690760f049a6884652007eaf0afff6
518
https://github.com/abe33/atom-pigments/blob/8ba8e77523690760f049a6884652007eaf0afff6/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var registry; registry = require('../../lib/color-expressions'); beforeEach(function() { return registry.removeExpression('pigments:variables'); }); afterEach(function() { return registry.removeExpression('pigments:variables'); }); ```
registry = require '../../lib/color-expressions' beforeEach -> registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
JavaScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
8ba8e77523690760f049a6884652007eaf0afff6
518
https://github.com/abe33/atom-pigments/blob/8ba8e77523690760f049a6884652007eaf0afff6/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:completion
completion
registry = require '../../lib/color-expressions' beforeEach ->
registry.removeExpression('pigments:variables') afterEach -> registry.removeExpression('pigments:variables')
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
8ba8e77523690760f049a6884652007eaf0afff6
518
https://github.com/abe33/atom-pigments/blob/8ba8e77523690760f049a6884652007eaf0afff6/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:raw_corpus
raw_corpus
registry = require '../../lib/color-expressions' beforeEach -> registry.removeExpression('variables') afterEach -> registry.removeExpression('variables')
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
85cec032e06bb0e06b45873652cd0627c90189d7
518
https://github.com/abe33/atom-pigments/blob/85cec032e06bb0e06b45873652cd0627c90189d7/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript registry = require '../../lib/color-expressions' beforeEach -> registry.removeExpression('variables') afterEach -> registry.removeExpression('variables') ```
var registry; registry = require('../../lib/color-expressions'); beforeEach(function() { return registry.removeExpression('variables'); }); afterEach(function() { return registry.removeExpression('variables'); });
CoffeeScript
JavaScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
85cec032e06bb0e06b45873652cd0627c90189d7
518
https://github.com/abe33/atom-pigments/blob/85cec032e06bb0e06b45873652cd0627c90189d7/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var registry; registry = require('../../lib/color-expressions'); beforeEach(function() { return registry.removeExpression('variables'); }); afterEach(function() { return registry.removeExpression('variables'); }); ```
registry = require '../../lib/color-expressions' beforeEach -> registry.removeExpression('variables') afterEach -> registry.removeExpression('variables')
JavaScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
85cec032e06bb0e06b45873652cd0627c90189d7
518
https://github.com/abe33/atom-pigments/blob/85cec032e06bb0e06b45873652cd0627c90189d7/spec/helpers/spec-helper.coffee
1
7
abe33/atom-pigments:spec/helpers/spec-helper.coffee:1:completion
completion
registry = require '../../lib/color-expressions' beforeEach ->
registry.removeExpression('variables') afterEach -> registry.removeExpression('variables')
CoffeeScript
CoffeeScript
abe33/atom-pigments
spec/helpers/spec-helper.coffee
MIT
85cec032e06bb0e06b45873652cd0627c90189d7
518
https://github.com/abe33/atom-pigments/blob/85cec032e06bb0e06b45873652cd0627c90189d7/spec/helpers/spec-helper.coffee
1
7
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.extend _timestamp: (new @Date).toJSON(), data message = ...
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
b378524f50aa14c2f3b98a30dfa7da27aa9f11a2
815
https://github.com/octoblu/meshblu/blob/b378524f50aa14c2f3b98a30dfa7da27aa9f11a2/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.exte...
var MeshbluEventEmitter, _, debug; _ = require('lodash'); debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage, dependencies = {}) { var ref; this.emit = this.emit.bind(this); this.log = this.log.bind(this...
CoffeeScript
JavaScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
b378524f50aa14c2f3b98a30dfa7da27aa9f11a2
815
https://github.com/octoblu/meshblu/blob/b378524f50aa14c2f3b98a30dfa7da27aa9f11a2/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MeshbluEventEmitter, _, debug; _ = require('lodash'); debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage, dependencies = {}) { var ref; this.emit = ...
_ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.extend _timestamp: (new @Date).toJSON(), data message = ...
JavaScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
b378524f50aa14c2f3b98a30dfa7da27aa9f11a2
815
https://github.com/octoblu/meshblu/blob/b378524f50aa14c2f3b98a30dfa7da27aa9f11a2/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:completion
completion
_ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.extend _timestamp: (new @Date).toJSON(), data
message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message log: (event, didError, data) => event = "#{event}-error" if didError @emit event, data module.exports = MeshbluEventEmitter
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
b378524f50aa14c2f3b98a30dfa7da27aa9f11a2
815
https://github.com/octoblu/meshblu/blob/b378524f50aa14c2f3b98a30dfa7da27aa9f11a2/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.extend _timestamp: @Date.now(), data message = dev...
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
3754117cb39a22bbfd909d7ba5aba71a2f26ccf0
815
https://github.com/octoblu/meshblu/blob/3754117cb39a22bbfd909d7ba5aba71a2f26ccf0/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.exte...
var MeshbluEventEmitter, _, debug; _ = require('lodash'); debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage, dependencies = {}) { var ref; this.emit = this.emit.bind(this); this.log = this.log.bind(this...
CoffeeScript
JavaScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
3754117cb39a22bbfd909d7ba5aba71a2f26ccf0
815
https://github.com/octoblu/meshblu/blob/3754117cb39a22bbfd909d7ba5aba71a2f26ccf0/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MeshbluEventEmitter, _, debug; _ = require('lodash'); debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage, dependencies = {}) { var ref; this.emit = ...
_ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.extend _timestamp: @Date.now(), data message = dev...
JavaScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
3754117cb39a22bbfd909d7ba5aba71a2f26ccf0
815
https://github.com/octoblu/meshblu/blob/3754117cb39a22bbfd909d7ba5aba71a2f26ccf0/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:completion
completion
_ = require 'lodash' debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage, dependencies={}) -> @Date = dependencies.Date ? Date emit: (eventType, data={}) => data = _.extend _timestamp: @Date.now(), data
message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message log: (event, didError, data) => event = "#{event}-error" if didError @emit event, data module.exports = MeshbluEventEmitter
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
3754117cb39a22bbfd909d7ba5aba71a2f26ccf0
815
https://github.com/octoblu/meshblu/blob/3754117cb39a22bbfd909d7ba5aba71a2f26ccf0/lib/MeshbluEventEmitter.coffee
1
21
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:raw_corpus
raw_corpus
debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message log: (event, didError, da...
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
9175776af88e362e787df6cd1a3a3330969a963e
815
https://github.com/octoblu/meshblu/blob/9175776af88e362e787df6cd1a3a3330969a963e/lib/MeshbluEventEmitter.coffee
1
17
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids topic: eventType payload: data @sendMessage...
var MeshbluEventEmitter, debug; debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage) { this.emit = this.emit.bind(this); this.log = this.log.bind(this); this.meshbluUuid = meshbluUuid; this.uuids = uui...
CoffeeScript
JavaScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
9175776af88e362e787df6cd1a3a3330969a963e
815
https://github.com/octoblu/meshblu/blob/9175776af88e362e787df6cd1a3a3330969a963e/lib/MeshbluEventEmitter.coffee
1
17
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MeshbluEventEmitter, debug; debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage) { this.emit = this.emit.bind(this); this.log = this.log.bind(this); ...
debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message log: (event, didError, da...
JavaScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
9175776af88e362e787df6cd1a3a3330969a963e
815
https://github.com/octoblu/meshblu/blob/9175776af88e362e787df6cd1a3a3330969a963e/lib/MeshbluEventEmitter.coffee
1
17
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:completion
completion
debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids
topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message log: (event, didError, data) => event = "#{event}-error" if didError @emit event, data module.exports = MeshbluEventEmitter
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
9175776af88e362e787df6cd1a3a3330969a963e
815
https://github.com/octoblu/meshblu/blob/9175776af88e362e787df6cd1a3a3330969a963e/lib/MeshbluEventEmitter.coffee
1
17
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:raw_corpus
raw_corpus
debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message module.exports = MeshbluEve...
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
18bc12630115922725aaab0b6000a445fa234791
815
https://github.com/octoblu/meshblu/blob/18bc12630115922725aaab0b6000a445fa234791/lib/MeshbluEventEmitter.coffee
1
13
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids topic: eventType payload: data @sendMessage...
var MeshbluEventEmitter, debug; debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage) { this.emit = this.emit.bind(this); this.meshbluUuid = meshbluUuid; this.uuids = uuids; this.sendMessage = sendMessa...
CoffeeScript
JavaScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
18bc12630115922725aaab0b6000a445fa234791
815
https://github.com/octoblu/meshblu/blob/18bc12630115922725aaab0b6000a445fa234791/lib/MeshbluEventEmitter.coffee
1
13
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var MeshbluEventEmitter, debug; debug = require('debug')('meshblu:MeshbluEventEmitter'); MeshbluEventEmitter = class MeshbluEventEmitter { constructor(meshbluUuid, uuids, sendMessage) { this.emit = this.emit.bind(this); this.meshbluUuid = meshbluUuid; ...
debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) => message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message module.exports = MeshbluEve...
JavaScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
18bc12630115922725aaab0b6000a445fa234791
815
https://github.com/octoblu/meshblu/blob/18bc12630115922725aaab0b6000a445fa234791/lib/MeshbluEventEmitter.coffee
1
13
octoblu/meshblu:lib/MeshbluEventEmitter.coffee:1:completion
completion
debug = require('debug')('meshblu:MeshbluEventEmitter') class MeshbluEventEmitter constructor: (@meshbluUuid, @uuids, @sendMessage) -> emit: (eventType, data) =>
message = devices: @uuids topic: eventType payload: data @sendMessage uuid: @meshbluUuid, message module.exports = MeshbluEventEmitter
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/MeshbluEventEmitter.coffee
MIT
18bc12630115922725aaab0b6000a445fa234791
815
https://github.com/octoblu/meshblu/blob/18bc12630115922725aaab0b6000a445fa234791/lib/MeshbluEventEmitter.coffee
1
13
gterrono/houston:server/exports.coffee:1:raw_corpus
raw_corpus
# Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to configure admin UI like Django does Houston._setup_collection...
CoffeeScript
gterrono/houston
server/exports.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/server/exports.coffee
1
14
gterrono/houston:server/exports.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to config...
// Functions that Houston makes available to the app var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; // Let Houston know about a collection manually, as an alternative // to the current autodiscovery process Houston.add_collection = function(collection) { // TODO options arg ca...
CoffeeScript
JavaScript
gterrono/houston
server/exports.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/server/exports.coffee
1
14
gterrono/houston:server/exports.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Functions that Houston makes available to the app var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; // Let Houston know about a collection manually, as an alternative // to the current autodiscovery process Houston.add_colle...
# Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to configure admin UI like Django does Houston._setup_collection...
JavaScript
CoffeeScript
gterrono/houston
server/exports.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/server/exports.coffee
1
14
gterrono/houston:server/exports.coffee:1:completion
completion
# Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to configure admin UI like Django does
Houston._setup_collection(collection) # Hide a collection that is not wanted in Houston Houston.hide_collection = (collection) -> Houston._HIDDEN_COLLECTIONS[collection._name] = collection col = Houston._collections.collections.findOne({name: collection._name}) Houston._collections.collections.remove(col) if col...
CoffeeScript
CoffeeScript
gterrono/houston
server/exports.coffee
MIT
581357048f3577f0487ed598e26eaf063c813183
802
https://github.com/gterrono/houston/blob/581357048f3577f0487ed598e26eaf063c813183/server/exports.coffee
1
14
gterrono/houston:server/exports.coffee:1:raw_corpus
raw_corpus
# Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to configure admin UI like Django does Houston._setup_collection...
CoffeeScript
gterrono/houston
server/exports.coffee
MIT
11aeed77b3c7238ecfe30a37f7a1ebc250789adf
802
https://github.com/gterrono/houston/blob/11aeed77b3c7238ecfe30a37f7a1ebc250789adf/server/exports.coffee
1
8
gterrono/houston:server/exports.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to config...
// Functions that Houston makes available to the app var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; // Let Houston know about a collection manually, as an alternative // to the current autodiscovery process Houston.add_collection = function(collection) { // TODO options arg ca...
CoffeeScript
JavaScript
gterrono/houston
server/exports.coffee
MIT
11aeed77b3c7238ecfe30a37f7a1ebc250789adf
802
https://github.com/gterrono/houston/blob/11aeed77b3c7238ecfe30a37f7a1ebc250789adf/server/exports.coffee
1
8
gterrono/houston:server/exports.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Functions that Houston makes available to the app var root; root = typeof exports !== "undefined" && exports !== null ? exports : this; // Let Houston know about a collection manually, as an alternative // to the current autodiscovery process Houston.add_colle...
# Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative # to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to configure admin UI like Django does Houston._setup_collection...
JavaScript
CoffeeScript
gterrono/houston
server/exports.coffee
MIT
11aeed77b3c7238ecfe30a37f7a1ebc250789adf
802
https://github.com/gterrono/houston/blob/11aeed77b3c7238ecfe30a37f7a1ebc250789adf/server/exports.coffee
1
8
gterrono/houston:server/exports.coffee:1:completion
completion
# Functions that Houston makes available to the app root = exports ? this # Let Houston know about a collection manually, as an alternative
# to the current autodiscovery process Houston.add_collection = (collection) -> # TODO options arg can be used to configure admin UI like Django does Houston._setup_collection(collection)
CoffeeScript
CoffeeScript
gterrono/houston
server/exports.coffee
MIT
11aeed77b3c7238ecfe30a37f7a1ebc250789adf
802
https://github.com/gterrono/houston/blob/11aeed77b3c7238ecfe30a37f7a1ebc250789adf/server/exports.coffee
1
8
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'drawer-story' mixins: [ mixinQuery, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired _userId: T.string story: T.instanceOf(Immutable.Map) getInitialState: -> contacts: @getContacts() readOnly: true canSubmit: tru...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
31
80
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'drawer-story' mixins: [ mixinQuery, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired _userId: T.string story: T.instanceOf(Immutable.Map) getInitialState: -> conta...
module.exports = React.createClass({ displayName: 'drawer-story', mixins: [mixinQuery, mixinSubscribe, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, _userId: T.string, story: T.instanceOf(Immutable.Map) }, getInitialState: function() { return { contacts: this.getContacts()...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
31
80
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'drawer-story', mixins: [mixinQuery, mixinSubscribe, PureRenderMixin], propTypes: { _teamId: T.string.isRequired, _userId: T.string, story: T.instanceOf(Immutable.Map) }, getInitialState: funct...
module.exports = React.createClass displayName: 'drawer-story' mixins: [ mixinQuery, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired _userId: T.string story: T.instanceOf(Immutable.Map) getInitialState: -> contacts: @getContacts() readOnly: true canSubmit: tru...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
31
80
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:1:completion
completion
module.exports = React.createClass displayName: 'drawer-story' mixins: [ mixinQuery, mixinSubscribe, PureRenderMixin ] propTypes: _teamId: T.string.isRequired _userId: T.string story: T.instanceOf(Immutable.Map) getInitialState: -> contacts: @getContacts() readOnly: true canSubmit: tru...
@setState readOnly: true willSubmit: false isntDataChange = isMatch @props.story.get('data').toJS(), data.toJS() if isntDataChange setState() return data = data: data.toJS() category: @props.story.get 'category' storyActions.update @props.story.get('_id'), dat...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
31
80
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:2:raw_corpus
raw_corpus
onCloseDrawer: -> settingsActions.closeDrawer() onDeleteImage: -> @setState canSubmit: false onStartEdit: (event) -> event.stopPropagation() @setState readOnly: false onSubmitEdit: (event) -> event.stopPropagation() @setState willSubmit: true onUploadedImage: -> @setS...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
81
130
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript onCloseDrawer: -> settingsActions.closeDrawer() onDeleteImage: -> @setState canSubmit: false onStartEdit: (event) -> event.stopPropagation() @setState readOnly: false onSubmitEdit: (event) -> event.stopPropagation() @setStat...
({ onCloseDrawer: function() { return settingsActions.closeDrawer(); }, onDeleteImage: function() { return this.setState({ canSubmit: false }); }, onStartEdit: function(event) { event.stopPropagation(); return this.setState({ readOnly: false }); }, onSubmitEdit: functio...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
81
130
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ onCloseDrawer: function() { return settingsActions.closeDrawer(); }, onDeleteImage: function() { return this.setState({ canSubmit: false }); }, onStartEdit: function(event) { event.stopPropagation(); return this.setState({ ...
onCloseDrawer: -> settingsActions.closeDrawer() onDeleteImage: -> @setState canSubmit: false onStartEdit: (event) -> event.stopPropagation() @setState readOnly: false onSubmitEdit: (event) -> event.stopPropagation() @setState willSubmit: true onUploadedImage: -> @setS...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
81
130
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:2:completion
completion
onCloseDrawer: -> settingsActions.closeDrawer() onDeleteImage: -> @setState canSubmit: false onStartEdit: (event) -> event.stopPropagation() @setState readOnly: false onSubmitEdit: (event) -> event.stopPropagation() @setState willSubmit: true onUploadedImage: -> @setS...
renderStoryViewer: -> LightModalBeta name: 'story-viewer' show: @state.showStoryViewer onCloseClick: @onStoryViewerClose StoryViewer story: @props.story onClose: @onStoryViewerClose render: -> formProps = => data: @props.story.get 'data' onSubmit: @handleF...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
81
130
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:3:raw_corpus
raw_corpus
createTime: @props.story.get 'createdAt' updateTime: @props.story.get 'updatedAt' div className: 'action row large flex-horiz flex-vcenter', EditClassPermission _teamId: @props._teamId _creatorId: @props.story.get '_creatorId' onClick: @onStart...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
131
163
jianliaoim/talk-os:talk-web/client/app/drawer-story.coffee:3:completion
completion
createTime: @props.story.get 'createdAt' updateTime: @props.story.get 'updatedAt' div className: 'action row large flex-horiz flex-vcenter', EditClassPermission _teamId: @props._teamId _creatorId: @props.story.get '_creatorId' onClick: @onStart...
switch @props.story.get 'category' when 'file' then FormFile assign formProps(), { onDelete: @onDeleteImage, onUploaded: @onUploadedImage, imageWidth: 459, onImageClick: @onImageClick } when 'link' then FormLink formProps() when 'topic' then FormTopic formProps() else noscript() ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/drawer-story.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/drawer-story.coffee
131
163
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:raw_corpus
raw_corpus
### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: -> @GUID = Behaviour.GUID++ @interval = 1 ## console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?= {counter: 0}).counter++
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: -> @GUID = Behaviour.GUID++ @interval = 1 ## console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID]...
/* Behaviour */ var Behaviour; Behaviour = (function() { class Behaviour { constructor() { this.GUID = Behaviour.GUID++; this.interval = 1; } //# console.log @, @GUID apply(p, dt, index) { var name; // Store some data in each particle. return (p[name = '__behaviour' + t...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Behaviour */ var Behaviour; Behaviour = (function() { class Behaviour { constructor() { this.GUID = Behaviour.GUID++; this.interval = 1; } //# console.log @, @GUID apply(p, dt, index) { var name; // Store some data in ...
### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: -> @GUID = Behaviour.GUID++ @interval = 1 ## console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?= {counter: 0}).counter++
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:completion
completion
### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: ->
@GUID = Behaviour.GUID++ @interval = 1 ## console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?= {counter: 0}).counter++
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:raw_corpus
raw_corpus
### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: -> @GUID = Behaviour.GUID++ @interval = 1 console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?= {counter: 0}).counter++
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: -> @GUID = Behaviour.GUID++ @interval = 1 console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?=...
/* Behaviour */ var Behaviour; Behaviour = (function() { class Behaviour { constructor() { this.GUID = Behaviour.GUID++; this.interval = 1; console.log(this, this.GUID); } apply(p, dt, index) { var name; // Store some data in each particle. return (p[name = '__behavio...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Behaviour */ var Behaviour; Behaviour = (function() { class Behaviour { constructor() { this.GUID = Behaviour.GUID++; this.interval = 1; console.log(this, this.GUID); } apply(p, dt, index) { var name; // Store some d...
### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: -> @GUID = Behaviour.GUID++ @interval = 1 console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?= {counter: 0}).counter++
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/behaviour/Behaviour.coffee
1
18
soulwire/Coffee-Physics:source/behaviour/Behaviour.coffee:1:completion
completion
### Behaviour ### class Behaviour # Each behaviour has a unique id @GUID = 0 constructor: ->
@GUID = Behaviour.GUID++ @interval = 1 console.log @, @GUID apply: (p, dt, index) -> # Store some data in each particle. (p['__behaviour' + @GUID] ?= {counter: 0}).counter++
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/behaviour/Behaviour.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/behaviour/Behaviour.coffee
1
18
gss/engine:src/document/types/Primitive.coffee:1:raw_corpus
raw_corpus
Command = require('../../engine/Command') class Primitive extends Command # Decimal value (e.g. line-height: 1.0) class Primitive.Number extends Primitive type: 'Number' constructor: (obj) -> parsed = parseFloat(obj) if parsed == obj return parsed @formatNumber: (number) -> return number cla...
CoffeeScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
1
50
gss/engine:src/document/types/Primitive.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Command = require('../../engine/Command') class Primitive extends Command # Decimal value (e.g. line-height: 1.0) class Primitive.Number extends Primitive type: 'Number' constructor: (obj) -> parsed = parseFloat(obj) if parsed == obj return pa...
var Command, Primitive; Command = require('../../engine/Command'); Primitive = class Primitive extends Command {}; Primitive.Number = (function() { // Decimal value (e.g. line-height: 1.0) class Number extends Primitive { constructor(obj) { var parsed; parsed = parseFloat(obj); if (parsed =...
CoffeeScript
JavaScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
1
50
gss/engine:src/document/types/Primitive.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Command, Primitive; Command = require('../../engine/Command'); Primitive = class Primitive extends Command {}; Primitive.Number = (function() { // Decimal value (e.g. line-height: 1.0) class Number extends Primitive { constructor(obj) { var par...
Command = require('../../engine/Command') class Primitive extends Command # Decimal value (e.g. line-height: 1.0) class Primitive.Number extends Primitive type: 'Number' constructor: (obj) -> parsed = parseFloat(obj) if parsed == obj return parsed @formatNumber: (number) -> return number cla...
JavaScript
CoffeeScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
1
50
gss/engine:src/document/types/Primitive.coffee:1:completion
completion
Command = require('../../engine/Command') class Primitive extends Command # Decimal value (e.g. line-height: 1.0) class Primitive.Number extends Primitive type: 'Number' constructor: (obj) -> parsed = parseFloat(obj) if parsed == obj return parsed @formatNumber: (number) -> return number cla...
constructor: (obj) -> if typeof obj == 'string' return obj # Array of strings (e.g. font-family) class Primitive.Strings extends Primitive type: 'Strings' constructor: (obj) -> if typeof obj == 'string' || obj instanceof Array return obj class Primitive.Size extends Primitive type: 'Size' ...
CoffeeScript
CoffeeScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
1
50
gss/engine:src/document/types/Primitive.coffee:2:raw_corpus
raw_corpus
class Primitive.Property extends Primitive type: 'Property' Property: (obj) -> if @properties[obj] return obj module.exports = Primitive
CoffeeScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
51
57
gss/engine:src/document/types/Primitive.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class Primitive.Property extends Primitive type: 'Property' Property: (obj) -> if @properties[obj] return obj module.exports = Primitive ```
Primitive.Property = (function() { class Property extends Primitive { Property(obj) { if (this.properties[obj]) { return obj; } } }; Property.prototype.type = 'Property'; return Property; }).call(this); module.exports = Primitive;
CoffeeScript
JavaScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
51
57
gss/engine:src/document/types/Primitive.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript Primitive.Property = (function() { class Property extends Primitive { Property(obj) { if (this.properties[obj]) { return obj; } } }; Property.prototype.type = 'Property'; return Property; }).call(this); module.exports = Prim...
class Primitive.Property extends Primitive type: 'Property' Property: (obj) -> if @properties[obj] return obj module.exports = Primitive
JavaScript
CoffeeScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
51
57
gss/engine:src/document/types/Primitive.coffee:2:completion
completion
class Primitive.Property extends Primitive type: 'Property' Property: (obj) ->
if @properties[obj] return obj module.exports = Primitive
CoffeeScript
CoffeeScript
gss/engine
src/document/types/Primitive.coffee
MIT
be430ea249f8030e11c8e03a8e170dcc8b8cf5fb
2,854
https://github.com/gss/engine/blob/be430ea249f8030e11c8e03a8e170dcc8b8cf5fb/src/document/types/Primitive.coffee
51
57
buttercoin/buttercoin:lib/api/server.coffee:1:raw_corpus
raw_corpus
_ = require('underscore') EngineApi = require('../ews/ew_api') WebsocketListener = require('../ews/ws_listener') ApiProtocol = require('./api_protocol') operations = require('../operations') stump = require('stump') module.exports = class ApiServer @default_options: port: 3001 engine: { port: 6150 } quer...
CoffeeScript
buttercoin/buttercoin
lib/api/server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/api/server.coffee
1
50
buttercoin/buttercoin:lib/api/server.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('underscore') EngineApi = require('../ews/ew_api') WebsocketListener = require('../ews/ws_listener') ApiProtocol = require('./api_protocol') operations = require('../operations') stump = require('stump') module.exports = class ApiServer @default_op...
var ApiProtocol, ApiServer, EngineApi, WebsocketListener, _, operations, stump; _ = require('underscore'); EngineApi = require('../ews/ew_api'); WebsocketListener = require('../ews/ws_listener'); ApiProtocol = require('./api_protocol'); operations = require('../operations'); stump = require('stump'); module.expo...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/api/server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/api/server.coffee
1
50
buttercoin/buttercoin:lib/api/server.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ApiProtocol, ApiServer, EngineApi, WebsocketListener, _, operations, stump; _ = require('underscore'); EngineApi = require('../ews/ew_api'); WebsocketListener = require('../ews/ws_listener'); ApiProtocol = require('./api_protocol'); operations = require('....
_ = require('underscore') EngineApi = require('../ews/ew_api') WebsocketListener = require('../ews/ws_listener') ApiProtocol = require('./api_protocol') operations = require('../operations') stump = require('stump') module.exports = class ApiServer @default_options: port: 3001 engine: { port: 6150 } quer...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/api/server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/api/server.coffee
1
50
buttercoin/buttercoin:lib/api/server.coffee:1:completion
completion
_ = require('underscore') EngineApi = require('../ews/ew_api') WebsocketListener = require('../ews/ws_listener') ApiProtocol = require('./api_protocol') operations = require('../operations') stump = require('stump') module.exports = class ApiServer @default_options: port: 3001 engine: { port: 6150 } quer...
[name: "#{op}?account=#{data.operation.account}", data: data] for op in [operations.CREATE_LIMIT_ORDER, operations.CANCEL_ORDER] filter = @api.event_filters[op] || -> [] @api.event_filters[op] = (data) -> filter(data).push {name: op, data: data} start: => @connection_map =...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/api/server.coffee
MIT
a825a9ea31d695f8abb600f3f27ff635a839c0c2
663
https://github.com/buttercoin/buttercoin/blob/a825a9ea31d695f8abb600f3f27ff635a839c0c2/lib/api/server.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.tr.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 callWithJQuery ($) -> nf = $.piv...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.tr.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 browser env else ...
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.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.tr.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 callWithJQuery ($) -> nf = $.piv...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.tr.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 callWithJQuery ($) -> nf = $.piv...
computeError: "PivotTable sonuçlarını işlerken hata oluştu" uiRenderError: "PivotTable UI sonuçlarını oluştuturken hata oluştu" selectAll: "Tümünü Seç" selectNone: "Tümünü Bırak" tooMany: "(listelemek için fazla)" filterResults: "Sonuçları filtrele" totals: "Toplam" vs: "vs" ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.tr.coffee:2:raw_corpus
raw_corpus
"Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct) "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct) "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "Tablo": r["Table"] "Tablo (Çubuklar)": r["Table Barchart"] "İlgi ha...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
51
79
nicolaskruchten/pivottable:locales/pivot.tr.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct) "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct) "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "Tablo": r["Table"] ...
({ "Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct)({ "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct), "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct) }), renderers: { "Tablo": r["Table"], "Tablo (Çubuklar)": r["Table Barchart"], "İl...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
51
79
nicolaskruchten/pivottable:locales/pivot.tr.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ "Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct)({ "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct), "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct) }), renderers: { "Tablo": r["Table"...
"Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct) "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct) "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "Tablo": r["Table"] "Tablo (Çubuklar)": r["Table Barchart"] "İlgi ha...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
51
79
nicolaskruchten/pivottable:locales/pivot.tr.coffee:2:completion
completion
"Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct) "Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct) "Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct) renderers: "Tablo": r["Table"] "Tablo (Çubuklar)": r["Table Barchart"] "İlgi ha...
"Yığılmış Çubuk Grafik ": gcr["Stacked Bar Chart"] "Alan Grafiği": gcr["Area Chart"] if d3r $.pivotUtilities.locales.tr.d3_renderers = "Hiyerarşik Alan Grafiği (Treemap)": d3r["Treemap"] if c3r $.pivotUtilities.locales.tr.c3_renderers = "Çizgi Grafiği": c3r["Line Chart"] "Bar Grafi...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.tr.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.tr.coffee
51
79
lucasmotta/dploy:src/sftp.coffee:1:raw_corpus
raw_corpus
module.exports = class SFTP sftp : null connection : null connected : null failed : null closed : null closing : null constructor: -> @connected = new Signal() @failed = new Signal() @closed = new Signal() @closing = false # Create a new instance of the FTP @sftp = new ssh2() @sftp.on "...
CoffeeScript
lucasmotta/dploy
src/sftp.coffee
MIT
b0177c2fdc3c85088d684193e725b2297eecc241
973
https://github.com/lucasmotta/dploy/blob/b0177c2fdc3c85088d684193e725b2297eecc241/src/sftp.coffee
5
54