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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ichord/At.js:src/textareaController.coffee:1:completion | completion | class TextareaController extends Controller
# Catch query string behind the at char
#
# @return [Hash] Info of the query. Look likes this: {'text': "hello", 'head_pos': 0, 'end_pos': 0}
catch_query: ->
content = @$inputor.val()
caret_pos = @$inputor.caret('pos', {iframe: @app.iframe})
subtext = cont... | # @return [Hash] the offset which look likes this: {top: y, left: x, bottom: bottom}
rect: ->
return if not c = @$inputor.caret('offset', @pos - 1, {iframe: @app.iframe})
if @app.iframe and not @app.iframeStandalone
iframe_offset = $(@app.iframe).offset()
c.left += iframe_offset.left
c.top +... | CoffeeScript | CoffeeScript | ichord/At.js | src/textareaController.coffee | MIT | b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0 | 5,250 | https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/textareaController.coffee | 1 | 47 |
octoblu/meshblu:test/lib/logEvent-spec.coffee:1:raw_corpus | raw_corpus | _ = require 'lodash'
describe 'logEvent', ->
beforeEach =>
@sut = require '../../lib/logEvent'
@fakeMoment = {toISOString : sinon.stub()}
@mockMoment = =>
@fakeMoment
@fakeTimestamp = 'I am an ISO String'
@fakeMoment.toISOString.returns @fakeTimestamp
@dependencies = config:... | CoffeeScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 1 | 50 | ||
octoblu/meshblu:test/lib/logEvent-spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_ = require 'lodash'
describe 'logEvent', ->
beforeEach =>
@sut = require '../../lib/logEvent'
@fakeMoment = {toISOString : sinon.stub()}
@mockMoment = =>
@fakeMoment
@fakeTimestamp = 'I am an ISO String'
@fakeMoment.toISO... | var _;
_ = require('lodash');
describe('logEvent', function() {
beforeEach(() => {
this.sut = require('../../lib/logEvent');
this.fakeMoment = {
toISOString: sinon.stub()
};
this.mockMoment = () => {
return this.fakeMoment;
};
this.fakeTimestamp = 'I am an ISO String';
this.f... | CoffeeScript | JavaScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 1 | 50 |
octoblu/meshblu:test/lib/logEvent-spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _;
_ = require('lodash');
describe('logEvent', function() {
beforeEach(() => {
this.sut = require('../../lib/logEvent');
this.fakeMoment = {
toISOString: sinon.stub()
};
this.mockMoment = () => {
return this.fakeMoment;
};
... | _ = require 'lodash'
describe 'logEvent', ->
beforeEach =>
@sut = require '../../lib/logEvent'
@fakeMoment = {toISOString : sinon.stub()}
@mockMoment = =>
@fakeMoment
@fakeTimestamp = 'I am an ISO String'
@fakeMoment.toISOString.returns @fakeTimestamp
@dependencies = config:... | JavaScript | CoffeeScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 1 | 50 |
octoblu/meshblu:test/lib/logEvent-spec.coffee:1:completion | completion | _ = require 'lodash'
describe 'logEvent', ->
beforeEach =>
@sut = require '../../lib/logEvent'
@fakeMoment = {toISOString : sinon.stub()}
@mockMoment = =>
@fakeMoment
@fakeTimestamp = 'I am an ISO String'
@fakeMoment.toISOString.returns @fakeTimestamp
@dependencies = config:... | @data = something: 'here'
@sut @eventCode, @data, @dependencies
it 'should call toISOString on fakeMoment', =>
expect(@fakeMoment.toISOString).to.have.been.called
it 'should log with timestamp and eventCode', =>
dataWithAdditions = _.extend {}, @data, timestamp: @fakeTimestamp, eve... | CoffeeScript | CoffeeScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 1 | 50 |
octoblu/meshblu:test/lib/logEvent-spec.coffee:2:raw_corpus | raw_corpus | describe 'when eventCode is defined', =>
beforeEach =>
@eventCode = 201
@data = something: 'here', uuid: 'd0269f1f-214f-4a2f-9e79-bc248f229ec1'
@sut @eventCode, @data, @dependencies
it 'should log with the uuid as the type, adding timestamp and eventCode', =>
dataWithAdditio... | CoffeeScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 51 | 60 | ||
octoblu/meshblu:test/lib/logEvent-spec.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe 'when eventCode is defined', =>
beforeEach =>
@eventCode = 201
@data = something: 'here', uuid: 'd0269f1f-214f-4a2f-9e79-bc248f229ec1'
@sut @eventCode, @data, @dependencies
it 'should log with the uuid as the type, ad... | describe('when eventCode is defined', () => {
beforeEach(() => {
this.eventCode = 201;
this.data = {
something: 'here',
uuid: 'd0269f1f-214f-4a2f-9e79-bc248f229ec1'
};
return this.sut(this.eventCode, this.data, this.dependencies);
});
return it('should log with the uuid as the type, ad... | CoffeeScript | JavaScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 51 | 60 |
octoblu/meshblu:test/lib/logEvent-spec.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe('when eventCode is defined', () => {
beforeEach(() => {
this.eventCode = 201;
this.data = {
something: 'here',
uuid: 'd0269f1f-214f-4a2f-9e79-bc248f229ec1'
};
return this.sut(this.eventCode, this.data, this.dependencies);
})... | describe 'when eventCode is defined', =>
beforeEach =>
@eventCode = 201
@data = something: 'here', uuid: 'd0269f1f-214f-4a2f-9e79-bc248f229ec1'
@sut @eventCode, @data, @dependencies
it 'should log with the uuid as the type, adding timestamp and eventCode', =>
dataWithAdditio... | JavaScript | CoffeeScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 51 | 60 |
octoblu/meshblu:test/lib/logEvent-spec.coffee:2:completion | completion | describe 'when eventCode is defined', =>
beforeEach =>
@eventCode = 201
@data = something: 'here', uuid: 'd0269f1f-214f-4a2f-9e79-bc248f229ec1' | @sut @eventCode, @data, @dependencies
it 'should log with the uuid as the type, adding timestamp and eventCode', =>
dataWithAdditions = _.extend {}, @data, timestamp: @fakeTimestamp, eventCode: @eventCode
expect(@fakeConsoleLogger.log).to.have.been.calledWith 'info', dataWithAdditions | CoffeeScript | CoffeeScript | octoblu/meshblu | test/lib/logEvent-spec.coffee | MIT | 5d7a8763ff17eb9e371b2f126ab5d8e57c44c317 | 815 | https://github.com/octoblu/meshblu/blob/5d7a8763ff17eb9e371b2f126ab5d8e57c44c317/test/lib/logEvent-spec.coffee | 51 | 60 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:1:raw_corpus | raw_corpus | module.exports =
# methods need to implement
# not complete...
getInitialState: ->
showMentionMenu: false
showEmojiMenu: false
showTopicMenu: false
showCommandMenu: false
members: @getMembers()
contacts: @getAllContacts()
topics: @getTopics()
suggestEmojis: []
suggestMembers:... | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 21 | 70 | ||
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
# methods need to implement
# not complete...
getInitialState: ->
showMentionMenu: false
showEmojiMenu: false
showTopicMenu: false
showCommandMenu: false
members: @getMembers()
contacts: @getAllContacts()
topic... | module.exports = {
// methods need to implement
// not complete...
getInitialState: function() {
return {
showMentionMenu: false,
showEmojiMenu: false,
showTopicMenu: false,
showCommandMenu: false,
members: this.getMembers(),
contacts: this.getAllContacts(),
topics: t... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 21 | 70 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
// methods need to implement
// not complete...
getInitialState: function() {
return {
showMentionMenu: false,
showEmojiMenu: false,
showTopicMenu: false,
showCommandMenu: false,
members: this.getMembers(),... | module.exports =
# methods need to implement
# not complete...
getInitialState: ->
showMentionMenu: false
showEmojiMenu: false
showTopicMenu: false
showCommandMenu: false
members: @getMembers()
contacts: @getAllContacts()
topics: @getTopics()
suggestEmojis: []
suggestMembers:... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 21 | 70 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:1:completion | completion | module.exports =
# methods need to implement
# not complete...
getInitialState: ->
showMentionMenu: false
showEmojiMenu: false
showTopicMenu: false
showCommandMenu: false
members: @getMembers()
contacts: @getAllContacts()
topics: @getTopics()
suggestEmojis: []
suggestMembers:... | getMembers: ->
members =
switch @props._channelType
when 'chat' then Immutable.List [query.contactsByOne recorder.getState(), @props._teamId, @props._channelId]
when 'room' then query.membersBy(recorder.getState(), @props._teamId, @props._channelId)
when 'story' then query.storiesByOne... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 21 | 70 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:2:raw_corpus | raw_corpus | @state.contacts
.map (contact) =>
prefs = query.contactPrefsBy(recorder.getState(), @props._teamId, contact.get('_id'))
name = prefs?.get('alias') or contact.get('name')
category: 'at'
model: contact.get('_id')
view: name
.unshift Immutable.fromJS
category: 'at'
model: ... | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 71 | 120 | ||
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
@state.contacts
.map (contact) =>
prefs = query.contactPrefsBy(recorder.getState(), @props._teamId, contact.get('_id'))
name = prefs?.get('alias') or contact.get('name')
category: 'at'
model: contact.get('_id')
view: name
.un... | this.state.contacts.map((contact) => {
var name, prefs;
prefs = query.contactPrefsBy(recorder.getState(), this.props._teamId, contact.get('_id'));
name = (prefs != null ? prefs.get('alias') : void 0) || contact.get('name');
return {
category: 'at',
model: contact.get('_id'),
view: name
};
}).unshi... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 71 | 120 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
this.state.contacts.map((contact) => {
var name, prefs;
prefs = query.contactPrefsBy(recorder.getState(), this.props._teamId, contact.get('_id'));
name = (prefs != null ? prefs.get('alias') : void 0) || contact.get('name');
return {
category: 'at',
... | @state.contacts
.map (contact) =>
prefs = query.contactPrefsBy(recorder.getState(), @props._teamId, contact.get('_id'))
name = prefs?.get('alias') or contact.get('name')
category: 'at'
model: contact.get('_id')
view: name
.unshift Immutable.fromJS
category: 'at'
model: ... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 71 | 120 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:2:completion | completion | @state.contacts
.map (contact) =>
prefs = query.contactPrefsBy(recorder.getState(), @props._teamId, contact.get('_id'))
name = prefs?.get('alias') or contact.get('name')
category: 'at'
model: contact.get('_id')
view: name
.unshift Immutable.fromJS
category: 'at'
model: ... | filterMembers: (name) ->
_userId = query.userId(recorder.getState())
members = @state.members
.filter (member) ->
isSelf = member.get('_id') is _userId
not isSelf
if @props._channelType isnt 'chat'
members = Immutable.fromJS([assemble.allMembers()]).concat members
memberIds = membe... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 71 | 120 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:3:raw_corpus | raw_corpus | else Immutable.List()
suggestContacts = switch
when name?.length > 0 then search.forMembers contacts, name, getAlias: @getContactAlias
when name? then contacts
else Immutable.List()
suggestMembers: suggestMembers
suggestContacts: suggestContacts
showMentionMenu: ((suggestMembers.size ... | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 121 | 170 | ||
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:3:completion | completion | else Immutable.List()
suggestContacts = switch
when name?.length > 0 then search.forMembers contacts, name, getAlias: @getContactAlias
when name? then contacts
else Immutable.List()
suggestMembers: suggestMembers
suggestContacts: suggestContacts
showMentionMenu: ((suggestMembers.size ... | @state.topics.filter (topic) ->
search.forTopic topic, name
when name?
@state.topics
else Immutable.List()
suggestTopics: suggestTopics
showTopicMenu: suggestTopics.size > 0
filterCommands: (name) ->
commands = @getCommands().filter (command) ->
command.get('trigger')... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 121 | 170 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:4:raw_corpus | raw_corpus | renderTopicMenu: (hasTopicMenu) ->
return null if not hasTopicMenu
TopicMenu
onSelect: @onTopicSelect
topics: @state.suggestTopics
_teamId: @props._teamId
renderEmojiMenu: (hasEmojiMenu) ->
return null if not hasEmojiMenu
EmojiMenu
suggests: @state.suggestEmojis[...5]
on... | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 171 | 189 | ||
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
renderTopicMenu: (hasTopicMenu) ->
return null if not hasTopicMenu
TopicMenu
onSelect: @onTopicSelect
topics: @state.suggestTopics
_teamId: @props._teamId
renderEmojiMenu: (hasEmojiMenu) ->
return null if not hasEmojiMenu
Emoj... | ({
renderTopicMenu: function(hasTopicMenu) {
if (!hasTopicMenu) {
return null;
}
return TopicMenu({
onSelect: this.onTopicSelect,
topics: this.state.suggestTopics,
_teamId: this.props._teamId
});
},
renderEmojiMenu: function(hasEmojiMenu) {
if (!hasEmojiMenu) {
re... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 171 | 189 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
renderTopicMenu: function(hasTopicMenu) {
if (!hasTopicMenu) {
return null;
}
return TopicMenu({
onSelect: this.onTopicSelect,
topics: this.state.suggestTopics,
_teamId: this.props._teamId
});
},
renderEmojiMenu: fun... | renderTopicMenu: (hasTopicMenu) ->
return null if not hasTopicMenu
TopicMenu
onSelect: @onTopicSelect
topics: @state.suggestTopics
_teamId: @props._teamId
renderEmojiMenu: (hasEmojiMenu) ->
return null if not hasEmojiMenu
EmojiMenu
suggests: @state.suggestEmojis[...5]
on... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 171 | 189 |
jianliaoim/talk-os:talk-web/client/mixin/suggest-textbox.coffee:4:completion | completion | renderTopicMenu: (hasTopicMenu) ->
return null if not hasTopicMenu
TopicMenu
onSelect: @onTopicSelect
topics: @state.suggestTopics
_teamId: @props._teamId
renderEmojiMenu: (hasEmojiMenu) ->
return null if not hasEmojiMenu | EmojiMenu
suggests: @state.suggestEmojis[...5]
onSelect: @onEmojiMenuSelect
renderCommandMenu: (hasCommandMenu) ->
return null if not hasCommandMenu
CommandMenu
commands: @state.suggestCommands
onSelect: @onCommandMenuSelect | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/mixin/suggest-textbox.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/suggest-textbox.coffee | 171 | 189 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:raw_corpus | raw_corpus | module.exports =
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity']) | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin/screen-shake.coffee | 1 | 9 | ||
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity'])
``` | module.exports = {
title: 'Screen Shake',
description: 'Shakes the screen on typing.',
enable: function(api) {
return this.api = api;
},
onInput: function(cursor, screenPosition, input, data) {
return this.api.shakeScreen(data['intensity']);
}
}; | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin/screen-shake.coffee | 1 | 9 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
title: 'Screen Shake',
description: 'Shakes the screen on typing.',
enable: function(api) {
return this.api = api;
},
onInput: function(cursor, screenPosition, input, data) {
return this.api.shakeScreen(data['intensity']);
}
}... | module.exports =
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity']) | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin/screen-shake.coffee | 1 | 9 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:completion | completion | module.exports =
title: 'Screen Shake'
description: 'Shakes the screen on typing.' | enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity']) | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/plugin/screen-shake.coffee | 1 | 9 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:raw_corpus | raw_corpus | module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity']) | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/plugin/screen-shake.coffee | 1 | 10 | ||
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity'])
``` | module.exports = {
info: {
title: 'Screen Shake',
description: 'Shakes the screen on typing.'
},
enable: function(api) {
return this.api = api;
},
onInput: function(cursor, screenPosition, input, data) {
return this.api.shakeScreen(data['intensity']);
}
}; | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/plugin/screen-shake.coffee | 1 | 10 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
info: {
title: 'Screen Shake',
description: 'Shakes the screen on typing.'
},
enable: function(api) {
return this.api = api;
},
onInput: function(cursor, screenPosition, input, data) {
return this.api.shakeScreen(data['i... | module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity']) | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/plugin/screen-shake.coffee | 1 | 10 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:completion | completion | module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.' | enable: (api) ->
@api = api
onInput: (cursor, screenPosition, input, data) ->
@api.shakeScreen(data['intensity']) | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/plugin/screen-shake.coffee | 1 | 10 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:raw_corpus | raw_corpus | module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen() | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 779de77e021589d3ab9a8e665e3210e91cdaa5f0 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/779de77e021589d3ab9a8e665e3210e91cdaa5f0/lib/plugin/screen-shake.coffee | 1 | 10 | ||
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen()
``` | module.exports = {
info: {
title: 'Screen Shake',
description: 'Shakes the screen on typing.'
},
enable: function(api) {
return this.api = api;
},
onInput: function() {
return this.api.shakeScreen();
}
}; | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 779de77e021589d3ab9a8e665e3210e91cdaa5f0 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/779de77e021589d3ab9a8e665e3210e91cdaa5f0/lib/plugin/screen-shake.coffee | 1 | 10 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
info: {
title: 'Screen Shake',
description: 'Shakes the screen on typing.'
},
enable: function(api) {
return this.api = api;
},
onInput: function() {
return this.api.shakeScreen();
}
};
``` | module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.'
enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen() | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 779de77e021589d3ab9a8e665e3210e91cdaa5f0 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/779de77e021589d3ab9a8e665e3210e91cdaa5f0/lib/plugin/screen-shake.coffee | 1 | 10 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:completion | completion | module.exports =
info:
title: 'Screen Shake'
description: 'Shakes the screen on typing.' | enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 779de77e021589d3ab9a8e665e3210e91cdaa5f0 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/779de77e021589d3ab9a8e665e3210e91cdaa5f0/lib/plugin/screen-shake.coffee | 1 | 10 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:raw_corpus | raw_corpus | module.exports =
enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen() | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/plugin/screen-shake.coffee | 1 | 6 | ||
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen()
``` | module.exports = {
enable: function(api) {
return this.api = api;
},
onInput: function() {
return this.api.shakeScreen();
}
}; | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/plugin/screen-shake.coffee | 1 | 6 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
enable: function(api) {
return this.api = api;
},
onInput: function() {
return this.api.shakeScreen();
}
};
``` | module.exports =
enable: (api) ->
@api = api
onInput: ->
@api.shakeScreen() | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/plugin/screen-shake.coffee | 1 | 6 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:completion | completion | module.exports =
enable: (api) ->
@api = api | onInput: ->
@api.shakeScreen() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/plugin/screen-shake.coffee | 1 | 6 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:raw_corpus | raw_corpus | module.exports =
enable: (api) ->
@api = api
onChangePane: (editor, editorElement) ->
@editorElement = editorElement
onInput: ->
@api.shakeScreen @editorElement | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/plugin/screen-shake.coffee | 1 | 9 | ||
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
enable: (api) ->
@api = api
onChangePane: (editor, editorElement) ->
@editorElement = editorElement
onInput: ->
@api.shakeScreen @editorElement
``` | module.exports = {
enable: function(api) {
return this.api = api;
},
onChangePane: function(editor, editorElement) {
return this.editorElement = editorElement;
},
onInput: function() {
return this.api.shakeScreen(this.editorElement);
}
}; | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/plugin/screen-shake.coffee | 1 | 9 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
enable: function(api) {
return this.api = api;
},
onChangePane: function(editor, editorElement) {
return this.editorElement = editorElement;
},
onInput: function() {
return this.api.shakeScreen(this.editorElement);
}
};
``... | module.exports =
enable: (api) ->
@api = api
onChangePane: (editor, editorElement) ->
@editorElement = editorElement
onInput: ->
@api.shakeScreen @editorElement | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/plugin/screen-shake.coffee | 1 | 9 |
JoelBesada/activate-power-mode:lib/plugin/screen-shake.coffee:1:completion | completion | module.exports =
enable: (api) ->
@api = api | onChangePane: (editor, editorElement) ->
@editorElement = editorElement
onInput: ->
@api.shakeScreen @editorElement | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/plugin/screen-shake.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/plugin/screen-shake.coffee | 1 | 9 |
jianliaoim/talk-os:talk-web/test/spec/actions/favorite.spec.coffee:1:raw_corpus | raw_corpus | xdescribe 'Actions: favorite', ->
beforeEach ->
@action = require 'actions/favorite'
@api = require 'network/api'
describe 'Method: createFavorite', ->
it 'should call api', ->
spyOn(@api.favorites.create, 'post').and.callThrough()
message = id: 1
config =
data:
_m... | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/actions/favorite.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/favorite.spec.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-web/test/spec/actions/favorite.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
xdescribe 'Actions: favorite', ->
beforeEach ->
@action = require 'actions/favorite'
@api = require 'network/api'
describe 'Method: createFavorite', ->
it 'should call api', ->
spyOn(@api.favorites.create, 'post').and.callThrough()
... | xdescribe('Actions: favorite', function() {
beforeEach(function() {
this.action = require('actions/favorite');
return this.api = require('network/api');
});
describe('Method: createFavorite', function() {
return it('should call api', function() {
var config, message;
spyOn(this.api.favorit... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/test/spec/actions/favorite.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/favorite.spec.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/test/spec/actions/favorite.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
xdescribe('Actions: favorite', function() {
beforeEach(function() {
this.action = require('actions/favorite');
return this.api = require('network/api');
});
describe('Method: createFavorite', function() {
return it('should call api', function() {
... | xdescribe 'Actions: favorite', ->
beforeEach ->
@action = require 'actions/favorite'
@api = require 'network/api'
describe 'Method: createFavorite', ->
it 'should call api', ->
spyOn(@api.favorites.create, 'post').and.callThrough()
message = id: 1
config =
data:
_m... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/actions/favorite.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/favorite.spec.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/test/spec/actions/favorite.spec.coffee:1:completion | completion | xdescribe 'Actions: favorite', ->
beforeEach ->
@action = require 'actions/favorite'
@api = require 'network/api'
describe 'Method: createFavorite', ->
it 'should call api', ->
spyOn(@api.favorites.create, 'post').and.callThrough()
message = id: 1
config =
data:
_m... | queryParams:
_teamId: teamId
@action.readFavorite(teamId)
expect(@api.favorites.read.get).toHaveBeenCalledWith config
describe 'Method: removeFavorite', ->
it 'should call api', ->
spyOn(@api.favorites.remove, 'delete').and.callThrough()
messageId = 1
config =
pa... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/actions/favorite.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/actions/favorite.spec.coffee | 1 | 50 |
soyjavi/QuoJS:spec/1_core.coffee:1:raw_corpus | raw_corpus | describe "Core", ->
body = undefined
beforeEach ->
body = $$(document.body)
document.body.innerHTML = """<section id="quo" class="quo"></section>"""
it "is healthy", ->
expect(Quo).toBeTruthy()
expect($$).toBeTruthy()
it "select body", ->
expect(body).toBeTruthy()
expect(body.lengt... | CoffeeScript | soyjavi/QuoJS | spec/1_core.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/spec/1_core.coffee | 1 | 40 | ||
soyjavi/QuoJS:spec/1_core.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
describe "Core", ->
body = undefined
beforeEach ->
body = $$(document.body)
document.body.innerHTML = """<section id="quo" class="quo"></section>"""
it "is healthy", ->
expect(Quo).toBeTruthy()
expect($$).toBeTruthy()
it "select body... | describe("Core", function() {
var body;
body = void 0;
beforeEach(function() {
body = $$(document.body);
return document.body.innerHTML = `<section id="quo" class="quo"></section>`;
});
it("is healthy", function() {
expect(Quo).toBeTruthy();
return expect($$).toBeTruthy();
});
it("select b... | CoffeeScript | JavaScript | soyjavi/QuoJS | spec/1_core.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/spec/1_core.coffee | 1 | 40 |
soyjavi/QuoJS:spec/1_core.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
describe("Core", function() {
var body;
body = void 0;
beforeEach(function() {
body = $$(document.body);
return document.body.innerHTML = `<section id="quo" class="quo"></section>`;
});
it("is healthy", function() {
expect(Quo).toBeTruthy();
... | describe "Core", ->
body = undefined
beforeEach ->
body = $$(document.body)
document.body.innerHTML = """<section id="quo" class="quo"></section>"""
it "is healthy", ->
expect(Quo).toBeTruthy()
expect($$).toBeTruthy()
it "select body", ->
expect(body).toBeTruthy()
expect(body.lengt... | JavaScript | CoffeeScript | soyjavi/QuoJS | spec/1_core.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/spec/1_core.coffee | 1 | 40 |
soyjavi/QuoJS:spec/1_core.coffee:1:completion | completion | describe "Core", ->
body = undefined
beforeEach ->
body = $$(document.body)
document.body.innerHTML = """<section id="quo" class="quo"></section>"""
it "is healthy", ->
expect(Quo).toBeTruthy()
expect($$).toBeTruthy()
it "select body", ->
expect(body).toBeTruthy()
expect(body.lengt... | tag = $$ "section"
expect(tag).toBeTruthy()
expect(tag.length > 0).toBeTruthy()
it "select by Id", ->
id = $$ "#quo"
expect(id).toBeTruthy()
expect(id.length > 0).toBeTruthy()
it "select by className", ->
className = $$ ".quo"
expect(className).toBeTruthy()
expect(className.lengt... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | spec/1_core.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/spec/1_core.coffee | 1 | 40 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-contrib-watch"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-contrib-watch"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%... | module.exports = function(lineman) {
return {
config: {
watch: {
options: {
spawn: false,
module: "grunt-contrib-watch"
},
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat:js"]
},
coffee: {
... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
watch: {
options: {
spawn: false,
module: "grunt-contrib-watch"
},
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
ta... | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-contrib-watch"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-contrib-watch"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:... | tasks: ["concat:css"]
less:
files: ["app/css/**/*.less", "vendor/css/**/*.less"]
tasks: ["learnAboutLinemanPlugin:lineman-less"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat:css"]
pages:
files: ["<%= files.pages.s... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 3ba1ad450b03233ec464f175528a7100ae9d38f4 | 1,168 | https://github.com/linemanjs/lineman/blob/3ba1ad450b03233ec464f175528a7100ae9d38f4/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%... | module.exports = function(lineman) {
return {
config: {
watch: {
options: {
spawn: false,
module: "grunt-watch-nospawn"
},
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat:js"]
},
coffee: {
... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 3ba1ad450b03233ec464f175528a7100ae9d38f4 | 1,168 | https://github.com/linemanjs/lineman/blob/3ba1ad450b03233ec464f175528a7100ae9d38f4/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
watch: {
options: {
spawn: false,
module: "grunt-watch-nospawn"
},
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
ta... | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 3ba1ad450b03233ec464f175528a7100ae9d38f4 | 1,168 | https://github.com/linemanjs/lineman/blob/3ba1ad450b03233ec464f175528a7100ae9d38f4/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:... | tasks: ["concat:css"]
less:
files: ["app/css/**/*.less", "vendor/css/**/*.less"]
tasks: ["learnAboutLinemanPlugin:lineman-less"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat:css"]
pages:
files: ["<%= files.pages.s... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 3ba1ad450b03233ec464f175528a7100ae9d38f4 | 1,168 | https://github.com/linemanjs/lineman/blob/3ba1ad450b03233ec464f175528a7100ae9d38f4/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee"... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 29756ea72b410dcf01791c60e93ae35794786987 | 1,168 | https://github.com/linemanjs/lineman/blob/29756ea72b410dcf01791c60e93ae35794786987/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
... | module.exports = function(lineman) {
return {
config: {
watch: {
options: {
spawn: false,
module: "grunt-watch-nospawn"
},
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat_sourcemap:js"]
},
coffee:... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 29756ea72b410dcf01791c60e93ae35794786987 | 1,168 | https://github.com/linemanjs/lineman/blob/29756ea72b410dcf01791c60e93ae35794786987/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
watch: {
options: {
spawn: false,
module: "grunt-watch-nospawn"
},
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
ta... | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee"... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 29756ea72b410dcf01791c60e93ae35794786987 | 1,168 | https://github.com/linemanjs/lineman/blob/29756ea72b410dcf01791c60e93ae35794786987/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
watch:
options:
spawn: false
module: "grunt-watch-nospawn"
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee"... | tasks: ["concat_sourcemap:css"]
less:
files: ["app/css/**/*.less", "vendor/css/**/*.less"]
tasks: ["learnAboutLinemanPlugin:lineman-less"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat_sourcemap:css"]
pages:
files:... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 29756ea72b410dcf01791c60e93ae35794786987 | 1,168 | https://github.com/linemanjs/lineman/blob/29756ea72b410dcf01791c60e93ae35794786987/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcemap:js"]
jsSpecs:
files: ["<%= files.js.spec... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | cb848d104be19f2252f951056855b36531f0c71e | 1,168 | https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcema... | module.exports = function(lineman) {
return {
config: {
watch: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat_sourcemap:js"]
},
coffee: {
files: "<%= files.coffee.app %>",
tasks: ["coffee", "concat_sourcemap:j... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | cb848d104be19f2252f951056855b36531f0c71e | 1,168 | https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
watch: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat_sourcemap:js"]
},
coffee: {
files: "<%= files.coffee.a... | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcemap:js"]
jsSpecs:
files: ["<%= files.js.spec... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | cb848d104be19f2252f951056855b36531f0c71e | 1,168 | https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcemap:js"]
jsSpecs:
files: ["<%= files.js.spec... | tasks: ["learnAboutLinemanPlugin:lineman-less"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat_sourcemap:css"]
pages:
files: ["<%= files.pages.source %>", "app/templates/homepage.us"]
tasks: ["pages:dev"]
handlebars:
... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | cb848d104be19f2252f951056855b36531f0c71e | 1,168 | https://github.com/linemanjs/lineman/blob/cb848d104be19f2252f951056855b36531f0c71e/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcemap:js"]
jsSpecs:
files: ["<%= files.js.spec... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | ec87f89976569a3236266159725a5b913ef631f5 | 1,168 | https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcema... | module.exports = function(lineman) {
return {
config: {
watch: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat_sourcemap:js"]
},
coffee: {
files: "<%= files.coffee.app %>",
tasks: ["coffee", "concat_sourcemap:j... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | ec87f89976569a3236266159725a5b913ef631f5 | 1,168 | https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
watch: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat_sourcemap:js"]
},
coffee: {
files: "<%= files.coffee.a... | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcemap:js"]
jsSpecs:
files: ["<%= files.js.spec... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | ec87f89976569a3236266159725a5b913ef631f5 | 1,168 | https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat_sourcemap:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat_sourcemap:js"]
jsSpecs:
files: ["<%= files.js.spec... | tasks: ["less", "concat_sourcemap:css"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat_sourcemap:css"]
pages:
files: ["<%= files.pages.source %>", "app/templates/homepage.us"]
tasks: ["pages:dev"]
handlebars:
files:... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | ec87f89976569a3236266159725a5b913ef631f5 | 1,168 | https://github.com/linemanjs/lineman/blob/ec87f89976569a3236266159725a5b913ef631f5/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= files.js.specHelpers %>", "<%= fi... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpec... | module.exports = function(lineman) {
return {
config: {
watch: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat:js"]
},
coffee: {
files: "<%= files.coffee.app %>",
tasks: ["coffee", "concat:js"]
},
... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
watch: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat:js"]
},
coffee: {
files: "<%= files.coffee.app %>",
... | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= files.js.specHelpers %>", "<%= fi... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
watch:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= files.js.specHelpers %>", "<%= fi... | tasks: ["less", "concat:css"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat:css"]
pages:
files: ["<%= files.pages.source %>", "app/templates/homepage.us"]
tasks: ["pages:dev"]
handlebars:
files: "<%= files.template... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 933adfea4b35d36c79ddfacdfc6c2b5330dd6e81 | 1,168 | https://github.com/linemanjs/lineman/blob/933adfea4b35d36c79ddfacdfc6c2b5330dd6e81/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:raw_corpus | raw_corpus | module.exports = (lineman) ->
config:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= files.js.specHelpers %>", "<%= files.js.spec %>"]
task... | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 94365fc4e4b804de8672585c254895fbd9cb514e | 1,168 | https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/watch.coffee | 1 | 50 | ||
linemanjs/lineman:config/plugins/watch.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (lineman) ->
config:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= fil... | module.exports = function(lineman) {
return {
config: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat:js"]
},
coffee: {
files: "<%= files.coffee.app %>",
tasks: ["coffee", "concat:js"]
},
jsSpecs: {
files: ["<%... | CoffeeScript | JavaScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 94365fc4e4b804de8672585c254895fbd9cb514e | 1,168 | https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(lineman) {
return {
config: {
js: {
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"],
tasks: ["concat:js"]
},
coffee: {
files: "<%= files.coffee.app %>",
tasks: ["coffee", "co... | module.exports = (lineman) ->
config:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= files.js.specHelpers %>", "<%= files.js.spec %>"]
task... | JavaScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 94365fc4e4b804de8672585c254895fbd9cb514e | 1,168 | https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/watch.coffee | 1 | 50 |
linemanjs/lineman:config/plugins/watch.coffee:1:completion | completion | module.exports = (lineman) ->
config:
js:
files: ["<%= files.js.vendor %>", "<%= files.js.app %>"]
tasks: ["concat:js"]
coffee:
files: "<%= files.coffee.app %>"
tasks: ["coffee", "concat:js"]
jsSpecs:
files: ["<%= files.js.specHelpers %>", "<%= files.js.spec %>"]
task... | tasks: ["less", "concat:css"]
sass:
files: ["<%= files.sass.vendor %>", "<%= files.sass.app %>"]
tasks: ["sass", "concat:css"]
pages:
files: ["<%= files.pages.source %>", "app/templates/homepage.us"]
tasks: ["pages:dev"]
handlebars:
files: "<%= files.template.handlebars %>"
... | CoffeeScript | CoffeeScript | linemanjs/lineman | config/plugins/watch.coffee | MIT | 94365fc4e4b804de8672585c254895fbd9cb514e | 1,168 | https://github.com/linemanjs/lineman/blob/94365fc4e4b804de8672585c254895fbd9cb514e/config/plugins/watch.coffee | 1 | 50 |
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:raw_corpus | raw_corpus | BlendMode = require '../blend_mode.coffee'
module.exports =
# Every layer defines how it's blended with the rest of the document.
# This is represented in the Photoshop UI above the layer list as
# a drop down. It also defines the layer opacity and whether it's a
# part of a clipping mask.
parseBlendModes: -... | CoffeeScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/blend_modes.coffee | 1 | 20 | ||
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
BlendMode = require '../blend_mode.coffee'
module.exports =
# Every layer defines how it's blended with the rest of the document.
# This is represented in the Photoshop UI above the layer list as
# a drop down. It also defines the layer opacity and whether... | var BlendMode;
BlendMode = require('../blend_mode.coffee');
module.exports = {
// Every layer defines how it's blended with the rest of the document.
// This is represented in the Photoshop UI above the layer list as
// a drop down. It also defines the layer opacity and whether it's a
// part of a clipping ma... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/blend_modes.coffee | 1 | 20 |
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var BlendMode;
BlendMode = require('../blend_mode.coffee');
module.exports = {
// Every layer defines how it's blended with the rest of the document.
// This is represented in the Photoshop UI above the layer list as
// a drop down. It also defines the laye... | BlendMode = require '../blend_mode.coffee'
module.exports =
# Every layer defines how it's blended with the rest of the document.
# This is represented in the Photoshop UI above the layer list as
# a drop down. It also defines the layer opacity and whether it's a
# part of a clipping mask.
parseBlendModes: -... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/blend_modes.coffee | 1 | 20 |
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:completion | completion | BlendMode = require '../blend_mode.coffee'
module.exports =
# Every layer defines how it's blended with the rest of the document.
# This is represented in the Photoshop UI above the layer list as
# a drop down. It also defines the layer opacity and whether it's a
# part of a clipping mask.
parseBlendModes: -... | @opacity = @blendMode.opacity
@visible = @blendMode.visible
@clipped = @blendMode.clipped
hidden: -> not @visible
# TODO: check section divider
blendingMode: ->
@blendMode.mode | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 7e8392d20fd5d66ad70ddda7309661b9a0ca67c8 | 2,846 | https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/blend_modes.coffee | 1 | 20 |
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:raw_corpus | raw_corpus | BlendMode = require '../blend_mode.coffee'
module.exports =
parseBlendModes: ->
@blendMode = new BlendMode(@file)
@blendMode.parse()
@opacity = @blendMode.opacity
@visible = @blendMode.visible
@clipped = @blendMode.clipped
hidden: -> not @visible
# TODO: check section divider
blendingMod... | CoffeeScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer/blend_modes.coffee | 1 | 16 | ||
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
BlendMode = require '../blend_mode.coffee'
module.exports =
parseBlendModes: ->
@blendMode = new BlendMode(@file)
@blendMode.parse()
@opacity = @blendMode.opacity
@visible = @blendMode.visible
@clipped = @blendMode.clipped
hidden: -> no... | var BlendMode;
BlendMode = require('../blend_mode.coffee');
module.exports = {
parseBlendModes: function() {
this.blendMode = new BlendMode(this.file);
this.blendMode.parse();
this.opacity = this.blendMode.opacity;
this.visible = this.blendMode.visible;
return this.clipped = this.blendMode.clipp... | CoffeeScript | JavaScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer/blend_modes.coffee | 1 | 16 |
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var BlendMode;
BlendMode = require('../blend_mode.coffee');
module.exports = {
parseBlendModes: function() {
this.blendMode = new BlendMode(this.file);
this.blendMode.parse();
this.opacity = this.blendMode.opacity;
this.visible = this.blendMode.... | BlendMode = require '../blend_mode.coffee'
module.exports =
parseBlendModes: ->
@blendMode = new BlendMode(@file)
@blendMode.parse()
@opacity = @blendMode.opacity
@visible = @blendMode.visible
@clipped = @blendMode.clipped
hidden: -> not @visible
# TODO: check section divider
blendingMod... | JavaScript | CoffeeScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer/blend_modes.coffee | 1 | 16 |
meltingice/psd.js:lib/psd/layer/blend_modes.coffee:1:completion | completion | BlendMode = require '../blend_mode.coffee'
module.exports =
parseBlendModes: ->
@blendMode = new BlendMode(@file)
@blendMode.parse()
@opacity = @blendMode.opacity | @visible = @blendMode.visible
@clipped = @blendMode.clipped
hidden: -> not @visible
# TODO: check section divider
blendingMode: ->
@blendMode.mode | CoffeeScript | CoffeeScript | meltingice/psd.js | lib/psd/layer/blend_modes.coffee | MIT | 565c4a6eef97b2ef26e76cd0910c3eb60b507434 | 2,846 | https://github.com/meltingice/psd.js/blob/565c4a6eef97b2ef26e76cd0910c3eb60b507434/lib/psd/layer/blend_modes.coffee | 1 | 16 |
jianliaoim/talk-os:talk-web/client/app/snippet-viewer.coffee:1:raw_corpus | raw_corpus | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
ViewerFooter = React.createFactory require './viewer-footer'
CodeViewer = React.createFactory require '../module/code-viewer'
Icon = React.createFactory require '../module/icon'
snippetUtil = require '.... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/snippet-viewer.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/snippet-viewer.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-web/client/app/snippet-viewer.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
ViewerFooter = React.createFactory require './viewer-footer'
CodeViewer = React.createFactory require '../module/code-viewer'
Icon = React.createF... | var CodeViewer, Icon, Immutable, PureRenderMixin, React, T, ViewerFooter, div, lang, snippetUtil, span;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
ViewerFooter = React.createFactory(require('./viewer-footer'));
CodeViewer = React.createF... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/snippet-viewer.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/snippet-viewer.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/snippet-viewer.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var CodeViewer, Icon, Immutable, PureRenderMixin, React, T, ViewerFooter, div, lang, snippetUtil, span;
React = require('react');
Immutable = require('immutable');
PureRenderMixin = require('react-addons-pure-render-mixin');
ViewerFooter = React.createFactory(r... | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
ViewerFooter = React.createFactory require './viewer-footer'
CodeViewer = React.createFactory require '../module/code-viewer'
Icon = React.createFactory require '../module/icon'
snippetUtil = require '.... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/snippet-viewer.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/snippet-viewer.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/snippet-viewer.coffee:1:completion | completion | React = require 'react'
Immutable = require 'immutable'
PureRenderMixin = require 'react-addons-pure-render-mixin'
ViewerFooter = React.createFactory require './viewer-footer'
CodeViewer = React.createFactory require '../module/code-viewer'
Icon = React.createFactory require '../module/icon'
snippetUtil = require '.... | getDefaultProps: ->
canEdit: true
isFavorite: false
onClose: ->
@props.onClose?()
render: ->
return null if not @props.message.get('attachments').size
target = @props.message.get('attachments').filter (attachment) ->
attachment.get('category') is 'snippet'
return null if not target... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/snippet-viewer.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/snippet-viewer.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/app/snippet-viewer.coffee:2:raw_corpus | raw_corpus | div className: 'title', data.get 'title'
div className: 'type', snippetUtil.getName data.get 'codeType'
CodeViewer
name: 'snippet-viewer'
text: data.get 'text'
codeType: snippetUtil.getHighlightJS data.get 'codeType'
ViewerFooter @props | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/snippet-viewer.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/snippet-viewer.coffee | 51 | 57 | ||
jianliaoim/talk-os:talk-web/client/app/snippet-viewer.coffee:2:completion | completion | div className: 'title', data.get 'title'
div className: 'type', snippetUtil.getName data.get 'codeType'
CodeViewer | name: 'snippet-viewer'
text: data.get 'text'
codeType: snippetUtil.getHighlightJS data.get 'codeType'
ViewerFooter @props | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/snippet-viewer.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/snippet-viewer.coffee | 51 | 57 |
mojs/mojs:spec/shapes/equal.coffee:1:raw_corpus | raw_corpus | Equal = mojs.shapesMap.getShape('equal')
Bit = mojs.shapesMap.getShape('bit')
ns = 'http://www.w3.org/2000/svg'
svg = document.createElementNS?(ns, "svg")
describe 'Equal ->', ->
it 'should extend Bit', ->
equal = new Equal
expect(equal instanceof Bit).toBe(true)
describe '_declareDefaults meth... | CoffeeScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 1 | 43 | ||
mojs/mojs:spec/shapes/equal.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Equal = mojs.shapesMap.getShape('equal')
Bit = mojs.shapesMap.getShape('bit')
ns = 'http://www.w3.org/2000/svg'
svg = document.createElementNS?(ns, "svg")
describe 'Equal ->', ->
it 'should extend Bit', ->
equal = new Equal
expect(equal inst... | var Bit, Equal, ns, svg;
Equal = mojs.shapesMap.getShape('equal');
Bit = mojs.shapesMap.getShape('bit');
ns = 'http://www.w3.org/2000/svg';
svg = typeof document.createElementNS === "function" ? document.createElementNS(ns, "svg") : void 0;
describe('Equal ->', function() {
it('should extend Bit', function() {
... | CoffeeScript | JavaScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 1 | 43 |
mojs/mojs:spec/shapes/equal.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Bit, Equal, ns, svg;
Equal = mojs.shapesMap.getShape('equal');
Bit = mojs.shapesMap.getShape('bit');
ns = 'http://www.w3.org/2000/svg';
svg = typeof document.createElementNS === "function" ? document.createElementNS(ns, "svg") : void 0;
describe('Equal ->'... | Equal = mojs.shapesMap.getShape('equal')
Bit = mojs.shapesMap.getShape('bit')
ns = 'http://www.w3.org/2000/svg'
svg = document.createElementNS?(ns, "svg")
describe 'Equal ->', ->
it 'should extend Bit', ->
equal = new Equal
expect(equal instanceof Bit).toBe(true)
describe '_declareDefaults meth... | JavaScript | CoffeeScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 1 | 43 |
mojs/mojs:spec/shapes/equal.coffee:1:completion | completion | Equal = mojs.shapesMap.getShape('equal')
Bit = mojs.shapesMap.getShape('bit')
ns = 'http://www.w3.org/2000/svg'
svg = document.createElementNS?(ns, "svg")
describe 'Equal ->', ->
it 'should extend Bit', ->
equal = new Equal
expect(equal instanceof Bit).toBe(true)
describe '_declareDefaults meth... | equal = new Equal
expect(equal._defaults.points).toBe 2
describe '_draw method ->', ->
it 'should define points', ->
equal = new Equal radius: 20
equal._draw()
expect(equal.el.getAttribute('d')).toBeTruthy()
it 'should not work with 0 points', ->
equal = new Equal
radius... | CoffeeScript | CoffeeScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 1 | 43 |
mojs/mojs:spec/shapes/equal.coffee:2:raw_corpus | raw_corpus | it 'should set `d` attribute if `radiusX` changed', ->
equal = new Equal
radius: 20
points: 10
equal._draw()
spyOn equal.el, 'setAttribute'
equal._props.radiusX = 30
equal._draw()
expect( equal.el.setAttribute ).toHaveBeenCalled()
it 'should set `d` attribute if ... | CoffeeScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 45 | 88 | ||
mojs/mojs:spec/shapes/equal.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it 'should set `d` attribute if `radiusX` changed', ->
equal = new Equal
radius: 20
points: 10
equal._draw()
spyOn equal.el, 'setAttribute'
equal._props.radiusX = 30
equal._draw()
expect( equal.el.setAttribute )... | it('should set `d` attribute if `radiusX` changed', function() {
var equal;
equal = new Equal({
radius: 20,
points: 10
});
equal._draw();
spyOn(equal.el, 'setAttribute');
equal._props.radiusX = 30;
equal._draw();
return expect(equal.el.setAttribute).toHaveBeenCalled();
});
it('should set `d` at... | CoffeeScript | JavaScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 45 | 88 |
mojs/mojs:spec/shapes/equal.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it('should set `d` attribute if `radiusX` changed', function() {
var equal;
equal = new Equal({
radius: 20,
points: 10
});
equal._draw();
spyOn(equal.el, 'setAttribute');
equal._props.radiusX = 30;
equal._draw();
return expect(equal.el.setAt... | it 'should set `d` attribute if `radiusX` changed', ->
equal = new Equal
radius: 20
points: 10
equal._draw()
spyOn equal.el, 'setAttribute'
equal._props.radiusX = 30
equal._draw()
expect( equal.el.setAttribute ).toHaveBeenCalled()
it 'should set `d` attribute if ... | JavaScript | CoffeeScript | mojs/mojs | spec/shapes/equal.coffee | MIT | 0a9cf9a87dd5637e6fa770755e79048489bcf817 | 18,698 | https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/shapes/equal.coffee | 45 | 88 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.