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
Glavin001/atom-beautify:src/beautifiers/latex-beautify.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript //Beautifier does not currently have a method for creating directories, so we call temp directly. ({ beautify: function(text, language, options) { return new this.Promise(function(resolve, reject) { return temp.mkdir("latex", function(err, dirPath) { ...
#Beautifier does not currently have a method for creating directories, so we call temp directly. beautify: (text, language, options) -> new @Promise((resolve, reject) -> temp.mkdir("latex", (err, dirPath) -> return reject(err) if err resolve(dirPath) ) ) .then((dirPath)=> ...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/latex-beautify.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/latex-beautify.coffee
51
74
Glavin001/atom-beautify:src/beautifiers/latex-beautify.coffee:2:completion
completion
#Beautifier does not currently have a method for creating directories, so we call temp directly. beautify: (text, language, options) -> new @Promise((resolve, reject) -> temp.mkdir("latex", (err, dirPath) -> return reject(err) if err resolve(dirPath) ) ) .then((dirPath)=> ...
"-s" #Silent mode "-l" #Tell latexindent we have a local configuration file "-c=" + dirPath #Tell latexindent to place the log file in this directory @texFile @texFile ], help: { link: "https://github.com/cmhughes/latexindent.pl" } ) .the...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/latex-beautify.coffee
MIT
ba2198675cbcc1ecd05f18e28e97133cdd2d5319
1,503
https://github.com/Glavin001/atom-beautify/blob/ba2198675cbcc1ecd05f18e28e97133cdd2d5319/src/beautifiers/latex-beautify.coffee
51
74
jianliaoim/talk-os:talk-web/client/app/message-receipt-status.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'message-receipt-status' mixins: [PureRenderMixin] propTypes: message: T.instanceOf(Immutable.Map) getInitialState: -> showDropdown: false getDropdownBaseArea: -> if @state.showDropdown and @refs.root @refs.root.getBoundingClientRect() e...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/message-receipt-status.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/message-receipt-status.coffee
20
69
jianliaoim/talk-os:talk-web/client/app/message-receipt-status.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'message-receipt-status' mixins: [PureRenderMixin] propTypes: message: T.instanceOf(Immutable.Map) getInitialState: -> showDropdown: false getDropdownBaseArea: -> if @state.showDropdown and ...
module.exports = React.createClass({ displayName: 'message-receipt-status', mixins: [PureRenderMixin], propTypes: { message: T.instanceOf(Immutable.Map) }, getInitialState: function() { return { showDropdown: false }; }, getDropdownBaseArea: function() { if (this.state.showDropdown &...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/message-receipt-status.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/message-receipt-status.coffee
20
69
jianliaoim/talk-os:talk-web/client/app/message-receipt-status.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'message-receipt-status', mixins: [PureRenderMixin], propTypes: { message: T.instanceOf(Immutable.Map) }, getInitialState: function() { return { showDropdown: false }; }, getDropdownB...
module.exports = React.createClass displayName: 'message-receipt-status' mixins: [PureRenderMixin] propTypes: message: T.instanceOf(Immutable.Map) getInitialState: -> showDropdown: false getDropdownBaseArea: -> if @state.showDropdown and @refs.root @refs.root.getBoundingClientRect() e...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/message-receipt-status.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/message-receipt-status.coffee
20
69
jianliaoim/talk-os:talk-web/client/app/message-receipt-status.coffee:1:completion
completion
module.exports = React.createClass displayName: 'message-receipt-status' mixins: [PureRenderMixin] propTypes: message: T.instanceOf(Immutable.Map) getInitialState: -> showDropdown: false getDropdownBaseArea: -> if @state.showDropdown and @refs.root @refs.root.getBoundingClientRect() e...
positionAlgorithm: (area) -> if (area.left + 240) > window.innerWidth left = area.left - 220 else left = area.left if (area.top + 320) > window.innerHeight left: area.left - 224 bottom: window.innerHeight - area.top else left: area.left - 224 top: area.bottom rende...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/message-receipt-status.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/message-receipt-status.coffee
20
69
jianliaoim/talk-os:talk-web/client/app/message-receipt-status.coffee:2:raw_corpus
raw_corpus
contacts = query.contactsBy(recorder.getState(), _teamId) mentions = @props.message.get('mentions') receiptors = @props.message.get('receiptors') contacts = contacts .filter (contact) -> mentions.includes(contact.get('_id')) .sort orders.byPinyin .sortBy (contact) -> -recei...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/message-receipt-status.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/message-receipt-status.coffee
70
118
jianliaoim/talk-os:talk-web/client/app/message-receipt-status.coffee:2:completion
completion
contacts = query.contactsBy(recorder.getState(), _teamId) mentions = @props.message.get('mentions') receiptors = @props.message.get('receiptors') contacts = contacts .filter (contact) -> mentions.includes(contact.get('_id')) .sort orders.byPinyin .sortBy (contact) -> -recei...
"#{lang.getText('read-by')} (#{receiptors.size}/#{mentions.size})" div className: 'thin-scroll', contacts render: -> return null if not @props.message mentions = @props.message.get('mentions') or Immutable.List() return null if mentions.size is 0 _userId = query.userId(recorder.getSt...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/message-receipt-status.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/message-receipt-status.coffee
70
118
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_blocks.coffee:1:raw_corpus
raw_corpus
# Basic blocks. results: [1, 2, 3].map (x) -> x * x ok results.join(' ') is '1 4 9' # Chained blocks, with proper indentation levels: results: [] counter: { tick: (func) -> results.push func() this } counter .tick -> 3 .tick -> 2 .tick -> 1 ok results.join(' ') is '3 2 1'
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_blocks.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_blocks.coffee
1
25
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_blocks.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Basic blocks. results: [1, 2, 3].map (x) -> x * x ok results.join(' ') is '1 4 9' # Chained blocks, with proper indentation levels: results: [] counter: { tick: (func) -> results.push func() this } counter .tick -> 3 .tick -> 2 .t...
// Basic blocks. ({ results: [1, 2, 3].map(function(x) { return x * x; }) }); ok(results.join(' ') === '1 4 9'); ({ // Chained blocks, with proper indentation levels: results: [], counter: { tick: function(func) { results.push(func()); return this; } } }); counter.tick(function() ...
CoffeeScript
JavaScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_blocks.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_blocks.coffee
1
25
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_blocks.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Basic blocks. ({ results: [1, 2, 3].map(function(x) { return x * x; }) }); ok(results.join(' ') === '1 4 9'); ({ // Chained blocks, with proper indentation levels: results: [], counter: { tick: function(func) { results.push(func()); ...
# Basic blocks. results: [1, 2, 3].map (x) -> x * x ok results.join(' ') is '1 4 9' # Chained blocks, with proper indentation levels: results: [] counter: { tick: (func) -> results.push func() this } counter .tick -> 3 .tick -> 2 .tick -> 1 ok results.join(' ') is '3 2 1'
JavaScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_blocks.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_blocks.coffee
1
25
twilson63/express-coffee:lib/coffee/lib/coffee-script/test/test_blocks.coffee:1:completion
completion
# Basic blocks. results: [1, 2, 3].map (x) -> x * x ok results.join(' ') is '1 4 9' # Chained blocks, with proper indentation levels: results: [] counter: { tick: (func) ->
results.push func() this } counter .tick -> 3 .tick -> 2 .tick -> 1 ok results.join(' ') is '3 2 1'
CoffeeScript
CoffeeScript
twilson63/express-coffee
lib/coffee/lib/coffee-script/test/test_blocks.coffee
MIT
971837f7d7a5e96cf5a5fdb52e52748060ed2c68
622
https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/test/test_blocks.coffee
1
25
JoelBesada/activate-power-mode:lib/plugin-list.coffee:1:raw_corpus
raw_corpus
SelectListView = require "atom-select-list" module.exports = init: (pluginRegistry) -> @pluginRegistry = pluginRegistry @selectListView = new SelectListView({ emptyMessage: 'No plugins in the registry.', itemsClassList: ['mark-active'], items: [], filterKeyForItem: (item) -> item.titl...
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-list.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript SelectListView = require "atom-select-list" module.exports = init: (pluginRegistry) -> @pluginRegistry = pluginRegistry @selectListView = new SelectListView({ emptyMessage: 'No plugins in the registry.', itemsClassList: ['mark-active'], ...
var SelectListView; SelectListView = require("atom-select-list"); module.exports = { init: function(pluginRegistry) { this.pluginRegistry = pluginRegistry; this.selectListView = new SelectListView({ emptyMessage: 'No plugins in the registry.', itemsClassList: ['mark-active'], items: [], ...
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-list.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SelectListView; SelectListView = require("atom-select-list"); module.exports = { init: function(pluginRegistry) { this.pluginRegistry = pluginRegistry; this.selectListView = new SelectListView({ emptyMessage: 'No plugins in the registry.', ...
SelectListView = require "atom-select-list" module.exports = init: (pluginRegistry) -> @pluginRegistry = pluginRegistry @selectListView = new SelectListView({ emptyMessage: 'No plugins in the registry.', itemsClassList: ['mark-active'], items: [], filterKeyForItem: (item) -> item.titl...
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-list.coffee:1:completion
completion
SelectListView = require "atom-select-list" module.exports = init: (pluginRegistry) -> @pluginRegistry = pluginRegistry @selectListView = new SelectListView({ emptyMessage: 'No plugins in the registry.', itemsClassList: ['mark-active'], items: [], filterKeyForItem: (item) -> item.titl...
dispose: -> @cancel() @selectListView.destroy() cancel: -> if @panel? @panel.destroy() @panel = null if @previouslyFocusedElement @previouslyFocusedElement.focus() @previouslyFocusedElement = null attach: -> @previouslyFocusedElement = document.activeElement if not @p...
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
1
50
JoelBesada/activate-power-mode:lib/plugin-list.coffee:2:raw_corpus
raw_corpus
for code, plugin of @pluginRegistry.plugins plugins.push({ code: code, title: if plugin.title then plugin.title else code, description: plugin.description image: plugin.image }) @selectListView.update({items: plugins}) @attach()
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
51
59
JoelBesada/activate-power-mode:lib/plugin-list.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript for code, plugin of @pluginRegistry.plugins plugins.push({ code: code, title: if plugin.title then plugin.title else code, description: plugin.description image: plugin.image }) @selectListView.update(...
var code, plugin, ref; ref = this.pluginRegistry.plugins; for (code in ref) { plugin = ref[code]; plugins.push({ code: code, title: plugin.title ? plugin.title : code, description: plugin.description, image: plugin.image }); } this.selectListView.update({ items: plugins }); this.attach();
CoffeeScript
JavaScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
51
59
JoelBesada/activate-power-mode:lib/plugin-list.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var code, plugin, ref; ref = this.pluginRegistry.plugins; for (code in ref) { plugin = ref[code]; plugins.push({ code: code, title: plugin.title ? plugin.title : code, description: plugin.description, image: plugin.image }); } this.selectLis...
for code, plugin of @pluginRegistry.plugins plugins.push({ code: code, title: if plugin.title then plugin.title else code, description: plugin.description image: plugin.image }) @selectListView.update({items: plugins}) @attach()
JavaScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
51
59
JoelBesada/activate-power-mode:lib/plugin-list.coffee:2:completion
completion
for code, plugin of @pluginRegistry.plugins plugins.push({ code: code, title: if plugin.title then plugin.title else code,
description: plugin.description image: plugin.image }) @selectListView.update({items: plugins}) @attach()
CoffeeScript
CoffeeScript
JoelBesada/activate-power-mode
lib/plugin-list.coffee
MIT
ac060c2476ba8b323ca932eda97da9bc0c051b34
3,570
https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin-list.coffee
51
59
node-cache/node-cache:test/test-expire.coffee:1:raw_corpus
raw_corpus
NodeCache = require('../') queriesCache = new NodeCache({ stdTTL: 2, checkperiod: 1 }) idx = 0 _write = -> console.log "test - WRITE:A query:#{idx}" queriesCache.set "query", idx, ( err, success )-> console.log "test - WRITE:B query:#{idx}", err, success idx++ return return _read = -> console.log "test - re...
CoffeeScript
node-cache/node-cache
test/test-expire.coffee
MIT
fd055519eed312d1b2d9d1f982f96c67d70c4ad1
2,372
https://github.com/node-cache/node-cache/blob/fd055519eed312d1b2d9d1f982f96c67d70c4ad1/test/test-expire.coffee
1
32
node-cache/node-cache:test/test-expire.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript NodeCache = require('../') queriesCache = new NodeCache({ stdTTL: 2, checkperiod: 1 }) idx = 0 _write = -> console.log "test - WRITE:A query:#{idx}" queriesCache.set "query", idx, ( err, success )-> console.log "test - WRITE:B query:#{idx}", err, success i...
var NodeCache, _read, _write, idx, queriesCache; NodeCache = require('../'); queriesCache = new NodeCache({ stdTTL: 2, checkperiod: 1 }); idx = 0; _write = function() { console.log(`test - WRITE:A query:${idx}`); queriesCache.set("query", idx, function(err, success) { console.log(`test - WRITE:B query:$...
CoffeeScript
JavaScript
node-cache/node-cache
test/test-expire.coffee
MIT
fd055519eed312d1b2d9d1f982f96c67d70c4ad1
2,372
https://github.com/node-cache/node-cache/blob/fd055519eed312d1b2d9d1f982f96c67d70c4ad1/test/test-expire.coffee
1
32
node-cache/node-cache:test/test-expire.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var NodeCache, _read, _write, idx, queriesCache; NodeCache = require('../'); queriesCache = new NodeCache({ stdTTL: 2, checkperiod: 1 }); idx = 0; _write = function() { console.log(`test - WRITE:A query:${idx}`); queriesCache.set("query", idx, function(...
NodeCache = require('../') queriesCache = new NodeCache({ stdTTL: 2, checkperiod: 1 }) idx = 0 _write = -> console.log "test - WRITE:A query:#{idx}" queriesCache.set "query", idx, ( err, success )-> console.log "test - WRITE:B query:#{idx}", err, success idx++ return return _read = -> console.log "test - re...
JavaScript
CoffeeScript
node-cache/node-cache
test/test-expire.coffee
MIT
fd055519eed312d1b2d9d1f982f96c67d70c4ad1
2,372
https://github.com/node-cache/node-cache/blob/fd055519eed312d1b2d9d1f982f96c67d70c4ad1/test/test-expire.coffee
1
32
node-cache/node-cache:test/test-expire.coffee:1:completion
completion
NodeCache = require('../') queriesCache = new NodeCache({ stdTTL: 2, checkperiod: 1 }) idx = 0 _write = -> console.log "test - WRITE:A query:#{idx}" queriesCache.set "query", idx, ( err, success )-> console.log "test - WRITE:B query:#{idx}", err, success idx++ return return _read = -> console.log "test - re...
console.log "test - read:B query:#{value[ "query" ]}" else console.log "test - !! EMPTY !! - read:B query:#{value[ "query" ]}" return return queriesCache.on "expired", ( key, value )-> console.log "test - EXPIRED query:#{value}" _write() return _write() setInterval( _read, 600 ) #setInterval( _read, 200 )...
CoffeeScript
CoffeeScript
node-cache/node-cache
test/test-expire.coffee
MIT
fd055519eed312d1b2d9d1f982f96c67d70c4ad1
2,372
https://github.com/node-cache/node-cache/blob/fd055519eed312d1b2d9d1f982f96c67d70c4ad1/test/test-expire.coffee
1
32
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language = "#{JSON.parse(child.execSync(co...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
1f107cf5404858f173caf92a5fd86f0cea00f264
478
https://github.com/jeremyramin/terminal-plus/blob/1f107cf5404858f173caf92a5fd86f0cea00f264/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreference...
var _, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); systemLanguage = (function() { var command, language; language = "en_US.UTF-8"; if (process.platform === 'darwin') { try { command = 'plutil -co...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
1f107cf5404858f173caf92a5fd86f0cea00f264
478
https://github.com/jeremyramin/terminal-plus/blob/1f107cf5404858f173caf92a5fd86f0cea00f264/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); systemLanguage = (function() { var command, language; language = "en_US.UTF-8"; if (process.platfor...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language = "#{JSON.parse(child.execSync(co...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
1f107cf5404858f173caf92a5fd86f0cea00f264
478
https://github.com/jeremyramin/terminal-plus/blob/1f107cf5404858f173caf92a5fd86f0cea00f264/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language = "#{JSON.parse(child.execSync(co...
ptyProcess = pty.fork shell, args, cwd: pwd, env: filteredEnvironment, name: 'xterm-256color' title = shell = path.basename shell emitTitle = _.throttle -> emit('terminal-plus:title', ptyProcess.process) , 500, true ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) emit...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
1f107cf5404858f173caf92a5fd86f0cea00f264
478
https://github.com/jeremyramin/terminal-plus/blob/1f107cf5404858f173caf92a5fd86f0cea00f264/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
4e93bd492d9e82e821ad9d2f6397aff482711329
478
https://github.com/jeremyramin/terminal-plus/blob/4e93bd492d9e82e821ad9d2f6397aff482711329/lib/process.coffee
1
49
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Libra...
var _, child, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); child = require('child_process'); systemLanguage = (function() { var command, language; language = "en_US.UTF-8"; if (process.platform === 'darwin...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
4e93bd492d9e82e821ad9d2f6397aff482711329
478
https://github.com/jeremyramin/terminal-plus/blob/4e93bd492d9e82e821ad9d2f6397aff482711329/lib/process.coffee
1
49
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, child, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); child = require('child_process'); systemLanguage = (function() { var command, language; langu...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
4e93bd492d9e82e821ad9d2f6397aff482711329
478
https://github.com/jeremyramin/terminal-plus/blob/4e93bd492d9e82e821ad9d2f6397aff482711329/lib/process.coffee
1
49
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
args.unshift '--login' ptyProcess = pty.fork shell, args, cwd: pwd, env: filteredEnvironment, name: 'xterm-256color' title = shell = path.basename shell emitTitle = _.throttle -> emit('terminal-plus:title', ptyProcess.process) , 500, true ptyProcess.on 'data', (data) -> emit('terminal-...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
4e93bd492d9e82e821ad9d2f6397aff482711329
478
https://github.com/jeremyramin/terminal-plus/blob/4e93bd492d9e82e821ad9d2f6397aff482711329/lib/process.coffee
1
49
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
b1099aacf07d4c11897f539c87313df6d46fd9cb
478
https://github.com/jeremyramin/terminal-plus/blob/b1099aacf07d4c11897f539c87313df6d46fd9cb/lib/process.coffee
1
45
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Libra...
var _, child, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); child = require('child_process'); systemLanguage = (function() { var command, language; language = "en_US.UTF-8"; if (process.platform === 'darwin...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
b1099aacf07d4c11897f539c87313df6d46fd9cb
478
https://github.com/jeremyramin/terminal-plus/blob/b1099aacf07d4c11897f539c87313df6d46fd9cb/lib/process.coffee
1
45
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, child, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); child = require('child_process'); systemLanguage = (function() { var command, language; langu...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
b1099aacf07d4c11897f539c87313df6d46fd9cb
478
https://github.com/jeremyramin/terminal-plus/blob/b1099aacf07d4c11897f539c87313df6d46fd9cb/lib/process.coffee
1
45
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
if /zsh|bash/.test(shell) and args.indexOf('--login') == -1 args.unshift '--login' ptyProcess = pty.fork shell, args, cwd: pwd, env: filteredEnvironment, name: 'xterm-256color' title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) emit('ter...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
b1099aacf07d4c11897f539c87313df6d46fd9cb
478
https://github.com/jeremyramin/terminal-plus/blob/b1099aacf07d4c11897f539c87313df6d46fd9cb/lib/process.coffee
1
45
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
3a37dca4e417e35649d530b403fe68d739469d72
478
https://github.com/jeremyramin/terminal-plus/blob/3a37dca4e417e35649d530b403fe68d739469d72/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Libra...
var _, child, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); child = require('child_process'); systemLanguage = (function() { var command, language; language = "en_US.UTF-8"; if (process.platform === 'darwin...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
3a37dca4e417e35649d530b403fe68d739469d72
478
https://github.com/jeremyramin/terminal-plus/blob/3a37dca4e417e35649d530b403fe68d739469d72/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, child, filteredEnvironment, fs, path, pty, systemLanguage; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); child = require('child_process'); systemLanguage = (function() { var command, language; langu...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
3a37dca4e417e35649d530b403fe68d739469d72
478
https://github.com/jeremyramin/terminal-plus/blob/3a37dca4e417e35649d530b403fe68d739469d72/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
if /zsh|bash/.test(shell) and args.indexOf('--login') == -1 args.unshift '--login' ptyProcess = pty.fork shell, args, cwd: pwd, env: filteredEnvironment, name: 'xterm-256color' title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
3a37dca4e417e35649d530b403fe68d739469d72
478
https://github.com/jeremyramin/terminal-plus/blob/3a37dca4e417e35649d530b403fe68d739469d72/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ec1d084db3faa04e23da5112f5d112e6dbc374aa
478
https://github.com/jeremyramin/terminal-plus/blob/ec1d084db3faa04e23da5112f5d112e6dbc374aa/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
ptyProcess = pty.fork shell, args, cwd: pwd, env: filteredEnvironment, name: 'xterm-256color' title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('term...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ec1d084db3faa04e23da5112f5d112e6dbc374aa
478
https://github.com/jeremyramin/terminal-plus/blob/ec1d084db3faa04e23da5112f5d112e6dbc374aa/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
0e0cf0991605fdb7215a5b457758634eb7d962c9
478
https://github.com/jeremyramin/terminal-plus/blob/0e0cf0991605fdb7215a5b457758634eb7d962c9/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' child = require 'child_process' systemLanguage = do -> language = "en_US.UTF-8" if process.platform is 'darwin' try command = 'plutil -convert json -o - ~/Library/Preferences/.GlobalPreferences.plist' language =...
ptyProcess = pty.fork shell, args, cwd: pwd, env: filteredEnvironment, name: 'xterm-256color' title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('term...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
0e0cf0991605fdb7215a5b457758634eb7d962c9
478
https://github.com/jeremyramin/terminal-plus/blob/0e0cf0991605fdb7215a5b457758634eb7d962c9/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG = 'en_US.UTF-8' env.TERM_PROGRAM = 'Terminal-Plus' en...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
40524000224a4321a1f5a932e84ce2fafc727d1e
478
https://github.com/jeremyramin/terminal-plus/blob/40524000224a4321a1f5a932e84ce2fafc727d1e/lib/process.coffee
1
43
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG ...
var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = (function() { var env; env = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath'); ...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
40524000224a4321a1f5a932e84ce2fafc727d1e
478
https://github.com/jeremyramin/terminal-plus/blob/40524000224a4321a1f5a932e84ce2fafc727d1e/lib/process.coffee
1
43
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = (function() { var env; env = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KE...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG = 'en_US.UTF-8' env.TERM_PROGRAM = 'Terminal-Plus' en...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
40524000224a4321a1f5a932e84ce2fafc727d1e
478
https://github.com/jeremyramin/terminal-plus/blob/40524000224a4321a1f5a932e84ce2fafc727d1e/lib/process.coffee
1
43
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG = 'en_US.UTF-8' env.TERM_PROGRAM = 'Terminal-Plus' en...
title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) tit...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
40524000224a4321a1f5a932e84ce2fafc727d1e
478
https://github.com/jeremyramin/terminal-plus/blob/40524000224a4321a1f5a932e84ce2fafc727d1e/lib/process.coffee
1
43
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG = 'en_US.UTF-8' env module.exports = (ptyCwd, shell, a...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
610c36c70a7feae6fec598229992119010ccf362
478
https://github.com/jeremyramin/terminal-plus/blob/610c36c70a7feae6fec598229992119010ccf362/lib/process.coffee
1
39
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG ...
var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = (function() { var env; env = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath'); ...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
610c36c70a7feae6fec598229992119010ccf362
478
https://github.com/jeremyramin/terminal-plus/blob/610c36c70a7feae6fec598229992119010ccf362/lib/process.coffee
1
39
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = (function() { var env; env = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KE...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG = 'en_US.UTF-8' env module.exports = (ptyCwd, shell, a...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
610c36c70a7feae6fec598229992119010ccf362
478
https://github.com/jeremyramin/terminal-plus/blob/610c36c70a7feae6fec598229992119010ccf362/lib/process.coffee
1
39
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = do -> env = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' env.LANG = 'en_US.UTF-8' env module.exports = (ptyCwd, shell, a...
ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) title = newTitle ptyProcess.on 'exit', ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
610c36c70a7feae6fec598229992119010ccf362
478
https://github.com/jeremyramin/terminal-plus/blob/610c36c70a7feae6fec598229992119010ccf362/lib/process.coffee
1
39
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c44b6622bf76db7bda026831d0e2c35d5e7bfc54
478
https://github.com/jeremyramin/terminal-plus/blob/c44b6622bf76db7bda026831d0e2c35d5e7bfc54/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd...
var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath'); module.exports = function(ptyCwd...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c44b6622bf76db7bda026831d0e2c35d5e7bfc54
478
https://github.com/jeremyramin/terminal-plus/blob/c44b6622bf76db7bda026831d0e2c35d5e7bfc54/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'use...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c44b6622bf76db7bda026831d0e2c35d5e7bfc54
478
https://github.com/jeremyramin/terminal-plus/blob/c44b6622bf76db7bda026831d0e2c35d5e7bfc54/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) title = newTitle ptyProcess.on 'exit', -> emit('terminal-plus:exit') ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c44b6622bf76db7bda026831d0e2c35d5e7bfc54
478
https://github.com/jeremyramin/terminal-plus/blob/c44b6622bf76db7bda026831d0e2c35d5e7bfc54/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
0031c2733ac186e96137c64d2209335121aa7dc8
478
https://github.com/jeremyramin/terminal-plus/blob/0031c2733ac186e96137c64d2209335121aa7dc8/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd...
var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath'); module.exports = function(ptyCwd...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
0031c2733ac186e96137c64d2209335121aa7dc8
478
https://github.com/jeremyramin/terminal-plus/blob/0031c2733ac186e96137c64d2209335121aa7dc8/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'use...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
0031c2733ac186e96137c64d2209335121aa7dc8
478
https://github.com/jeremyramin/terminal-plus/blob/0031c2733ac186e96137c64d2209335121aa7dc8/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) title = newTitle ptyProcess.on 'exit', -> emit('terminal-plus:exit') ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
0031c2733ac186e96137c64d2209335121aa7dc8
478
https://github.com/jeremyramin/terminal-plus/blob/0031c2733ac186e96137c64d2209335121aa7dc8/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
a32e0b72f0f5ebc895c3d04c635c47aa32369e0f
478
https://github.com/jeremyramin/terminal-plus/blob/a32e0b72f0f5ebc895c3d04c635c47aa32369e0f/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd...
var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath'); module.exports = function(ptyCwd...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
a32e0b72f0f5ebc895c3d04c635c47aa32369e0f
478
https://github.com/jeremyramin/terminal-plus/blob/a32e0b72f0f5ebc895c3d04c635c47aa32369e0f/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'use...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
a32e0b72f0f5ebc895c3d04c635c47aa32369e0f
478
https://github.com/jeremyramin/terminal-plus/blob/a32e0b72f0f5ebc895c3d04c635c47aa32369e0f/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
cwd: ptyCwd env: filteredEnv title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('t...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
a32e0b72f0f5ebc895c3d04c635c47aa32369e0f
478
https://github.com/jeremyramin/terminal-plus/blob/a32e0b72f0f5ebc895c3d04c635c47aa32369e0f/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
64058bf8ae12d7b3d5e69af305cba4968f86f73d
478
https://github.com/jeremyramin/terminal-plus/blob/64058bf8ae12d7b3d5e69af305cba4968f86f73d/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd...
var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath'); module.exports = function(ptyCwd...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
64058bf8ae12d7b3d5e69af305cba4968f86f73d
478
https://github.com/jeremyramin/terminal-plus/blob/64058bf8ae12d7b3d5e69af305cba4968f86f73d/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, filteredEnv, fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); _ = require('underscore'); filteredEnv = _.omit(process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'use...
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
64058bf8ae12d7b3d5e69af305cba4968f86f73d
478
https://github.com/jeremyramin/terminal-plus/blob/64058bf8ae12d7b3d5e69af305cba4968f86f73d/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' _ = require 'underscore' filteredEnv = _.omit process.env, 'ATOM_HOME', 'ATOM_SHELL_INTERNAL_RUN_AS_NODE', 'GOOGLE_API_KEY', 'NODE_ENV', 'NODE_PATH', 'userAgent', 'taskPath' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() if...
cwd: ptyCwd env: filteredEnv title = shell = path.basename shell ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('t...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
64058bf8ae12d7b3d5e69af305cba4968f86f73d
478
https://github.com/jeremyramin/terminal-plus/blob/64058bf8ae12d7b3d5e69af305cba4968f86f73d/lib/process.coffee
1
48
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = shell title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
de4e2e2eee464559ad23b2f6d9337a83d74aae4d
478
https://github.com/jeremyramin/terminal-plus/blob/de4e2e2eee464559ad23b2f6d9337a83d74aae4d/lib/process.coffee
1
47
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = shell title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift...
var fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); module.exports = function(ptyCwd, shell, args, options = {}) { var callback, cols, ptyProcess, rows, run, title; callback = this.async(); run = shell; title = shell = path.basename(shell); if (fs.existsSync('/usr/bin/l...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
de4e2e2eee464559ad23b2f6d9337a83d74aae4d
478
https://github.com/jeremyramin/terminal-plus/blob/de4e2e2eee464559ad23b2f6d9337a83d74aae4d/lib/process.coffee
1
47
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); module.exports = function(ptyCwd, shell, args, options = {}) { var callback, cols, ptyProcess, rows, run, title; callback = this.async(); run = shell; title = shell ...
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = shell title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
de4e2e2eee464559ad23b2f6d9337a83d74aae4d
478
https://github.com/jeremyramin/terminal-plus/blob/de4e2e2eee464559ad23b2f6d9337a83d74aae4d/lib/process.coffee
1
47
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = shell title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift...
cwd: ptyCwd ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) title = newTitle ptyProc...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
de4e2e2eee464559ad23b2f6d9337a83d74aae4d
478
https://github.com/jeremyramin/terminal-plus/blob/de4e2e2eee464559ad23b2f6d9337a83d74aae4d/lib/process.coffee
1
47
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift "-qf" ...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ede9ac97206fa8586e6c3b0da1a23ae446205e7d
478
https://github.com/jeremyramin/terminal-plus/blob/ede9ac97206fa8586e6c3b0da1a23ae446205e7d/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell ...
var fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); module.exports = function(ptyCwd, shell, args, options = {}) { var callback, cols, ptyProcess, rows, run, title; callback = this.async(); run = title = shell = path.basename(shell); if (fs.existsSync('/usr/bin/login')) {...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ede9ac97206fa8586e6c3b0da1a23ae446205e7d
478
https://github.com/jeremyramin/terminal-plus/blob/ede9ac97206fa8586e6c3b0da1a23ae446205e7d/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); module.exports = function(ptyCwd, shell, args, options = {}) { var callback, cols, ptyProcess, rows, run, title; callback = this.async(); run = title = shell = path.ba...
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift "-qf" ...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ede9ac97206fa8586e6c3b0da1a23ae446205e7d
478
https://github.com/jeremyramin/terminal-plus/blob/ede9ac97206fa8586e6c3b0da1a23ae446205e7d/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift "-qf" ...
ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) title = newTitle ptyProcess.on 'exit', ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ede9ac97206fa8586e6c3b0da1a23ae446205e7d
478
https://github.com/jeremyramin/terminal-plus/blob/ede9ac97206fa8586e6c3b0da1a23ae446205e7d/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift "-qpf" ...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
2ec90a3290414a242a4cc62eadbded00fc305bd4
478
https://github.com/jeremyramin/terminal-plus/blob/2ec90a3290414a242a4cc62eadbded00fc305bd4/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell ...
var fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); module.exports = function(ptyCwd, shell, args, options = {}) { var callback, cols, ptyProcess, rows, run, title; callback = this.async(); run = title = shell = path.basename(shell); if (fs.existsSync('/usr/bin/login')) {...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
2ec90a3290414a242a4cc62eadbded00fc305bd4
478
https://github.com/jeremyramin/terminal-plus/blob/2ec90a3290414a242a4cc62eadbded00fc305bd4/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fs, path, pty; pty = require('pty.js'); path = require('path'); fs = require('fs'); module.exports = function(ptyCwd, shell, args, options = {}) { var callback, cols, ptyProcess, rows, run, title; callback = this.async(); run = title = shell = path.ba...
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift "-qpf" ...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
2ec90a3290414a242a4cc62eadbded00fc305bd4
478
https://github.com/jeremyramin/terminal-plus/blob/2ec90a3290414a242a4cc62eadbded00fc305bd4/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' path = require 'path' fs = require 'fs' module.exports = (ptyCwd, shell, args, options={}) -> callback = @async() run = title = shell = path.basename shell if fs.existsSync '/usr/bin/login' run = "login" args.unshift shell args.unshift process.env.USER args.unshift "-qpf" ...
ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'data', -> newTitle = ptyProcess.process if newTitle is shell emit('terminal-plus:clear-title') else unless title is newTitle emit('terminal-plus:title', newTitle) title = newTitle ptyProcess.on 'exit', ...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
2ec90a3290414a242a4cc62eadbded00fc305bd4
478
https://github.com/jeremyramin/terminal-plus/blob/2ec90a3290414a242a4cc62eadbded00fc305bd4/lib/process.coffee
1
44
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.e...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
9f2dc505757bab222360f387b7eb56d491aaaee3
478
https://github.com/jeremyramin/terminal-plus/blob/9f2dc505757bab222360f387b7eb56d491aaaee3/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.e...
var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args, options = {}) { var callback, cmd, cols, e, env, external, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else { if (process.platform === '...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
9f2dc505757bab222360f387b7eb56d491aaaee3
478
https://github.com/jeremyramin/terminal-plus/blob/9f2dc505757bab222360f387b7eb56d491aaaee3/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args, options = {}) { var callback, cmd, cols, e, env, external, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { ...
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.e...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
9f2dc505757bab222360f387b7eb56d491aaaee3
478
https://github.com/jeremyramin/terminal-plus/blob/9f2dc505757bab222360f387b7eb56d491aaaee3/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.e...
env.PS1 = '\\h:\\W \\u\\$ ' ptyProcess = pty.fork shell, args, cols: cols rows: rows cwd: ptyCwd env: env if options.forceTitle switch shell.match(/\w+(\.exe)?$/)[0] when 'bash', 'sh' ptyProcess.write " trap 'echo -ne \"\\033]2;$BASH_COMMAND\\007\"' DEBUG\r" when 'powershel...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
9f2dc505757bab222360f387b7eb56d491aaaee3
478
https://github.com/jeremyramin/terminal-plus/blob/9f2dc505757bab222360f387b7eb56d491aaaee3/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:2:raw_corpus
raw_corpus
ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'exit', -> emit('terminal-plus:exit') callback() ptyProcess.on 'close', (data) -> emit('terminal-plus:close', data) process.on 'message', ({event, cols, rows, text}={}) -> switch event when 'resize' then ptyProcess.r...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
9f2dc505757bab222360f387b7eb56d491aaaee3
478
https://github.com/jeremyramin/terminal-plus/blob/9f2dc505757bab222360f387b7eb56d491aaaee3/lib/process.coffee
51
60
jeremyramin/terminal-plus:lib/process.coffee:2:completion
completion
ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'exit', -> emit('terminal-plus:exit') callback() ptyProcess.on 'close', (data) -> emit('terminal-plus:close', data)
process.on 'message', ({event, cols, rows, text}={}) -> switch event when 'resize' then ptyProcess.resize(cols, rows) when 'input' then ptyProcess.write(text)
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
9f2dc505757bab222360f387b7eb56d491aaaee3
478
https://github.com/jeremyramin/terminal-plus/blob/9f2dc505757bab222360f387b7eb56d491aaaee3/lib/process.coffee
51
60
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.e...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
e57018d1431f4ff343da06fb2fee7d5e6ee46e5f
478
https://github.com/jeremyramin/terminal-plus/blob/e57018d1431f4ff343da06fb2fee7d5e6ee46e5f/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.e...
var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args, options = {}) { var callback, cmd, cols, e, env, external, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else { if (process.platform === '...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
e57018d1431f4ff343da06fb2fee7d5e6ee46e5f
478
https://github.com/jeremyramin/terminal-plus/blob/e57018d1431f4ff343da06fb2fee7d5e6ee46e5f/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args, options = {}) { var callback, cmd, cols, e, env, external, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { ...
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.e...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
e57018d1431f4ff343da06fb2fee7d5e6ee46e5f
478
https://github.com/jeremyramin/terminal-plus/blob/e57018d1431f4ff343da06fb2fee7d5e6ee46e5f/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args, options={}) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.e...
env.PS1 = '\\h:\\W \\u\\$ ' ptyProcess = pty.fork shell, args, cols: cols rows: rows cwd: ptyCwd env: env if options.forceTitle switch shell.match /\w+(\.exe)?$/ when 'bash', 'sh' ptyProcess.write " trap 'echo -ne \"\\033]2;$BASH_COMMAND\\007\"' DEBUG\r" when 'powershell.ex...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
e57018d1431f4ff343da06fb2fee7d5e6ee46e5f
478
https://github.com/jeremyramin/terminal-plus/blob/e57018d1431f4ff343da06fb2fee7d5e6ee46e5f/lib/process.coffee
1
50
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ddaacb054f9e1225e839b589c85ae2aa339487f9
478
https://github.com/jeremyramin/terminal-plus/blob/ddaacb054f9e1225e839b589c85ae2aa339487f9/lib/process.coffee
1
41
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoo...
var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args) { var callback, cmd, cols, e, env, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else { if (process.platform === 'win32') { path = r...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ddaacb054f9e1225e839b589c85ae2aa339487f9
478
https://github.com/jeremyramin/terminal-plus/blob/ddaacb054f9e1225e839b589c85ae2aa339487f9/lib/process.coffee
1
41
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args) { var callback, cmd, cols, e, env, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else {...
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ddaacb054f9e1225e839b589c85ae2aa339487f9
478
https://github.com/jeremyramin/terminal-plus/blob/ddaacb054f9e1225e839b589c85ae2aa339487f9/lib/process.coffee
1
41
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
catch e env = process.env if shell is 'bash' or 'sh' env.PS1 = "\\h:\\W \\u\\$ " ptyProcess = pty.fork shell, args, cols: cols rows: rows cwd: ptyCwd env: env ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'exit', -> emit('terminal-plus:exit') c...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
ddaacb054f9e1225e839b589c85ae2aa339487f9
478
https://github.com/jeremyramin/terminal-plus/blob/ddaacb054f9e1225e839b589c85ae2aa339487f9/lib/process.coffee
1
41
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c009690d42ad17f0aa45de8c58f4e40eb9b733eb
478
https://github.com/jeremyramin/terminal-plus/blob/c009690d42ad17f0aa45de8c58f4e40eb9b733eb/lib/process.coffee
1
42
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoo...
var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args) { var callback, cmd, cols, e, env, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else { if (process.platform === 'win32') { path = r...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c009690d42ad17f0aa45de8c58f4e40eb9b733eb
478
https://github.com/jeremyramin/terminal-plus/blob/c009690d42ad17f0aa45de8c58f4e40eb9b733eb/lib/process.coffee
1
42
jeremyramin/terminal-plus:lib/process.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args) { var callback, cmd, cols, e, env, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else {...
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
JavaScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c009690d42ad17f0aa45de8c58f4e40eb9b733eb
478
https://github.com/jeremyramin/terminal-plus/blob/c009690d42ad17f0aa45de8c58f4e40eb9b733eb/lib/process.coffee
1
42
jeremyramin/terminal-plus:lib/process.coffee:1:completion
completion
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
env = process.env if shell is 'bash' or 'sh' env.PS1 = "\\h:\\W \\u\\$ " ptyProcess = pty.fork shell, args, name: 'xterm-256color' cols: cols rows: rows cwd: ptyCwd env: env ptyProcess.on 'data', (data) -> emit('terminal-plus:data', data) ptyProcess.on 'exit', -> emit('terminal-pl...
CoffeeScript
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
c009690d42ad17f0aa45de8c58f4e40eb9b733eb
478
https://github.com/jeremyramin/terminal-plus/blob/c009690d42ad17f0aa45de8c58f4e40eb9b733eb/lib/process.coffee
1
42
jeremyramin/terminal-plus:lib/process.coffee:1:raw_corpus
raw_corpus
pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoot, 'WindowsPowerShell', 'v1.0', 'powershell.exe') els...
CoffeeScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
e9dfeb4ceb8aad183da5d3f64394f275ab17cdee
478
https://github.com/jeremyramin/terminal-plus/blob/e9dfeb4ceb8aad183da5d3f64394f275ab17cdee/lib/process.coffee
1
36
jeremyramin/terminal-plus:lib/process.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript pty = require 'pty.js' {execSync} = require 'child_process' module.exports = (ptyCwd, sh, args) -> callback = @async() if sh shell = sh else if process.platform is 'win32' path = require 'path' shell = path.resolve(process.env.SystemRoo...
var execSync, pty; pty = require('pty.js'); ({execSync} = require('child_process')); module.exports = function(ptyCwd, sh, args) { var callback, cmd, cols, env, path, ptyProcess, rows, shell; callback = this.async(); if (sh) { shell = sh; } else { if (process.platform === 'win32') { path = requ...
CoffeeScript
JavaScript
jeremyramin/terminal-plus
lib/process.coffee
MIT
e9dfeb4ceb8aad183da5d3f64394f275ab17cdee
478
https://github.com/jeremyramin/terminal-plus/blob/e9dfeb4ceb8aad183da5d3f64394f275ab17cdee/lib/process.coffee
1
36