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
buttercoin/buttercoin:lib/amount.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript BigDecimal = require('bigdecimal').BigDecimal module.exports = class Amount constructor: (string_value) -> if typeof string_value == 'undefined' string_value = '0' if typeof string_value == 'string' try @value = new BigDecimal(stri...
var Amount, BigDecimal; BigDecimal = require('bigdecimal').BigDecimal; module.exports = Amount = class Amount { constructor(string_value) { var e; this.compareTo = this.compareTo.bind(this); this.add = this.add.bind(this); this.subtract = this.subtract.bind(this); this.toString = this.toString.b...
CoffeeScript
JavaScript
buttercoin/buttercoin
lib/amount.coffee
MIT
1ec26da453ab2accbc8ba8e4948f3f8a549ad979
663
https://github.com/buttercoin/buttercoin/blob/1ec26da453ab2accbc8ba8e4948f3f8a549ad979/lib/amount.coffee
1
39
buttercoin/buttercoin:lib/amount.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Amount, BigDecimal; BigDecimal = require('bigdecimal').BigDecimal; module.exports = Amount = class Amount { constructor(string_value) { var e; this.compareTo = this.compareTo.bind(this); this.add = this.add.bind(this); this.subtract = this.s...
BigDecimal = require('bigdecimal').BigDecimal module.exports = class Amount constructor: (string_value) -> if typeof string_value == 'undefined' string_value = '0' if typeof string_value == 'string' try @value = new BigDecimal(string_value) catch e throw new Error('String i...
JavaScript
CoffeeScript
buttercoin/buttercoin
lib/amount.coffee
MIT
1ec26da453ab2accbc8ba8e4948f3f8a549ad979
663
https://github.com/buttercoin/buttercoin/blob/1ec26da453ab2accbc8ba8e4948f3f8a549ad979/lib/amount.coffee
1
39
buttercoin/buttercoin:lib/amount.coffee:1:completion
completion
BigDecimal = require('bigdecimal').BigDecimal module.exports = class Amount constructor: (string_value) -> if typeof string_value == 'undefined' string_value = '0' if typeof string_value == 'string' try @value = new BigDecimal(string_value) catch e throw new Error('String i...
throw new Error('Can only compare to Amount objects') add: (amount) => if amount instanceof Amount sum = new Amount() sum.value = @value.add(amount.value) return sum else throw new Error('Can only add Amount objects') subtract: (amount) => if amount instanceof Amount diff...
CoffeeScript
CoffeeScript
buttercoin/buttercoin
lib/amount.coffee
MIT
1ec26da453ab2accbc8ba8e4948f3f8a549ad979
663
https://github.com/buttercoin/buttercoin/blob/1ec26da453ab2accbc8ba8e4948f3f8a549ad979/lib/amount.coffee
1
39
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:raw_corpus
raw_corpus
### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() # F = -kx apply: -> (@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p2.massInv)) * @stiffness if not @p1.fixed...
CoffeeScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/Spring.coffee
1
24
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() # F = -kx apply: -> (@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1...
/* Spring */ var Spring; Spring = class Spring { constructor(p1, p2, restLength = 100, stiffness = 1.0) { this.p1 = p1; this.p2 = p2; this.restLength = restLength; this.stiffness = stiffness; this._delta = new Vector(); } // F = -kx apply() { var dist, force; (this._delta.copy(this...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/Spring.coffee
1
24
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Spring */ var Spring; Spring = class Spring { constructor(p1, p2, restLength = 100, stiffness = 1.0) { this.p1 = p1; this.p2 = p2; this.restLength = restLength; this.stiffness = stiffness; this._delta = new Vector(); } // F = -kx ap...
### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() # F = -kx apply: -> (@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p2.massInv)) * @stiffness if not @p1.fixed...
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/Spring.coffee
1
24
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:completion
completion
### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() # F = -kx apply: ->
(@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p2.massInv)) * @stiffness if not @p1.fixed @p1.pos.add (@_delta.clone().scale force * @p1.massInv) if not @p2.fixed @p2.pos.add (@_delta.scale -force * @p2.massInv)
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d
1,053
https://github.com/soulwire/Coffee-Physics/blob/df9d43d3153dfc6a734fef1b24eb5a90c2c61e4d/source/engine/Spring.coffee
1
24
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:raw_corpus
raw_corpus
### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() apply: -> (@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p2.massInv)) * @stiffness if not @p1.fixed @p1.pos....
CoffeeScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/engine/Spring.coffee
1
21
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() apply: -> (@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p...
/* Spring */ var Spring; Spring = class Spring { constructor(p1, p2, restLength = 100, stiffness = 1.0) { this.p1 = p1; this.p2 = p2; this.restLength = restLength; this.stiffness = stiffness; this._delta = new Vector(); } apply() { var dist, force; (this._delta.copy(this.p2.pos)).sub...
CoffeeScript
JavaScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/engine/Spring.coffee
1
21
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Spring */ var Spring; Spring = class Spring { constructor(p1, p2, restLength = 100, stiffness = 1.0) { this.p1 = p1; this.p2 = p2; this.restLength = restLength; this.stiffness = stiffness; this._delta = new Vector(); } apply() { v...
### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() apply: -> (@_delta.copy @p2.pos).sub @p1.pos dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p2.massInv)) * @stiffness if not @p1.fixed @p1.pos....
JavaScript
CoffeeScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/engine/Spring.coffee
1
21
soulwire/Coffee-Physics:source/engine/Spring.coffee:1:completion
completion
### Spring ### class Spring constructor: (@p1, @p2, @restLength = 100, @stiffness = 1.0) -> @_delta = new Vector() apply: -> (@_delta.copy @p2.pos).sub @p1.pos
dist = @_delta.mag() + 0.000001 force = (dist - @restLength) / (dist * (@p1.massInv + @p2.massInv)) * @stiffness if not @p1.fixed @p1.pos.add (@_delta.clone().scale force * @p1.massInv) if not @p2.fixed @p2.pos.add (@_delta.scale -force * @p2.massInv)
CoffeeScript
CoffeeScript
soulwire/Coffee-Physics
source/engine/Spring.coffee
MIT
c6dd1005d54eb52f41702ef54077f1ee6bbbabd0
1,053
https://github.com/soulwire/Coffee-Physics/blob/c6dd1005d54eb52f41702ef54077f1ee6bbbabd0/source/engine/Spring.coffee
1
21
jianliaoim/talk-os:talk-api2x/scripts/create-mapping.coffee:1:raw_corpus
raw_corpus
logger = require 'graceful-logger' settings = analysis: analyzer: ik: alias: ["ik_analyzer"] type: "org.elasticsearch.index.analysis.IkAnalyzerProvider" ik_smart: type: "ik" use_smart: true ik_max_word: type: "ik" use_smart: false {limbo} = requi...
CoffeeScript
jianliaoim/talk-os
talk-api2x/scripts/create-mapping.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/scripts/create-mapping.coffee
1
28
jianliaoim/talk-os:talk-api2x/scripts/create-mapping.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript logger = require 'graceful-logger' settings = analysis: analyzer: ik: alias: ["ik_analyzer"] type: "org.elasticsearch.index.analysis.IkAnalyzerProvider" ik_smart: type: "ik" use_smart: true ik_max_word: ...
var SearchFavoriteModel, SearchMessageModel, SearchStoryModel, limbo, logger, settings; logger = require('graceful-logger'); settings = { analysis: { analyzer: { ik: { alias: ["ik_analyzer"], type: "org.elasticsearch.index.analysis.IkAnalyzerProvider" }, ik_smart: { typ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/scripts/create-mapping.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/scripts/create-mapping.coffee
1
28
jianliaoim/talk-os:talk-api2x/scripts/create-mapping.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var SearchFavoriteModel, SearchMessageModel, SearchStoryModel, limbo, logger, settings; logger = require('graceful-logger'); settings = { analysis: { analyzer: { ik: { alias: ["ik_analyzer"], type: "org.elasticsearch.index.analysis.IkA...
logger = require 'graceful-logger' settings = analysis: analyzer: ik: alias: ["ik_analyzer"] type: "org.elasticsearch.index.analysis.IkAnalyzerProvider" ik_smart: type: "ik" use_smart: true ik_max_word: type: "ik" use_smart: false {limbo} = requi...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/scripts/create-mapping.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/scripts/create-mapping.coffee
1
28
jianliaoim/talk-os:talk-api2x/scripts/create-mapping.coffee:1:completion
completion
logger = require 'graceful-logger' settings = analysis: analyzer: ik: alias: ["ik_analyzer"] type: "org.elasticsearch.index.analysis.IkAnalyzerProvider" ik_smart: type: "ik" use_smart: true ik_max_word: type: "ik" use_smart: false
{limbo} = require '../server/components' { SearchMessageModel SearchFavoriteModel SearchStoryModel } = limbo.use 'talk' SearchMessageModel.createMapping settings, -> logger.info "Create message mapping", arguments SearchFavoriteModel.createMapping settings, -> logger.info "Create favorite mapping", arguments ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/scripts/create-mapping.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/scripts/create-mapping.coffee
1
28
jianliaoim/talk-os:talk-web/client/updater/notify-banner.coffee:1:raw_corpus
raw_corpus
Immutable = require 'immutable' exports.clear = (store, actionData) -> store.set 'bannerNotices', Immutable.Map() exports.create = (store, noticeData) -> store.set 'bannerNotices', noticeData
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/notify-banner.coffee
1
7
jianliaoim/talk-os:talk-web/client/updater/notify-banner.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript Immutable = require 'immutable' exports.clear = (store, actionData) -> store.set 'bannerNotices', Immutable.Map() exports.create = (store, noticeData) -> store.set 'bannerNotices', noticeData ```
var Immutable; Immutable = require('immutable'); exports.clear = function(store, actionData) { return store.set('bannerNotices', Immutable.Map()); }; exports.create = function(store, noticeData) { return store.set('bannerNotices', noticeData); };
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/updater/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/notify-banner.coffee
1
7
jianliaoim/talk-os:talk-web/client/updater/notify-banner.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable; Immutable = require('immutable'); exports.clear = function(store, actionData) { return store.set('bannerNotices', Immutable.Map()); }; exports.create = function(store, noticeData) { return store.set('bannerNotices', noticeData); }; ```
Immutable = require 'immutable' exports.clear = (store, actionData) -> store.set 'bannerNotices', Immutable.Map() exports.create = (store, noticeData) -> store.set 'bannerNotices', noticeData
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/notify-banner.coffee
1
7
jianliaoim/talk-os:talk-web/client/updater/notify-banner.coffee:1:completion
completion
Immutable = require 'immutable' exports.clear = (store, actionData) ->
store.set 'bannerNotices', Immutable.Map() exports.create = (store, noticeData) -> store.set 'bannerNotices', noticeData
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/updater/notify-banner.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/updater/notify-banner.coffee
1
7
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
module.exports = class PSD extends Module @Node: Root: require('./psd/nodes/root.coffee') @extends require('./psd/init.coffee') # Creates a new PSD object. Typically you will use a helper method to instantiate # the PSD object. However, if you already have the PSD data stored as a Uint8Array, # you can ...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd.coffee
31
80
meltingice/psd.js:lib/psd.coffee:1:completion
completion
module.exports = class PSD extends Module @Node: Root: require('./psd/nodes/root.coffee') @extends require('./psd/init.coffee') # Creates a new PSD object. Typically you will use a helper method to instantiate # the PSD object. However, if you already have the PSD data stored as a Uint8Array, # you can ...
@parseHeader() @parseResources() @parseLayerMask() @parseImage() @parsed = true # The next 4 methods are responsible for parsing the 4 main sections of the PSD. # These are private, and you should never call them from your own code. parseHeader: -> @header = new Header(@file) @header.par...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd.coffee
31
80
meltingice/psd.js:lib/psd.coffee:2:raw_corpus
raw_corpus
.get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() # Returns a tree representation of the PSD document, which is the # preferred way of accessing most of the PSD's data. tree: -> new PSD.Nod...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd.coffee
81
92
meltingice/psd.js:lib/psd.coffee:2:completion
completion
.get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse')
.ignore('width', 'height') .get() # Returns a tree representation of the PSD document, which is the # preferred way of accessing most of the PSD's data. tree: -> new PSD.Node.Root(@)
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd.coffee
81
92
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
module.exports = class PSD extends Module # @nodoc @Node: Root: require('./psd/nodes/root.coffee') @extends require('./psd/init.coffee') # Creates a new PSD object. # # @param [Uint8Array] The PSD file data. constructor: (data) -> @file = new File(data) @parsed = false @header = null ...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
1c60f45829aedf679e551095a85fddacd486b888
2,846
https://github.com/meltingice/psd.js/blob/1c60f45829aedf679e551095a85fddacd486b888/lib/psd.coffee
24
73
meltingice/psd.js:lib/psd.coffee:1:completion
completion
module.exports = class PSD extends Module # @nodoc @Node: Root: require('./psd/nodes/root.coffee') @extends require('./psd/init.coffee') # Creates a new PSD object. # # @param [Uint8Array] The PSD file data. constructor: (data) -> @file = new File(data) @parsed = false @header = null ...
@parseHeader() @parseResources() @parseLayerMask() @parseImage() @parsed = true # @private parseHeader: -> @header = new Header(@file) @header.parse() # @private parseResources: -> resources = new Resources(@file) @resources = new LazyExecute(resources, @file) .now('skip...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
1c60f45829aedf679e551095a85fddacd486b888
2,846
https://github.com/meltingice/psd.js/blob/1c60f45829aedf679e551095a85fddacd486b888/lib/psd.coffee
24
73
meltingice/psd.js:lib/psd.coffee:2:raw_corpus
raw_corpus
.now('skip') .later('parse') .get() # @private parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() # Returns a tree representation of the PSD document, which is the # preferred way of ac...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
1c60f45829aedf679e551095a85fddacd486b888
2,846
https://github.com/meltingice/psd.js/blob/1c60f45829aedf679e551095a85fddacd486b888/lib/psd.coffee
74
90
meltingice/psd.js:lib/psd.coffee:2:completion
completion
.now('skip') .later('parse') .get() # @private parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file)
.later('parse') .ignore('width', 'height') .get() # Returns a tree representation of the PSD document, which is the # preferred way of accessing most PSD data. # # @return [Node.Root] The root node of the PSD. tree: -> new PSD.Node.Root(@)
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
1c60f45829aedf679e551095a85fddacd486b888
2,846
https://github.com/meltingice/psd.js/blob/1c60f45829aedf679e551095a85fddacd486b888/lib/psd.coffee
74
90
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
RSVP = require 'rsvp' {Module} = require 'coffeescript-module' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
8560364d7fc7df297564c685d9e54b87f1635342
2,846
https://github.com/meltingice/psd.js/blob/8560364d7fc7df297564c685d9e54b87f1635342/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:completion
completion
RSVP = require 'rsvp' {Module} = require 'coffeescript-module' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image...
RSVP.on 'error', (reason) -> console.error(reason) parse: -> return if @parsed @parseHeader() @parseResources() @parseLayerMask() @parseImage() @parsed = true parseHeader: -> @header = new Header(@file) @header.parse() parseResources: -> resources = new Resources(@file) ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
8560364d7fc7df297564c685d9e54b87f1635342
2,846
https://github.com/meltingice/psd.js/blob/8560364d7fc7df297564c685d9e54b87f1635342/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:2:raw_corpus
raw_corpus
@layerMask = new LazyExecute(layerMask, @file) .now('skip') .later('parse') .get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() tree: -> new PSD.Node.Root(@)
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
8560364d7fc7df297564c685d9e54b87f1635342
2,846
https://github.com/meltingice/psd.js/blob/8560364d7fc7df297564c685d9e54b87f1635342/lib/psd.coffee
51
63
meltingice/psd.js:lib/psd.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @layerMask = new LazyExecute(layerMask, @file) .now('skip') .later('parse') .get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .g...
this.layerMask = new LazyExecute(layerMask, this.file).now('skip').later('parse').get()({ parseImage: function() { var image; image = new Image(this.file, this.header); return this.image = new LazyExecute(image, this.file).later('parse').ignore('width', 'height').get(); }, tree: function() { retur...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
8560364d7fc7df297564c685d9e54b87f1635342
2,846
https://github.com/meltingice/psd.js/blob/8560364d7fc7df297564c685d9e54b87f1635342/lib/psd.coffee
51
63
meltingice/psd.js:lib/psd.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.layerMask = new LazyExecute(layerMask, this.file).now('skip').later('parse').get()({ parseImage: function() { var image; image = new Image(this.file, this.header); return this.image = new LazyExecute(image, this.file).later('parse').ignore('width...
@layerMask = new LazyExecute(layerMask, @file) .now('skip') .later('parse') .get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() tree: -> new PSD.Node.Root(@)
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
8560364d7fc7df297564c685d9e54b87f1635342
2,846
https://github.com/meltingice/psd.js/blob/8560364d7fc7df297564c685d9e54b87f1635342/lib/psd.coffee
51
63
meltingice/psd.js:lib/psd.coffee:2:completion
completion
@layerMask = new LazyExecute(layerMask, @file) .now('skip') .later('parse') .get() parseImage: ->
image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() tree: -> new PSD.Node.Root(@)
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
8560364d7fc7df297564c685d9e54b87f1635342
2,846
https://github.com/meltingice/psd.js/blob/8560364d7fc7df297564c685d9e54b87f1635342/lib/psd.coffee
51
63
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
{Module} = require 'coffeescript-module' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.expor...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
b5828219c011770e6e21d98599cbb92541bb8c7e
2,846
https://github.com/meltingice/psd.js/blob/b5828219c011770e6e21d98599cbb92541bb8c7e/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:completion
completion
{Module} = require 'coffeescript-module' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.expor...
return if @parsed @parseHeader() @parseResources() @parseLayerMask() @parseImage() @parsed = true parseHeader: -> @header = new Header(@file) @header.parse() parseResources: -> resources = new Resources(@file) @resources = new LazyExecute(resources, @file) .now('skip') ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
b5828219c011770e6e21d98599cbb92541bb8c7e
2,846
https://github.com/meltingice/psd.js/blob/b5828219c011770e6e21d98599cbb92541bb8c7e/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:2:raw_corpus
raw_corpus
.get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() tree: -> new PSD.Node.Root(@)
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
b5828219c011770e6e21d98599cbb92541bb8c7e
2,846
https://github.com/meltingice/psd.js/blob/b5828219c011770e6e21d98599cbb92541bb8c7e/lib/psd.coffee
51
60
meltingice/psd.js:lib/psd.coffee:2:completion
completion
.get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file)
.later('parse') .ignore('width', 'height') .get() tree: -> new PSD.Node.Root(@)
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
b5828219c011770e6e21d98599cbb92541bb8c7e
2,846
https://github.com/meltingice/psd.js/blob/b5828219c011770e6e21d98599cbb92541bb8c7e/lib/psd.coffee
51
60
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d9eb995eb5dd81f1811e9e14c09d3ba70d31c992
2,846
https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = r...
var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coffee'); LayerMask = require('./psd/layer_mask.coffee'); ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
d9eb995eb5dd81f1811e9e14c09d3ba70d31c992
2,846
https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coff...
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d9eb995eb5dd81f1811e9e14c09d3ba70d31c992
2,846
https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:completion
completion
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
@parsed = false @header = null Object.defineProperty @, 'layers', get: -> @layerMask.layers parse: -> return if @parsed @parseHeader() @parseResources() @parseLayerMask() @parseImage() @parsed = true parseHeader: -> @header = new Header(@file) @header.parse() pa...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d9eb995eb5dd81f1811e9e14c09d3ba70d31c992
2,846
https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:2:raw_corpus
raw_corpus
.get() parseLayerMask: -> layerMask = new LayerMask(@file, @header) @layerMask = new LazyExecute(layerMask, @file) .now('skip') .later('parse') .get() parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('widt...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d9eb995eb5dd81f1811e9e14c09d3ba70d31c992
2,846
https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd.coffee
51
67
meltingice/psd.js:lib/psd.coffee:2:completion
completion
.get() parseLayerMask: -> layerMask = new LayerMask(@file, @header) @layerMask = new LazyExecute(layerMask, @file) .now('skip') .later('parse') .get()
parseImage: -> image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get() tree: -> new PSD.Node.Root(@)
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d9eb995eb5dd81f1811e9e14c09d3ba70d31c992
2,846
https://github.com/meltingice/psd.js/blob/d9eb995eb5dd81f1811e9e14c09d3ba70d31c992/lib/psd.coffee
51
67
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
aabb6de133eab9ae0a16981d0706fb83ce69fdba
2,846
https://github.com/meltingice/psd.js/blob/aabb6de133eab9ae0a16981d0706fb83ce69fdba/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = r...
var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coffee'); LayerMask = require('./psd/layer_mask.coffee'); ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
aabb6de133eab9ae0a16981d0706fb83ce69fdba
2,846
https://github.com/meltingice/psd.js/blob/aabb6de133eab9ae0a16981d0706fb83ce69fdba/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coff...
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
aabb6de133eab9ae0a16981d0706fb83ce69fdba
2,846
https://github.com/meltingice/psd.js/blob/aabb6de133eab9ae0a16981d0706fb83ce69fdba/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:completion
completion
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
return if @parsed @parseHeader() @parseResources() @parseLayerMask() @parseImage() @parsed = true parseHeader: -> @header = new Header(@file) @header.parse() parseResources: -> resources = new Resources(@file) @resources = new LazyExecute(resources, @file) .now('skip') ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
aabb6de133eab9ae0a16981d0706fb83ce69fdba
2,846
https://github.com/meltingice/psd.js/blob/aabb6de133eab9ae0a16981d0706fb83ce69fdba/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = r...
var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coffee'); LayerMask = require('./psd/layer_mask.coffee'); ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coff...
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:completion
completion
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
@parseResources() @parseLayerMask() @parseImage() @parsed = true parseHeader: -> @header = new Header(@file) @header.parse() parseResources: -> resources = new Resources(@file) @resources = new LazyExecute(resources, @file) .now('skip') .later('parse') .get() pars...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:2:raw_corpus
raw_corpus
image = new Image(@file, @header) @image = new LazyExecute(image, @file) .later('parse') .ignore('width', 'height') .get()
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd.coffee
51
55
meltingice/psd.js:lib/psd.coffee:2:completion
completion
image = new Image(@file, @header) @image = new LazyExecute(image, @file)
.later('parse') .ignore('width', 'height') .get()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
565c4a6eef97b2ef26e76cd0910c3eb60b507434
2,846
https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd.coffee
51
55
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = r...
var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coffee'); LayerMask = require('./psd/layer_mask.coffee'); ...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Header, Image, LayerMask, LazyExecute, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); LazyExecute = require('./psd/lazy_execute.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coff...
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:completion
completion
fs = require 'fs' File = require './psd/file.coffee' LazyExecute = require './psd/lazy_execute.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD ...
@parsed = true parseHeader: -> @header = new Header(@file) @header.parse() parseResources: -> resources = new Resources(@file) @resources = new LazyExecute(resources, @file) .now('skip') .later('parse') .get() parseLayerMask: -> layerMask = new LayerMask(@file, @header) ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
969ddd48118b35cd134364eb7793fce4bf4dd162
2,846
https://github.com/meltingice/psd.js/blob/969ddd48118b35cd134364eb7793fce4bf4dd162/lib/psd.coffee
1
50
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' File = require './psd/file.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file)...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd.coffee
1
41
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' File = require './psd/file.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class...
var File, Header, Image, LayerMask, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coffee'); LayerMask = require('./psd/layer_mask.coffee'); Image = require('./psd/image.coffee'); module.exports = PSD = cl...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd.coffee
1
41
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Header, Image, LayerMask, PSD, Resources, fs; fs = require('fs'); File = require('./psd/file.coffee'); Header = require('./psd/header.coffee'); Resources = require('./psd/resources.coffee'); LayerMask = require('./psd/layer_mask.coffee'); Image = re...
fs = require 'fs' File = require './psd/file.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file)...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd.coffee
1
41
meltingice/psd.js:lib/psd.coffee:1:completion
completion
fs = require 'fs' File = require './psd/file.coffee' Header = require './psd/header.coffee' Resources = require './psd/resources.coffee' LayerMask = require './psd/layer_mask.coffee' Image = require './psd/image.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file)...
@parseResources() @parseLayerMask() @parseImage() @parsed = true parseHeader: -> @header = new Header(@file) @header.parse() parseResources: -> @resources = new Resources(@file) @resources.parse() parseLayerMask: -> @layerMask = new LayerMask(@file, @header) @layerMask.pars...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
c3e7db58a568a9cbfa31ebf197e062844c3f6015
2,846
https://github.com/meltingice/psd.js/blob/c3e7db58a568a9cbfa31ebf197e062844c3f6015/lib/psd.coffee
1
41
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
fs = require 'fs' RSVP = require 'rsvp' File = require './psd/file.coffee' Header = require './psd/header.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file) constructor: (data) -> @file = new File(data) @parsed = false @header = null parse: -> new RSVP.P...
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd.coffee
1
23
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript fs = require 'fs' RSVP = require 'rsvp' File = require './psd/file.coffee' Header = require './psd/header.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file) constructor: (data) -> @file = new File(data) @pars...
var File, Header, PSD, RSVP, fs; fs = require('fs'); RSVP = require('rsvp'); File = require('./psd/file.coffee'); Header = require('./psd/header.coffee'); module.exports = PSD = class PSD { static fromFile(file) { return new PSD(fs.readFileSync(file)); } constructor(data) { this.file = new File(data...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd.coffee
1
23
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, Header, PSD, RSVP, fs; fs = require('fs'); RSVP = require('rsvp'); File = require('./psd/file.coffee'); Header = require('./psd/header.coffee'); module.exports = PSD = class PSD { static fromFile(file) { return new PSD(fs.readFileSync(file)); ...
fs = require 'fs' RSVP = require 'rsvp' File = require './psd/file.coffee' Header = require './psd/header.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file) constructor: (data) -> @file = new File(data) @parsed = false @header = null parse: -> new RSVP.P...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd.coffee
1
23
meltingice/psd.js:lib/psd.coffee:1:completion
completion
fs = require 'fs' RSVP = require 'rsvp' File = require './psd/file.coffee' Header = require './psd/header.coffee' module.exports = class PSD @fromFile: (file) -> new PSD fs.readFileSync(file) constructor: (data) -> @file = new File(data)
@parsed = false @header = null parse: -> new RSVP.Promise (resolve, reject) => return resolve(@) if @parsed @parseHeader().then (header) => @header = header resolve(@) parseHeader: -> new Header(@file).parse()
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
cdb4392ad1cbdc0867201dfcf74736b895689f41
2,846
https://github.com/meltingice/psd.js/blob/cdb4392ad1cbdc0867201dfcf74736b895689f41/lib/psd.coffee
1
23
meltingice/psd.js:lib/psd.coffee:1:raw_corpus
raw_corpus
File = require './psd/file.coffee' module.exports = class PSD constructor: (data) -> @file = new File(data)
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d1de88c83da8dd875e2ec644300667b9ec032e07
2,846
https://github.com/meltingice/psd.js/blob/d1de88c83da8dd875e2ec644300667b9ec032e07/lib/psd.coffee
1
5
meltingice/psd.js:lib/psd.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript File = require './psd/file.coffee' module.exports = class PSD constructor: (data) -> @file = new File(data) ```
var File, PSD; File = require('./psd/file.coffee'); module.exports = PSD = class PSD { constructor(data) { this.file = new File(data); } };
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd.coffee
MIT
d1de88c83da8dd875e2ec644300667b9ec032e07
2,846
https://github.com/meltingice/psd.js/blob/d1de88c83da8dd875e2ec644300667b9ec032e07/lib/psd.coffee
1
5
meltingice/psd.js:lib/psd.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var File, PSD; File = require('./psd/file.coffee'); module.exports = PSD = class PSD { constructor(data) { this.file = new File(data); } }; ```
File = require './psd/file.coffee' module.exports = class PSD constructor: (data) -> @file = new File(data)
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d1de88c83da8dd875e2ec644300667b9ec032e07
2,846
https://github.com/meltingice/psd.js/blob/d1de88c83da8dd875e2ec644300667b9ec032e07/lib/psd.coffee
1
5
meltingice/psd.js:lib/psd.coffee:1:completion
completion
File = require './psd/file.coffee'
module.exports = class PSD constructor: (data) -> @file = new File(data)
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd.coffee
MIT
d1de88c83da8dd875e2ec644300667b9ec032e07
2,846
https://github.com/meltingice/psd.js/blob/d1de88c83da8dd875e2ec644300667b9ec032e07/lib/psd.coffee
1
5
gterrono/houston:test/test.coffee:1:raw_corpus
raw_corpus
wait = (fn, ms=500) -> casper.wait ms, fn test = (name, num_tests, url, fn, wait_time=500) -> casper.test.begin name, num_tests, (test) -> casper.start url, (response) -> fn.bind(@) wait fn, wait_time casper.run -> test.done() test 'User can sign up', 3, 'http://localhost:3000/admin', -> ...
CoffeeScript
gterrono/houston
test/test.coffee
MIT
b74355399640305e4a76e4a1c88599f250296742
802
https://github.com/gterrono/houston/blob/b74355399640305e4a76e4a1c88599f250296742/test/test.coffee
1
44
gterrono/houston:test/test.coffee:1:completion
completion
wait = (fn, ms=500) -> casper.wait ms, fn test = (name, num_tests, url, fn, wait_time=500) -> casper.test.begin name, num_tests, (test) -> casper.start url, (response) -> fn.bind(@) wait fn, wait_time casper.run -> test.done() test 'User can sign up', 3, 'http://localhost:3000/admin', -> ...
test 'User can log out', 1, 'http://localhost:3000/admin/login', -> @click 'a.houston-logout' wait -> @test.assertEval (-> !Meteor.user()?), 'admin logged out successfully' test 'User can log in', 3, 'http://localhost:3000/admin', -> @test.assertUrlMatch /\/admin\/login/, 'redirected to login' @test.assert...
CoffeeScript
CoffeeScript
gterrono/houston
test/test.coffee
MIT
b74355399640305e4a76e4a1c88599f250296742
802
https://github.com/gterrono/houston/blob/b74355399640305e4a76e4a1c88599f250296742/test/test.coffee
1
44
gterrono/houston:test/test.coffee:1:raw_corpus
raw_corpus
wait = (fn, ms=500) -> casper.wait ms, fn test = (name, num_tests, url, fn, wait_time=500) -> casper.test.begin name, num_tests, (test) -> casper.start url, (response) -> fn.bind(@) wait fn, wait_time casper.run -> test.done() test 'User can sign up', 3, 'http://localhost:3000/admin', -> ...
CoffeeScript
gterrono/houston
test/test.coffee
MIT
109dfa4470fa09258330799c3b053304a3ec7e73
802
https://github.com/gterrono/houston/blob/109dfa4470fa09258330799c3b053304a3ec7e73/test/test.coffee
1
44
gterrono/houston:test/test.coffee:1:completion
completion
wait = (fn, ms=500) -> casper.wait ms, fn test = (name, num_tests, url, fn, wait_time=500) -> casper.test.begin name, num_tests, (test) -> casper.start url, (response) -> fn.bind(@) wait fn, wait_time casper.run -> test.done() test 'User can sign up', 3, 'http://localhost:3000/admin', -> ...
test 'User can log out', 1, 'http://localhost:3000/admin/login', -> @click 'a.houston-logout' wait -> @test.assertEval (-> !Meteor.user()?), 'admin logged out successfully' test 'User can log in', 3, 'http://localhost:3000/admin', -> @test.assertUrlMatch /\/admin\/login/, 'redirected to login' @test.assert...
CoffeeScript
CoffeeScript
gterrono/houston
test/test.coffee
MIT
109dfa4470fa09258330799c3b053304a3ec7e73
802
https://github.com/gterrono/houston/blob/109dfa4470fa09258330799c3b053304a3ec7e73/test/test.coffee
1
44
gterrono/houston:test/test.coffee:1:raw_corpus
raw_corpus
wait = (fn, ms=500) -> casper.wait ms, fn test = (name, num_tests, url, fn) -> casper.test.begin name, num_tests, (test) -> casper.start url, (response) -> fn.bind(@) wait fn casper.run -> test.done() test 'User can sign up', 3, 'http://localhost:3000/admin', -> @test.assertUrlMatch /\/a...
CoffeeScript
gterrono/houston
test/test.coffee
MIT
8394618788504f634f525fa0d0f8723604628b86
802
https://github.com/gterrono/houston/blob/8394618788504f634f525fa0d0f8723604628b86/test/test.coffee
1
39
gterrono/houston:test/test.coffee:1:completion
completion
wait = (fn, ms=500) -> casper.wait ms, fn test = (name, num_tests, url, fn) -> casper.test.begin name, num_tests, (test) -> casper.start url, (response) -> fn.bind(@) wait fn casper.run -> test.done() test 'User can sign up', 3, 'http://localhost:3000/admin', -> @test.assertUrlMatch /\/a...
Meteor.user().emails[0].address == 'ad@min.com'), 'admin logged in successfully' test 'User can log out', 1, 'http://localhost:3000/admin/login', -> @click 'a.houston-logout' wait -> @test.assertEval (-> !Meteor.user()?), 'admin logged out successfully' test 'User can log in', 3, 'http://localhost:3000/...
CoffeeScript
CoffeeScript
gterrono/houston
test/test.coffee
MIT
8394618788504f634f525fa0d0f8723604628b86
802
https://github.com/gterrono/houston/blob/8394618788504f634f525fa0d0f8723604628b86/test/test.coffee
1
39
gterrono/houston:test/test.coffee:1:raw_corpus
raw_corpus
casper.test.begin 'User can sign up', 3, (test) -> casper.start 'http://localhost:3000/admin', (response) -> casper.wait 500, -> @test.assertUrlMatch /\/admin\/login/, 'redirected to login' @test.assertExists 'input[value="Sign up"]', 'sign up form exists' @fill '#houston-sign-in-form' '...
CoffeeScript
gterrono/houston
test/test.coffee
MIT
12c5f37d75958ee2457a4836c934e7bd27704412
802
https://github.com/gterrono/houston/blob/12c5f37d75958ee2457a4836c934e7bd27704412/test/test.coffee
1
24
gterrono/houston:test/test.coffee:1:completion
completion
casper.test.begin 'User can sign up', 3, (test) -> casper.start 'http://localhost:3000/admin', (response) -> casper.wait 500, -> @test.assertUrlMatch /\/admin\/login/, 'redirected to login' @test.assertExists 'input[value="Sign up"]', 'sign up form exists' @fill '#houston-sign-in-form' '...
'admin logged in successfully' casper.run -> test.done() casper.test.begin 'User can log out', 1, (test) -> casper.start 'http://localhost:3000/admin/login', (response) -> casper.wait 500, -> @click 'a.houston-logout' casper.wait 500, -> @test.assertEval (-> !Meteor.user()?), 'admin log...
CoffeeScript
CoffeeScript
gterrono/houston
test/test.coffee
MIT
12c5f37d75958ee2457a4836c934e7bd27704412
802
https://github.com/gterrono/houston/blob/12c5f37d75958ee2457a4836c934e7bd27704412/test/test.coffee
1
24
gterrono/houston:test/test.coffee:1:raw_corpus
raw_corpus
casper.test.begin "User can sign up", 3, (test) -> casper.start "http://localhost:3000/admin", (response) -> casper.wait 500, -> @test.assertUrlMatch /\/admin\/login/, 'redirected to login' @test.assertExists 'input[value="Sign up"]', 'sign up form exists' @fill '#houston-sign-in-form' '...
CoffeeScript
gterrono/houston
test/test.coffee
MIT
2548b5c766a73f89ef03643432b29f272a806698
802
https://github.com/gterrono/houston/blob/2548b5c766a73f89ef03643432b29f272a806698/test/test.coffee
1
16
gterrono/houston:test/test.coffee:1:completion
completion
casper.test.begin "User can sign up", 3, (test) -> casper.start "http://localhost:3000/admin", (response) -> casper.wait 500, -> @test.assertUrlMatch /\/admin\/login/, 'redirected to login' @test.assertExists 'input[value="Sign up"]', 'sign up form exists' @fill '#houston-sign-in-form' '...
true casper.wait 500, -> @test.assertEval (-> Meteor.user().emails[0].address == 'ad@min.com'), 'admin logged in successfully' casper.run -> test.done()
CoffeeScript
CoffeeScript
gterrono/houston
test/test.coffee
MIT
2548b5c766a73f89ef03643432b29f272a806698
802
https://github.com/gterrono/houston/blob/2548b5c766a73f89ef03643432b29f272a806698/test/test.coffee
1
16
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:raw_corpus
raw_corpus
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/runs-next-command.coffee
1
35
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, w...
// This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now, what we want to do is tell commander to run the `run`...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/runs-next-command.coffee
1
35
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now...
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/runs-next-command.coffee
1
35
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:completion
completion
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
run: => currentCommandIndex = process.argv.indexOf(@currentCommandName) if nextCommand = @findChainedCommand(process.argv.slice(currentCommandIndex + 1)) nextCommandIndex = process.argv.indexOf(nextCommand._name, currentCommandIndex + 1) process.argv = process.argv.slice(0,2).concat(process.argv.sli...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/cli/runs-next-command.coffee
1
35
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:raw_corpus
raw_corpus
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, w...
// This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now, what we want to do is tell commander to run the `run`...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now...
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:completion
completion
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
run: => return unless @nextCommand? process.argv = @exciseCurrentCommandFromArgv(process.argv) @commander.parse(process.argv) #private findChainedCommand: -> _.find @commander.commands, (c) => _.includes(@commander.args, c._name) exciseCurrentCommandFromArgv: (argv) -> currentCommandI...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
11ff3633ffd8c2bb055376cda0faf45f4d24728d
1,168
https://github.com/linemanjs/lineman/blob/11ff3633ffd8c2bb055376cda0faf45f4d24728d/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:raw_corpus
raw_corpus
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, w...
// This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now, what we want to do is tell commander to run the `run`...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now...
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:completion
completion
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
run: => return unless @nextCommand? process.argv = @exciseCurrentCommandFromArgv(process.argv) @commander.parse(process.argv) #private findChainedCommand: -> _(@commander.commands).find (c) => _(@commander.args).include(c._name) exciseCurrentCommandFromArgv: (argv) -> currentCommandIn...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
75f50e3fa24232bbdd4f2587e8cde82a0e106b34
1,168
https://github.com/linemanjs/lineman/blob/75f50e3fa24232bbdd4f2587e8cde82a0e106b34/lib/cli/runs-next-command.coffee
1
39
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:raw_corpus
raw_corpus
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/runs-next-command.coffee
1
34
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, w...
// This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now, what we want to do is tell commander to run the `run`...
CoffeeScript
JavaScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/runs-next-command.coffee
1
34
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // This thing is somewhat disgusting. Best that I use an example to explain: // Suppose the user enters "lineman clean run" // This means when the `clean` action runs, ARGV will look like this: // ["node", "/usr/.../lineman/cli.js", "clean", "run"] // Now...
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
JavaScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/runs-next-command.coffee
1
34
linemanjs/lineman:lib/cli/runs-next-command.coffee:1:completion
completion
# This thing is somewhat disgusting. Best that I use an example to explain: # Suppose the user enters "lineman clean run" # This means when the `clean` action runs, ARGV will look like this: # ["node", "/usr/.../lineman/cli.js", "clean", "run"] # Now, what we want to do is tell commander to run the `run` acti...
@nextCommand = @findChainedCommand() run: => return unless @nextCommand? process.argv = @exciseCurrentCommandFromArgv(process.argv) @commander.parse(process.argv) #private findChainedCommand: -> _(@commander.commands).find (c) => _(@commander.args).include(c._name) exciseCurrentCommand...
CoffeeScript
CoffeeScript
linemanjs/lineman
lib/cli/runs-next-command.coffee
MIT
da7b69982e44220bdd107798d86abc78749dc125
1,168
https://github.com/linemanjs/lineman/blob/da7b69982e44220bdd107798d86abc78749dc125/lib/cli/runs-next-command.coffee
1
34
mojs/mojs:src/shapes/shapesMap.coffee:1:raw_corpus
raw_corpus
h = require 'src/h' Bit = require('./bit').default Custom = require('./custom').default Circle = require './circle' Line = require './line' Zigzag = require './zigzag' Rect = require './rect' Polygon = require './polygon' Cross = require './cross' Curve = require('./curve').de...
CoffeeScript
mojs/mojs
src/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/shapesMap.coffee
1
37
mojs/mojs:src/shapes/shapesMap.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript h = require 'src/h' Bit = require('./bit').default Custom = require('./custom').default Circle = require './circle' Line = require './line' Zigzag = require './zigzag' Rect = require './rect' Polygon = require './polygon' Cross ...
var Bit, BitsMap, Circle, Cross, Curve, Custom, Equal, Line, Polygon, Rect, Zigzag, h; h = require('src/h'); Bit = require('./bit').default; Custom = require('./custom').default; Circle = require('./circle'); Line = require('./line'); Zigzag = require('./zigzag'); Rect = require('./rect'); Polygon = require('./...
CoffeeScript
JavaScript
mojs/mojs
src/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/shapesMap.coffee
1
37
mojs/mojs:src/shapes/shapesMap.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Bit, BitsMap, Circle, Cross, Curve, Custom, Equal, Line, Polygon, Rect, Zigzag, h; h = require('src/h'); Bit = require('./bit').default; Custom = require('./custom').default; Circle = require('./circle'); Line = require('./line'); Zigzag = require('./zigz...
h = require 'src/h' Bit = require('./bit').default Custom = require('./custom').default Circle = require './circle' Line = require './line' Zigzag = require './zigzag' Rect = require './rect' Polygon = require './polygon' Cross = require './cross' Curve = require('./curve').de...
JavaScript
CoffeeScript
mojs/mojs
src/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/shapesMap.coffee
1
37
mojs/mojs:src/shapes/shapesMap.coffee:1:completion
completion
h = require 'src/h' Bit = require('./bit').default Custom = require('./custom').default Circle = require './circle' Line = require './line' Zigzag = require './zigzag' Rect = require './rect' Polygon = require './polygon' Cross = require './cross' Curve = require('./curve').de...
line: Line zigzag: Zigzag rect: Rect polygon: Polygon cross: Cross equal: Equal curve: Curve getShape:(name)-> @[name] or h.error "no \"#{name}\" shape available yet, please choose from this list:", [ 'circle', 'line', 'zigzag', 'rect', 'polygon', 'cross', 'equal', 'curve' ] #...
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/shapesMap.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/shapesMap.coffee
1
37
mojs/mojs:src/shapes/shapesMap.coffee:1:raw_corpus
raw_corpus
h = require 'src/h' Bit = require('./bit').default or require('./bit'); Custom = require('./custom').default or require('./custom'); Circle = require './circle' Line = require './line' Zigzag = require './zigzag' Rect = require './rect' Polygon = require './polygon' Cross = requir...
CoffeeScript
mojs/mojs
src/shapes/shapesMap.coffee
MIT
768850a20165488e3098a3003b153e905266dac8
18,698
https://github.com/mojs/mojs/blob/768850a20165488e3098a3003b153e905266dac8/src/shapes/shapesMap.coffee
1
37