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
jeremyramin/terminal-plus:lib/terminal-plus.coffee:3:raw_corpus
raw_corpus
default: 0 minimum: 0 maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 colors: type: 'object' order: 4 properties: red: tit...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
a2b8203c199e693f2423d5f940ee60b712d7fe73
478
https://github.com/jeremyramin/terminal-plus/blob/a2b8203c199e693f2423d5f940ee60b712d7fe73/lib/terminal-plus.coffee
106
155
jeremyramin/terminal-plus:lib/terminal-plus.coffee:3:completion
completion
default: 0 minimum: 0 maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 colors: type: 'object' order: 4 properties: red: tit...
type: 'color' default: 'yellow' green: title: 'Green' description: 'Green color used for status icon.' type: 'color' default: 'green' blue: title: 'Blue' description: 'Blue color used for status icon.' type: 'color' ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
a2b8203c199e693f2423d5f940ee60b712d7fe73
478
https://github.com/jeremyramin/terminal-plus/blob/a2b8203c199e693f2423d5f940ee60b712d7fe73/lib/terminal-plus.coffee
106
155
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:raw_corpus
raw_corpus
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable deactivate: -> @subscriptions.dispose() @statusBar.destroy() serialize: -> statusBarState: @statusBar.serial...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
6956899b441a84a793ef479edabe7faa89beafd0
478
https://github.com/jeremyramin/terminal-plus/blob/6956899b441a84a793ef479edabe7faa89beafd0/lib/terminal-plus.coffee
6
55
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:completion
completion
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable deactivate: -> @subscriptions.dispose() @statusBar.destroy() serialize: -> statusBarState: @statusBar.serial...
sortableStatus: title: 'Make Status Bar Sortable' description: 'Load the sortable interface? [WARNING: This adds to startup time.]' type: 'boolean' default: false forceTitle: title: 'Force Terminal Title' description: 'Force shell to give the terminal ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
6956899b441a84a793ef479edabe7faa89beafd0
478
https://github.com/jeremyramin/terminal-plus/blob/6956899b441a84a793ef479edabe7faa89beafd0/lib/terminal-plus.coffee
6
55
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:raw_corpus
raw_corpus
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable deactivate: -> @subscriptions.dispose() @statusBar.destroy() serialize: -> statusBarState: @statusBar.serial...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable deactivate: -> @subscriptions.dispose() @statusBar.destroy...
var TerminalPlus; module.exports = TerminalPlus = { statusBar: null, subscriptions: null, activate: function(state) { this.statusBar = new StatusBar(state.statusBarState); return this.subscriptions = new CompositeDisposable(); }, deactivate: function() { this.subscriptions.dispose(); return t...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TerminalPlus; module.exports = TerminalPlus = { statusBar: null, subscriptions: null, activate: function(state) { this.statusBar = new StatusBar(state.statusBarState); return this.subscriptions = new CompositeDisposable(); }, deactivate: func...
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable deactivate: -> @subscriptions.dispose() @statusBar.destroy() serialize: -> statusBarState: @statusBar.serial...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:completion
completion
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable deactivate: -> @subscriptions.dispose() @statusBar.destroy() serialize: -> statusBarState: @statusBar.serial...
enum: [ 'standard', 'inverse', 'grass', 'homebrew', 'man-page', 'novel', 'ocean', 'pro', 'red', 'red-sands', 'silver-aerogel', 'solid-colors', ] fontFamily: ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:raw_corpus
raw_corpus
maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 core: title: 'Style' type: 'object' properties: autoRunCommand: title: 'Auto Run Command' ...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 core: title: 'Style' type: 'object' properties: ...
({ maxPanelHeight: { title: 'Maximum Panel Height', description: 'Maximum height of a terminal panel.', type: 'integer', default: 300, minimum: 50 }, core: { title: 'Style', type: 'object', properties: { autoRunCommand: { title: 'Auto Run Command', description...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ maxPanelHeight: { title: 'Maximum Panel Height', description: 'Maximum height of a terminal panel.', type: 'integer', default: 300, minimum: 50 }, core: { title: 'Style', type: 'object', properties: { autoRunCommand: {...
maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 core: title: 'Style' type: 'object' properties: autoRunCommand: title: 'Auto Run Command' ...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:completion
completion
maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 core: title: 'Style' type: 'object' properties: autoRunCommand: title: 'Auto Run Command' ...
shellArguments: title: 'Shell Arguments' description: 'Specify some arguments to use when launching the shell.' type: 'string' default: do ({SHELL, HOME}=process.env) -> switch path.basename SHELL.toLowerCase() when 'bash' then "--init-file #{path.join H...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
b693805f0fead2de509ffc079b106459ecb37182
478
https://github.com/jeremyramin/terminal-plus/blob/b693805f0fead2de509ffc079b106459ecb37182/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:raw_corpus
raw_corpus
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions.add atom.commands.add 'atom-workspace', 'terminal-plus:t...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions...
var TerminalPlus; module.exports = TerminalPlus = { statusBar: null, subscriptions: null, activate: function(state) { this.statusBar = new StatusBar(state.statusBarState); return this.subscriptions = new CompositeDisposable(); }, // # Register command that toggles this view // @subscriptions.add at...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TerminalPlus; module.exports = TerminalPlus = { statusBar: null, subscriptions: null, activate: function(state) { this.statusBar = new StatusBar(state.statusBarState); return this.subscriptions = new CompositeDisposable(); }, // # Register co...
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions.add atom.commands.add 'atom-workspace', 'terminal-plus:t...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:completion
completion
module.exports = TerminalPlus = statusBar: null subscriptions: null activate: (state) -> @statusBar = new StatusBar(state.statusBarState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions.add atom.commands.add 'atom-workspace', 'terminal-plus:t...
description: 'Select a theme for the terminal.' type: 'string' default: 'standard' enum: [ 'standard', 'inverse', 'grass', 'homebrew', 'man-page', 'novel', 'ocean', 'pro', 'red', ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:raw_corpus
raw_corpus
type: 'integer' default: 0 minimum: 0 maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 toggles: type: 'object' properties: ...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:completion
completion
type: 'integer' default: 0 minimum: 0 maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 toggles: type: 'object' properties: ...
properties: autoRunCommand: title: 'Auto Run Command' description: 'Command to run on terminal initialization.' type: 'string' default: '' sortableStatus: title: 'Make Terminal Status Sortable' description: 'Add to startup time and load the sor...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:3:raw_corpus
raw_corpus
default: do ({SHELL, HOME}=process.env) -> switch path.basename SHELL.toLowerCase() when 'bash' then "--init-file #{path.join HOME, '.bash_profile'}" when 'zsh' then '' else ''
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
107
111
jeremyramin/terminal-plus:lib/terminal-plus.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript default: do ({SHELL, HOME}=process.env) -> switch path.basename SHELL.toLowerCase() when 'bash' then "--init-file #{path.join HOME, '.bash_profile'}" when 'zsh' then '' else '' ```
({ default: (function({SHELL, HOME}) { switch (path.basename(SHELL.toLowerCase())) { case 'bash': return `--init-file ${path.join(HOME, '.bash_profile')}`; case 'zsh': return ''; default: return ''; } })(process.env) });
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
107
111
jeremyramin/terminal-plus:lib/terminal-plus.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ default: (function({SHELL, HOME}) { switch (path.basename(SHELL.toLowerCase())) { case 'bash': return `--init-file ${path.join(HOME, '.bash_profile')}`; case 'zsh': return ''; default: return ''; } })(process...
default: do ({SHELL, HOME}=process.env) -> switch path.basename SHELL.toLowerCase() when 'bash' then "--init-file #{path.join HOME, '.bash_profile'}" when 'zsh' then '' else ''
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
107
111
jeremyramin/terminal-plus:lib/terminal-plus.coffee:3:completion
completion
default: do ({SHELL, HOME}=process.env) -> switch path.basename SHELL.toLowerCase()
when 'bash' then "--init-file #{path.join HOME, '.bash_profile'}" when 'zsh' then '' else ''
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
c99ef2e193724cd6ba2a6d748f8b85b1572ff19d
478
https://github.com/jeremyramin/terminal-plus/blob/c99ef2e193724cd6ba2a6d748f8b85b1572ff19d/lib/terminal-plus.coffee
107
111
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:raw_corpus
raw_corpus
type: 'integer' default: 0 minimum: 0 maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 toggles: type: 'object' properties: ...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
efd8101d349b2c503f195392fcb12fd20c492988
478
https://github.com/jeremyramin/terminal-plus/blob/efd8101d349b2c503f195392fcb12fd20c492988/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:2:completion
completion
type: 'integer' default: 0 minimum: 0 maxPanelHeight: title: 'Maximum Panel Height' description: 'Maximum height of a terminal panel.' type: 'integer' default: 300 minimum: 50 toggles: type: 'object' properties: ...
properties: autoRunCommand: title: 'Auto Run Command' description: 'Command to run on terminal initialization.' type: 'string' default: '' scrollback: title: 'Scroll Back' description: 'How many lines of history should be kept?' type:...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
efd8101d349b2c503f195392fcb12fd20c492988
478
https://github.com/jeremyramin/terminal-plus/blob/efd8101d349b2c503f195392fcb12fd20c492988/lib/terminal-plus.coffee
57
106
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:raw_corpus
raw_corpus
module.exports = TerminalPlus = terminalPlusPanel: null subscriptions: null activate: (state) -> @terminalPlusPanel = new TerminalPlusPanel(state.terminalPlusPanelState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions.add atom.commands.add 'a...
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
15a422034df6c2f5a0d2b180007d8f90bfa44e98
478
https://github.com/jeremyramin/terminal-plus/blob/15a422034df6c2f5a0d2b180007d8f90bfa44e98/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = TerminalPlus = terminalPlusPanel: null subscriptions: null activate: (state) -> @terminalPlusPanel = new TerminalPlusPanel(state.terminalPlusPanelState) @subscriptions = new CompositeDisposable # # Register command that toggle...
var TerminalPlus; module.exports = TerminalPlus = { terminalPlusPanel: null, subscriptions: null, activate: function(state) { this.terminalPlusPanel = new TerminalPlusPanel(state.terminalPlusPanelState); return this.subscriptions = new CompositeDisposable(); }, // # Register command that toggles this...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
15a422034df6c2f5a0d2b180007d8f90bfa44e98
478
https://github.com/jeremyramin/terminal-plus/blob/15a422034df6c2f5a0d2b180007d8f90bfa44e98/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var TerminalPlus; module.exports = TerminalPlus = { terminalPlusPanel: null, subscriptions: null, activate: function(state) { this.terminalPlusPanel = new TerminalPlusPanel(state.terminalPlusPanelState); return this.subscriptions = new CompositeDispo...
module.exports = TerminalPlus = terminalPlusPanel: null subscriptions: null activate: (state) -> @terminalPlusPanel = new TerminalPlusPanel(state.terminalPlusPanelState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions.add atom.commands.add 'a...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
15a422034df6c2f5a0d2b180007d8f90bfa44e98
478
https://github.com/jeremyramin/terminal-plus/blob/15a422034df6c2f5a0d2b180007d8f90bfa44e98/lib/terminal-plus.coffee
7
56
jeremyramin/terminal-plus:lib/terminal-plus.coffee:1:completion
completion
module.exports = TerminalPlus = terminalPlusPanel: null subscriptions: null activate: (state) -> @terminalPlusPanel = new TerminalPlusPanel(state.terminalPlusPanelState) @subscriptions = new CompositeDisposable # # Register command that toggles this view # @subscriptions.add atom.commands.add 'a...
description: 'Select a theme for the terminal.' type: 'string' default: 'standard' enum: [ 'standard', 'inverse', 'grass', 'homebrew', 'man-page', 'novel', 'ocean', 'pro', 'red', ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/terminal-plus.coffee
MIT
15a422034df6c2f5a0d2b180007d8f90bfa44e98
478
https://github.com/jeremyramin/terminal-plus/blob/15a422034df6c2f5a0d2b180007d8f90bfa44e98/lib/terminal-plus.coffee
7
56
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:raw_corpus
raw_corpus
XMLWriterBase = require './XMLWriterBase' # Prints XML nodes as plain text module.exports = class XMLStringWriter extends XMLWriterBase # Initializes a new instance of `XMLStringWriter` # # `options.pretty` pretty prints the result # `options.indent` indentation string # `options.newline` newline sequence ...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLStringWriter.coffee
1
30
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLWriterBase = require './XMLWriterBase' # Prints XML nodes as plain text module.exports = class XMLStringWriter extends XMLWriterBase # Initializes a new instance of `XMLStringWriter` # # `options.pretty` pretty prints the result # `options.indent` i...
var XMLStringWriter, XMLWriterBase; XMLWriterBase = require('./XMLWriterBase'); // Prints XML nodes as plain text module.exports = XMLStringWriter = class XMLStringWriter extends XMLWriterBase { // Initializes a new instance of `XMLStringWriter` // `options.pretty` pretty prints the result // `options.indent` ...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLStringWriter.coffee
1
30
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLStringWriter, XMLWriterBase; XMLWriterBase = require('./XMLWriterBase'); // Prints XML nodes as plain text module.exports = XMLStringWriter = class XMLStringWriter extends XMLWriterBase { // Initializes a new instance of `XMLStringWriter` // `options....
XMLWriterBase = require './XMLWriterBase' # Prints XML nodes as plain text module.exports = class XMLStringWriter extends XMLWriterBase # Initializes a new instance of `XMLStringWriter` # # `options.pretty` pretty prints the result # `options.indent` indentation string # `options.newline` newline sequence ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLStringWriter.coffee
1
30
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:completion
completion
XMLWriterBase = require './XMLWriterBase' # Prints XML nodes as plain text module.exports = class XMLStringWriter extends XMLWriterBase # Initializes a new instance of `XMLStringWriter` # # `options.pretty` pretty prints the result # `options.indent` indentation string # `options.newline` newline sequence ...
constructor: (options) -> super(options) document: (doc, options) -> options = @filterOptions options r = '' for child in doc.children r += @writeChildNode child, options, 0 # remove trailing newline if options.pretty and r.slice(-options.newline.length) == options.newline r = r...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLStringWriter.coffee
1
30
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:raw_corpus
raw_corpus
XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruction = require './XMLProcessingInstruction' XMLDummy = re...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruc...
var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLText, XMLWriterBase; XMLDeclaration = require('./XMLDeclaration'); XMLDocType = require('./XMLDocType'); XMLCData = require('./...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLText, XMLWriterBase; XMLDeclaration = require('./XMLDeclaration'); XMLDoc...
XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruction = require './XMLProcessingInstruction' XMLDummy = re...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:completion
completion
XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruction = require './XMLProcessingInstruction' XMLDummy = re...
# `options.indent` indentation string # `options.newline` newline sequence # `options.offset` a fixed number of indentations to add to every line # `options.allowEmpty` do not self close empty element tags # 'options.dontPrettyTextNodes' if any text is present in node, don't indent or LF # `options.spaceBefor...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:2:raw_corpus
raw_corpus
if options.pretty and r.slice(-options.newline.length) == options.newline r = r.slice(0, -options.newline.length) return r
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if options.pretty and r.slice(-options.newline.length) == options.newline r = r.slice(0, -options.newline.length) return r ```
var r; if (options.pretty && r.slice(-options.newline.length) === options.newline) { r = r.slice(0, -options.newline.length); } return r;
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var r; if (options.pretty && r.slice(-options.newline.length) === options.newline) { r = r.slice(0, -options.newline.length); } return r; ```
if options.pretty and r.slice(-options.newline.length) == options.newline r = r.slice(0, -options.newline.length) return r
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
1c8ced424fd8b8fc89fea7525e9c984adea19bf1
926
https://github.com/oozcitak/xmlbuilder-js/blob/1c8ced424fd8b8fc89fea7525e9c984adea19bf1/src/XMLStringWriter.coffee
51
54
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:raw_corpus
raw_corpus
XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruction = require './XMLProcessingInstruction' XMLDummy = re...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
334fb0954039c73163d22d27c2641ff74f2a63d7
926
https://github.com/oozcitak/xmlbuilder-js/blob/334fb0954039c73163d22d27c2641ff74f2a63d7/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruc...
var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLText, XMLWriterBase; XMLDeclaration = require('./XMLDeclaration'); XMLDocType = require('./XMLDocType'); XMLCData = require('./...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
334fb0954039c73163d22d27c2641ff74f2a63d7
926
https://github.com/oozcitak/xmlbuilder-js/blob/334fb0954039c73163d22d27c2641ff74f2a63d7/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLText, XMLWriterBase; XMLDeclaration = require('./XMLDeclaration'); XMLDoc...
XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruction = require './XMLProcessingInstruction' XMLDummy = re...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
334fb0954039c73163d22d27c2641ff74f2a63d7
926
https://github.com/oozcitak/xmlbuilder-js/blob/334fb0954039c73163d22d27c2641ff74f2a63d7/src/XMLStringWriter.coffee
1
50
oozcitak/xmlbuilder-js:src/XMLStringWriter.coffee:1:completion
completion
XMLDeclaration = require './XMLDeclaration' XMLDocType = require './XMLDocType' XMLCData = require './XMLCData' XMLComment = require './XMLComment' XMLElement = require './XMLElement' XMLRaw = require './XMLRaw' XMLText = require './XMLText' XMLProcessingInstruction = require './XMLProcessingInstruction' XMLDummy = re...
# `options.indent` indentation string # `options.newline` newline sequence # `options.offset` a fixed number of indentations to add to every line # `options.allowEmpty` do not self close empty element tags # 'options.dontPrettyTextNodes' if any text is present in node, don't indent or LF # `options.spaceBefor...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLStringWriter.coffee
MIT
334fb0954039c73163d22d27c2641ff74f2a63d7
926
https://github.com/oozcitak/xmlbuilder-js/blob/334fb0954039c73163d22d27c2641ff74f2a63d7/src/XMLStringWriter.coffee
1
50
abe33/atom-pigments:lib/color-buffer-element.coffee:1:raw_corpus
raw_corpus
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @us...
var ColorBufferElement; ColorBufferElement = class ColorBufferElement extends HTMLElement { createdCallback() { [this.editorScrollLeft, this.editorScrollTop] = [0, 0]; this.emitter = new Emitter(); this.subscriptions = new CompositeDisposable(); this.shadowRoot = this.createShadowRoot(); this.dis...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorBufferElement; ColorBufferElement = class ColorBufferElement extends HTMLElement { createdCallback() { [this.editorScrollLeft, this.editorScrollTop] = [0, 0]; this.emitter = new Emitter(); this.subscriptions = new CompositeDisposable(); ...
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:completion
completion
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
onDidUpdate: (callback) -> @emitter.on 'did-update', callback getModel: -> @colorBuffer setModel: (@colorBuffer) -> {@editor} = @colorBuffer return if @editor.isDestroyed() @editorElement = atom.views.getView(@editor) @colorBuffer.initialize().then => @updateMarkers() @subscriptions.add ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:2:raw_corpus
raw_corpus
@subscriptions.add @editor.onDidAddCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidRemoveCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidChangeCursorPosition => @requestSelectionUpdate() @subscriptions.add @editor.onDidAddSelection => @requestS...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
54
103
abe33/atom-pigments:lib/color-buffer-element.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @subscriptions.add @editor.onDidAddCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidRemoveCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidChangeCursorPosition => @requestSelectionUpdate() @subsc...
this.subscriptions.add(this.editor.onDidAddCursor(() => { return this.requestSelectionUpdate(); })); this.subscriptions.add(this.editor.onDidRemoveCursor(() => { return this.requestSelectionUpdate(); })); this.subscriptions.add(this.editor.onDidChangeCursorPosition(() => { return this.requestSelectionUpdate(); ...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
54
103
abe33/atom-pigments:lib/color-buffer-element.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.subscriptions.add(this.editor.onDidAddCursor(() => { return this.requestSelectionUpdate(); })); this.subscriptions.add(this.editor.onDidRemoveCursor(() => { return this.requestSelectionUpdate(); })); this.subscriptions.add(this.editor.onDidChangeCursorPo...
@subscriptions.add @editor.onDidAddCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidRemoveCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidChangeCursorPosition => @requestSelectionUpdate() @subscriptions.add @editor.onDidAddSelection => @requestS...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
54
103
abe33/atom-pigments:lib/color-buffer-element.coffee:2:completion
completion
@subscriptions.add @editor.onDidAddCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidRemoveCursor => @requestSelectionUpdate() @subscriptions.add @editor.onDidChangeCursorPosition => @requestSelectionUpdate() @subscriptions.add @editor.onDidAddSelection => @requestS...
@subscriptions.add @editorElement.onDidAttach => @attach() @subscriptions.add @editorElement.onDidDetach => @detach() attach: -> return if @parentNode? return unless @editorElement? @getEditorRoot().querySelector('.lines')?.appendChild(this) detach: -> return unless @parentNode? @parentNo...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
54
103
abe33/atom-pigments:lib/color-buffer-element.coffee:3:raw_corpus
raw_corpus
editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker @releaseMarkerElement(marker) @updateMarkers...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker ...
var indexOf = [].indexOf; ({ editorConfigChanged: function() { if (this.parentNode == null) { return; } this.usedMarkers.forEach((marker) => { if (marker.colorMarker != null) { return marker.render(); } else { console.warn("A marker view was found in the used instance po...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var indexOf = [].indexOf; ({ editorConfigChanged: function() { if (this.parentNode == null) { return; } this.usedMarkers.forEach((marker) => { if (marker.colorMarker != null) { return marker.render(); } else { consol...
editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker @releaseMarkerElement(marker) @updateMarkers...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:3:completion
completion
editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker @releaseMarkerElement(marker) @updateMarkers...
view.classList.remove('hidden') @hideMarkerIfInSelection(marker, view) else console.warn "A color marker was found in the displayed markers array without an associated view", marker updateMarkers: -> return if @editor.isDestroyed() markers = @colorBuffer.findValidColorMarkers({ i...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:4:raw_corpus
raw_corpus
else view = new ColorMarkerElement view.onDidRelease ({marker}) => @displayedMarkers.splice(@displayedMarkers.indexOf(marker), 1) @releaseMarkerView(marker) @shadowRoot.appendChild view view.setModel(marker) @hideMarkerIfInSelection(marker, view) @usedMarkers.push(view) ...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
154
197
abe33/atom-pigments:lib/color-buffer-element.coffee:4:completion
completion
else view = new ColorMarkerElement view.onDidRelease ({marker}) => @displayedMarkers.splice(@displayedMarkers.indexOf(marker), 1) @releaseMarkerView(marker) @shadowRoot.appendChild view view.setModel(marker) @hideMarkerIfInSelection(marker, view) @usedMarkers.push(view) ...
releaseMarkerElement: (view) -> @usedMarkers.splice(@usedMarkers.indexOf(view), 1) view.release(false) unless view.isReleased() @unusedMarkers.push(view) releaseAllMarkerViews: -> view.destroy() for view in @usedMarkers view.destroy() for view in @unusedMarkers @usedMarkers = [] @unusedM...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
154
197
abe33/atom-pigments:lib/color-buffer-element.coffee:6:raw_corpus
raw_corpus
ColorBufferElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) -> element = new ColorBufferElement element.setModel(model) element
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
204
208
abe33/atom-pigments:lib/color-buffer-element.coffee:6:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ColorBufferElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) -> element = new ColorBufferElement element.setModel(model) element ```
ColorBufferElement.registerViewProvider = function(modelClass) { return atom.views.addViewProvider(modelClass, function(model) { var element; element = new ColorBufferElement(); element.setModel(model); return element; }); };
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
204
208
abe33/atom-pigments:lib/color-buffer-element.coffee:6:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ColorBufferElement.registerViewProvider = function(modelClass) { return atom.views.addViewProvider(modelClass, function(model) { var element; element = new ColorBufferElement(); element.setModel(model); return element; }); }; ```
ColorBufferElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) -> element = new ColorBufferElement element.setModel(model) element
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
204
208
abe33/atom-pigments:lib/color-buffer-element.coffee:6:completion
completion
ColorBufferElement.registerViewProvider = (modelClass) -> atom.views.addViewProvider modelClass, (model) ->
element = new ColorBufferElement element.setModel(model) element
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
ce94dc11f16e074677c57a5e4e86fc77914bc6aa
518
https://github.com/abe33/atom-pigments/blob/ce94dc11f16e074677c57a5e4e86fc77914bc6aa/lib/color-buffer-element.coffee
204
208
abe33/atom-pigments:lib/color-buffer-element.coffee:1:raw_corpus
raw_corpus
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
5a3100efab71775da4e3c622cb11ac0e77756d4d
518
https://github.com/abe33/atom-pigments/blob/5a3100efab71775da4e3c622cb11ac0e77756d4d/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @us...
var ColorBufferElement; ColorBufferElement = class ColorBufferElement extends HTMLElement { createdCallback() { [this.editorScrollLeft, this.editorScrollTop] = [0, 0]; this.emitter = new Emitter(); this.subscriptions = new CompositeDisposable(); this.shadowRoot = this.createShadowRoot(); this.dis...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
5a3100efab71775da4e3c622cb11ac0e77756d4d
518
https://github.com/abe33/atom-pigments/blob/5a3100efab71775da4e3c622cb11ac0e77756d4d/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorBufferElement; ColorBufferElement = class ColorBufferElement extends HTMLElement { createdCallback() { [this.editorScrollLeft, this.editorScrollTop] = [0, 0]; this.emitter = new Emitter(); this.subscriptions = new CompositeDisposable(); ...
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
5a3100efab71775da4e3c622cb11ac0e77756d4d
518
https://github.com/abe33/atom-pigments/blob/5a3100efab71775da4e3c622cb11ac0e77756d4d/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:completion
completion
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
onDidUpdate: (callback) -> @emitter.on 'did-update', callback getModel: -> @colorBuffer setModel: (@colorBuffer) -> {@editor} = @colorBuffer return if @editor.isDestroyed() @editorElement = atom.views.getView(@editor) @colorBuffer.initialize().then => @updateMarkers() @subscriptions.add ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
5a3100efab71775da4e3c622cb11ac0e77756d4d
518
https://github.com/abe33/atom-pigments/blob/5a3100efab71775da4e3c622cb11ac0e77756d4d/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:3:raw_corpus
raw_corpus
editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker @releaseMarkerElement(marker) @updateMarkers...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
dfcb055d9d0ad417b3bee53a5e7dfadf0586b023
518
https://github.com/abe33/atom-pigments/blob/dfcb055d9d0ad417b3bee53a5e7dfadf0586b023/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker ...
var indexOf = [].indexOf; ({ editorConfigChanged: function() { if (this.parentNode == null) { return; } this.usedMarkers.forEach((marker) => { if (marker.colorMarker != null) { return marker.render(); } else { console.warn("A marker view was found in the used instance po...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
dfcb055d9d0ad417b3bee53a5e7dfadf0586b023
518
https://github.com/abe33/atom-pigments/blob/dfcb055d9d0ad417b3bee53a5e7dfadf0586b023/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var indexOf = [].indexOf; ({ editorConfigChanged: function() { if (this.parentNode == null) { return; } this.usedMarkers.forEach((marker) => { if (marker.colorMarker != null) { return marker.render(); } else { consol...
editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker @releaseMarkerElement(marker) @updateMarkers...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
dfcb055d9d0ad417b3bee53a5e7dfadf0586b023
518
https://github.com/abe33/atom-pigments/blob/dfcb055d9d0ad417b3bee53a5e7dfadf0586b023/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:3:completion
completion
editorConfigChanged: -> return unless @parentNode? @usedMarkers.forEach (marker) => if marker.colorMarker? marker.render() else console.warn "A marker view was found in the used instance pool while having a null model", marker @releaseMarkerElement(marker) @updateMarkers...
view.classList.remove('hidden') @hideMarkerIfInSelection(marker, view) else console.warn "A color marker was found in the displayed markers array without an associated view", marker updateMarkers: -> return if @editor.isDestroyed() markers = @colorBuffer.findValidColorMarkers({ i...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
dfcb055d9d0ad417b3bee53a5e7dfadf0586b023
518
https://github.com/abe33/atom-pigments/blob/dfcb055d9d0ad417b3bee53a5e7dfadf0586b023/lib/color-buffer-element.coffee
104
153
abe33/atom-pigments:lib/color-buffer-element.coffee:1:raw_corpus
raw_corpus
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @us...
var ColorBufferElement; ColorBufferElement = class ColorBufferElement extends HTMLElement { createdCallback() { [this.editorScrollLeft, this.editorScrollTop] = [0, 0]; this.emitter = new Emitter(); this.subscriptions = new CompositeDisposable(); this.shadowRoot = this.createShadowRoot(); this.dis...
CoffeeScript
JavaScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ColorBufferElement; ColorBufferElement = class ColorBufferElement extends HTMLElement { createdCallback() { [this.editorScrollLeft, this.editorScrollTop] = [0, 0]; this.emitter = new Emitter(); this.subscriptions = new CompositeDisposable(); ...
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
JavaScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-buffer-element.coffee
4
53
abe33/atom-pigments:lib/color-buffer-element.coffee:1:completion
completion
class ColorBufferElement extends HTMLElement createdCallback: -> [@editorScrollLeft, @editorScrollTop] = [0, 0] @emitter = new Emitter @subscriptions = new CompositeDisposable @shadowRoot = @createShadowRoot() @displayedMarkers = [] @usedMarkers = [] @unusedMarkers = [] @viewsByMarker...
onDidUpdate: (callback) -> @emitter.on 'did-update', callback getModel: -> @colorBuffer setModel: (@colorBuffer) -> {@editor} = @colorBuffer return if @editor.isDestroyed() @editorElement = atom.views.getView(@editor) @colorBuffer.initialize().then => @updateMarkers() @subscriptions.add ...
CoffeeScript
CoffeeScript
abe33/atom-pigments
lib/color-buffer-element.coffee
MIT
6b9b5368e8a617bbb73ccdb1da96350aba9fd444
518
https://github.com/abe33/atom-pigments/blob/6b9b5368e8a617bbb73ccdb1da96350aba9fd444/lib/color-buffer-element.coffee
4
53
jianliaoim/talk-os:talk-api2x/server/controllers/check.coffee:1:raw_corpus
raw_corpus
Promise = require 'bluebird' Err = require 'err1st' config = require 'config' app = require '../server' redis = require '../components/redis' limbo = require 'limbo' { UserModel } = limbo.use 'talk' module.exports = checkController = app.controller 'check', -> @action 'ping', (req, res, callback) -> return...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/check.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/check.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/controllers/check.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Promise = require 'bluebird' Err = require 'err1st' config = require 'config' app = require '../server' redis = require '../components/redis' limbo = require 'limbo' { UserModel } = limbo.use 'talk' module.exports = checkController = app.controller 'check',...
var Err, Promise, UserModel, app, checkController, config, limbo, redis; Promise = require('bluebird'); Err = require('err1st'); config = require('config'); app = require('../server'); redis = require('../components/redis'); limbo = require('limbo'); ({UserModel} = limbo.use('talk')); module.exports = checkCont...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/controllers/check.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/check.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/controllers/check.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Err, Promise, UserModel, app, checkController, config, limbo, redis; Promise = require('bluebird'); Err = require('err1st'); config = require('config'); app = require('../server'); redis = require('../components/redis'); limbo = require('limbo'); ({UserM...
Promise = require 'bluebird' Err = require 'err1st' config = require 'config' app = require '../server' redis = require '../components/redis' limbo = require 'limbo' { UserModel } = limbo.use 'talk' module.exports = checkController = app.controller 'check', -> @action 'ping', (req, res, callback) -> return...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/check.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/check.coffee
1
26
jianliaoim/talk-os:talk-api2x/server/controllers/check.coffee:1:completion
completion
Promise = require 'bluebird' Err = require 'err1st' config = require 'config' app = require '../server' redis = require '../components/redis' limbo = require 'limbo' { UserModel } = limbo.use 'talk'
module.exports = checkController = app.controller 'check', -> @action 'ping', (req, res, callback) -> return callback(new Err('PARAMS_INVALID', 'checkToken')) unless req.query.checkToken is config.checkToken # Db state $dbState = UserModel.findOneAsync() # Redis state $redisState = redis.setexAs...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/controllers/check.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/controllers/check.coffee
1
26
twilson63/express-coffee:src/config/index.coffee:1:raw_corpus
raw_corpus
#### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG = true exports.DEBUG_WARN = true exports.DEBUG_ERROR = true exports.DEBUG_CLIENT = tr...
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG = true exports.DEBUG_WARN = true e...
//### Config file // Sets application config parameters depending on `env` name exports.setEnvironment = function(env) { console.log(`set app environment: ${env}`); switch (env) { case "development": exports.DEBUG_LOG = true; exports.DEBUG_WARN = true; exports.DEBUG_ERROR = true; exports...
CoffeeScript
JavaScript
twilson63/express-coffee
src/config/index.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //### Config file // Sets application config parameters depending on `env` name exports.setEnvironment = function(env) { console.log(`set app environment: ${env}`); switch (env) { case "development": exports.DEBUG_LOG = true; exports.DEBUG_WARN ...
#### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG = true exports.DEBUG_WARN = true exports.DEBUG_ERROR = true exports.DEBUG_CLIENT = tr...
JavaScript
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:completion
completion
#### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG = true exports.DEBUG_WARN = true exports.DEBUG_ERROR = true exports.DEBUG_CLIENT = tr...
exports.DB_PASS = 'root' when "testing" exports.DEBUG_LOG = true exports.DEBUG_WARN = true exports.DEBUG_ERROR = true exports.DEBUG_CLIENT = true when "production" exports.DEBUG_LOG = false exports.DEBUG_WARN = false exports.DEBUG_ERROR = true exports.DEBUG_CLIE...
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
baedde8ee076605eeaf56dd50eb72fe6d5621f8e
622
https://github.com/twilson63/express-coffee/blob/baedde8ee076605eeaf56dd50eb72fe6d5621f8e/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:raw_corpus
raw_corpus
#### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG=true exports.DEBUG_WARN=true exports.DEBUG_ERROR=true exports.DEBUG_CLIENT=true exports.DB_HOST = ...
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
5d7c72c1ecb1d5e13c087189bde1aa7977012ff2
622
https://github.com/twilson63/express-coffee/blob/5d7c72c1ecb1d5e13c087189bde1aa7977012ff2/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript #### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG=true exports.DEBUG_WARN=true exports.DEBUG_ERRO...
//### Config file // Sets application config parameters depending on `env` name exports.setEnvironment = function(env) { console.log(`set app environment: ${env}`); switch (env) { case "development": exports.DEBUG_LOG = true; exports.DEBUG_WARN = true; exports.DEBUG_ERROR = true; exports...
CoffeeScript
JavaScript
twilson63/express-coffee
src/config/index.coffee
MIT
5d7c72c1ecb1d5e13c087189bde1aa7977012ff2
622
https://github.com/twilson63/express-coffee/blob/5d7c72c1ecb1d5e13c087189bde1aa7977012ff2/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //### Config file // Sets application config parameters depending on `env` name exports.setEnvironment = function(env) { console.log(`set app environment: ${env}`); switch (env) { case "development": exports.DEBUG_LOG = true; exports.DEBUG_WARN ...
#### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG=true exports.DEBUG_WARN=true exports.DEBUG_ERROR=true exports.DEBUG_CLIENT=true exports.DB_HOST = ...
JavaScript
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
5d7c72c1ecb1d5e13c087189bde1aa7977012ff2
622
https://github.com/twilson63/express-coffee/blob/5d7c72c1ecb1d5e13c087189bde1aa7977012ff2/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:completion
completion
#### Config file # Sets application config parameters depending on `env` name exports.setEnvironment = (env) -> console.log "set app environment: #{env}" switch(env) when "development" exports.DEBUG_LOG=true exports.DEBUG_WARN=true exports.DEBUG_ERROR=true exports.DEBUG_CLIENT=true exports.DB_HOST = ...
exports.DB_PASS = 'root' when "testing" exports.DEBUG_LOG=true exports.DEBUG_WARN=true exports.DEBUG_ERROR=true exports.DEBUG_CLIENT=true when "production" exports.DEBUG_LOG=false exports.DEBUG_WARN=false exports.DEBUG_ERROR=true exports.DEBUG_CLIENT=false else console.log "environmen...
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
5d7c72c1ecb1d5e13c087189bde1aa7977012ff2
622
https://github.com/twilson63/express-coffee/blob/5d7c72c1ecb1d5e13c087189bde1aa7977012ff2/src/config/index.coffee
1
29
twilson63/express-coffee:src/config/index.coffee:1:raw_corpus
raw_corpus
# === config file for the whole APP === ### exports.DEBUG_LOG: log debug info when nothing is wrong exports.DEBUG_WARN: when there is an abnormality caused by user, e.g. a malicious URL exports.DEBUG_ERROR: things should never happen. like a DB error exports.DEBUG_CLIENT: print debug info to browser's console things ...
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
8ef81eb8de792247f17b6806e8f878a297c09d13
622
https://github.com/twilson63/express-coffee/blob/8ef81eb8de792247f17b6806e8f878a297c09d13/src/config/index.coffee
1
38
twilson63/express-coffee:src/config/index.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # === config file for the whole APP === ### exports.DEBUG_LOG: log debug info when nothing is wrong exports.DEBUG_WARN: when there is an abnormality caused by user, e.g. a malicious URL exports.DEBUG_ERROR: things should never happen. like a DB error exports.DE...
// === config file for the whole APP === /* exports.DEBUG_LOG: log debug info when nothing is wrong exports.DEBUG_WARN: when there is an abnormality caused by user, e.g. a malicious URL exports.DEBUG_ERROR: things should never happen. like a DB error exports.DEBUG_CLIENT: print debug info to browser's console things p...
CoffeeScript
JavaScript
twilson63/express-coffee
src/config/index.coffee
MIT
8ef81eb8de792247f17b6806e8f878a297c09d13
622
https://github.com/twilson63/express-coffee/blob/8ef81eb8de792247f17b6806e8f878a297c09d13/src/config/index.coffee
1
38
twilson63/express-coffee:src/config/index.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // === config file for the whole APP === /* exports.DEBUG_LOG: log debug info when nothing is wrong exports.DEBUG_WARN: when there is an abnormality caused by user, e.g. a malicious URL exports.DEBUG_ERROR: things should never happen. like a DB error exports.DEBUG...
# === config file for the whole APP === ### exports.DEBUG_LOG: log debug info when nothing is wrong exports.DEBUG_WARN: when there is an abnormality caused by user, e.g. a malicious URL exports.DEBUG_ERROR: things should never happen. like a DB error exports.DEBUG_CLIENT: print debug info to browser's console things ...
JavaScript
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
8ef81eb8de792247f17b6806e8f878a297c09d13
622
https://github.com/twilson63/express-coffee/blob/8ef81eb8de792247f17b6806e8f878a297c09d13/src/config/index.coffee
1
38
twilson63/express-coffee:src/config/index.coffee:1:completion
completion
# === config file for the whole APP === ### exports.DEBUG_LOG: log debug info when nothing is wrong exports.DEBUG_WARN: when there is an abnormality caused by user, e.g. a malicious URL exports.DEBUG_ERROR: things should never happen. like a DB error exports.DEBUG_CLIENT: print debug info to browser's console things ...
exports.DB_HOST = 'localhost' exports.DB_PORT = "3306" exports.DB_NAME = 'mvc_example' exports.DB_USER = 'root' exports.DB_PASS = 'root' when "testing" exports.DEBUG_LOG=true exports.DEBUG_WARN=true exports.DEBUG_ERROR=true exports.DEBUG_CLIENT=true when "production" exports.DEBUG_LOG=f...
CoffeeScript
CoffeeScript
twilson63/express-coffee
src/config/index.coffee
MIT
8ef81eb8de792247f17b6806e8f878a297c09d13
622
https://github.com/twilson63/express-coffee/blob/8ef81eb8de792247f17b6806e8f878a297c09d13/src/config/index.coffee
1
38
nicolaskruchten/pivottable:pivot.fr.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
f1dfb4e4e306617d89ee0c39f321c387bf726a9e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "Filtrer les valeurs" totals: "Totaux" vs: "sur" by: "par" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.countUnique(frFmtInt) "Liste de valeurs uniques": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
f1dfb4e4e306617d89ee0c39f321c387bf726a9e
4,440
https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
80455c7be5bac8542a2bfa77c10f41a988649134
4,440
https://github.com/nicolaskruchten/pivottable/blob/80455c7be5bac8542a2bfa77c10f41a988649134/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "Filtrer les valeurs" totals: "Totaux" vs: "sur" by: "par" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.countUnique(frFmtInt) "Liste de valeurs uniques": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
80455c7be5bac8542a2bfa77c10f41a988649134
4,440
https://github.com/nicolaskruchten/pivottable/blob/80455c7be5bac8542a2bfa77c10f41a988649134/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.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
pivot.fr.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.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
pivot.fr.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "Filtrer les valeurs" totals: "Totaux" vs: "sur" by: "par" aggregators: "Nombre": tpl.count(frFmtInt) "Nombre de valeurs uniques": tpl.countUnique(frFmtInt) "Liste de valeurs uniques": ...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
c08180f08f6d241cc14602623c22eae7a9d69235
4,440
https://github.com/nicolaskruchten/pivottable/blob/c08180f08f6d241cc14602623c22eae7a9d69235/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.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 ) (jQuery) -...
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.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 bro...
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 b...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.fr.coffee
1
50
nicolaskruchten/pivottable:pivot.fr.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 def...
(callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery ) (jQuery) -...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
pivot.fr.coffee
MIT
59fef8bd5b78325d419e21fae8e770b1b6c372b1
4,440
https://github.com/nicolaskruchten/pivottable/blob/59fef8bd5b78325d419e21fae8e770b1b6c372b1/pivot.fr.coffee
1
50