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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mojotech/pioneer:src/widgets/Widget.Iframe.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class @Widget.Iframe extends @Widget
root: 'iframe'
focus: ->
@driver.switchTo().frame(@find()).then => this
unfocus: ->
@driver.switchTo().defaultContent().then => this
``` | this.Widget.Iframe = (function() {
class Iframe extends this.Widget {
focus() {
return this.driver.switchTo().frame(this.find()).then(() => {
return this;
});
}
unfocus() {
return this.driver.switchTo().defaultContent().then(() => {
return this;
});
}
};
... | CoffeeScript | JavaScript | mojotech/pioneer | src/widgets/Widget.Iframe.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Iframe.coffee | 1 | 8 |
mojotech/pioneer:src/widgets/Widget.Iframe.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
this.Widget.Iframe = (function() {
class Iframe extends this.Widget {
focus() {
return this.driver.switchTo().frame(this.find()).then(() => {
return this;
});
}
unfocus() {
return this.driver.switchTo().defaultContent().then... | class @Widget.Iframe extends @Widget
root: 'iframe'
focus: ->
@driver.switchTo().frame(@find()).then => this
unfocus: ->
@driver.switchTo().defaultContent().then => this | JavaScript | CoffeeScript | mojotech/pioneer | src/widgets/Widget.Iframe.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Iframe.coffee | 1 | 8 |
mojotech/pioneer:src/widgets/Widget.Iframe.coffee:1:completion | completion | class @Widget.Iframe extends @Widget
root: 'iframe'
focus: -> | @driver.switchTo().frame(@find()).then => this
unfocus: ->
@driver.switchTo().defaultContent().then => this | CoffeeScript | CoffeeScript | mojotech/pioneer | src/widgets/Widget.Iframe.coffee | MIT | 2d3ade85e18e3ea1dfff2545bad4142aa9c496e4 | 523 | https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/src/widgets/Widget.Iframe.coffee | 1 | 8 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:1:raw_corpus | raw_corpus | Immutable = require 'immutable'
xdescribe 'Controllers: file', ->
beforeEach ->
@controller = require 'updater/file'
it 'should define methods', ->
expect(@controller.create).toBeDefined()
expect(@controller.progress).toBeDefined()
expect(@controller.complete).toBeDefined()
expect(@controller... | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 1 | 39 | ||
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Immutable = require 'immutable'
xdescribe 'Controllers: file', ->
beforeEach ->
@controller = require 'updater/file'
it 'should define methods', ->
expect(@controller.create).toBeDefined()
expect(@controller.progress).toBeDefined()
expect(@... | var Immutable;
Immutable = require('immutable');
xdescribe('Controllers: file', function() {
beforeEach(function() {
return this.controller = require('updater/file');
});
it('should define methods', function() {
expect(this.controller.create).toBeDefined();
expect(this.controller.progress).toBeDefin... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 1 | 39 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Immutable;
Immutable = require('immutable');
xdescribe('Controllers: file', function() {
beforeEach(function() {
return this.controller = require('updater/file');
});
it('should define methods', function() {
expect(this.controller.create).toBeDe... | Immutable = require 'immutable'
xdescribe 'Controllers: file', ->
beforeEach ->
@controller = require 'updater/file'
it 'should define methods', ->
expect(@controller.create).toBeDefined()
expect(@controller.progress).toBeDefined()
expect(@controller.complete).toBeDefined()
expect(@controller... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 1 | 39 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:1:completion | completion | Immutable = require 'immutable'
xdescribe 'Controllers: file', ->
beforeEach ->
@controller = require 'updater/file'
it 'should define methods', ->
expect(@controller.create).toBeDefined()
expect(@controller.progress).toBeDefined()
expect(@controller.complete).toBeDefined()
expect(@controller... | store = {}
store.messages = {}
store.messages[_teamId] = {}
store.messages[_teamId][_toId] = []
store = Immutable.fromJS(store)
actionData = Immutable.fromJS {
_teamId: _teamId
_toId: _toId
body: '1'
}
updatePath = ['messages', _teamId, _toId]
add... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 1 | 39 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:2:raw_corpus | raw_corpus | actionData2 = Immutable.fromJS {
_teamId: _teamId
_toId: _toId
body: '2'
}
store2 = @controller.create(store1, actionData2)
expect(store2.getIn(updatePath)).toEqualImmutable Immutable.fromJS([addFileState(actionData), addFileState(actionData2)])
it 'should add isUploading ... | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 41 | 84 | ||
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:2:completion | completion | actionData2 = Immutable.fromJS {
_teamId: _teamId
_toId: _toId
body: '2'
}
store2 = @controller.create(store1, actionData2)
expect(store2.getIn(updatePath)).toEqualImmutable Immutable.fromJS([addFileState(actionData), addFileState(actionData2)])
it 'should add isUploading ... | store.messages = {}
store.messages[_teamId] = {}
store.messages[_teamId][_toId] = [{
_teamId: _teamId
_toId: _toId
body: '1'
attachments: [{
data:
fileId: fileId
progress: 0
}]
}]
store = Immutable.fromJS(store)
action... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 41 | 84 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:3:raw_corpus | raw_corpus | it 'should update file progress', ->
newStore = @controller.progress(store, actionData)
expect(newStore.getIn(updatePath).getIn([0, 'attachments', 0, 'progress'])).toEqual 0.5
describe 'method: complete', ->
store = actionData = updatePath = null
beforeEach ->
_teamId = '_teamId'
_to... | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 86 | 126 | ||
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
it 'should update file progress', ->
newStore = @controller.progress(store, actionData)
expect(newStore.getIn(updatePath).getIn([0, 'attachments', 0, 'progress'])).toEqual 0.5
describe 'method: complete', ->
store = actionData = updatePath = nu... | it('should update file progress', function() {
var newStore;
newStore = this.controller.progress(store, actionData);
return expect(newStore.getIn(updatePath).getIn([0, 'attachments', 0, 'progress'])).toEqual(0.5);
});
describe('method: complete', function() {
var actionData, store, updatePath;
store = action... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 86 | 126 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
it('should update file progress', function() {
var newStore;
newStore = this.controller.progress(store, actionData);
return expect(newStore.getIn(updatePath).getIn([0, 'attachments', 0, 'progress'])).toEqual(0.5);
});
describe('method: complete', function() ... | it 'should update file progress', ->
newStore = @controller.progress(store, actionData)
expect(newStore.getIn(updatePath).getIn([0, 'attachments', 0, 'progress'])).toEqual 0.5
describe 'method: complete', ->
store = actionData = updatePath = null
beforeEach ->
_teamId = '_teamId'
_to... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 86 | 126 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:3:completion | completion | it 'should update file progress', ->
newStore = @controller.progress(store, actionData)
expect(newStore.getIn(updatePath).getIn([0, 'attachments', 0, 'progress'])).toEqual 0.5
describe 'method: complete', ->
store = actionData = updatePath = null
beforeEach ->
_teamId = '_teamId'
_to... | fileId: fileId
progress: 0.5
}]
}]
store = Immutable.fromJS(store)
actionData = Immutable.fromJS {
fileData:
fileId: fileId
userData:
_teamId: _teamId
_toId: _toId
}
updatePath = ['messages', _teamId, _toId]
it 'should up... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 86 | 126 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:4:raw_corpus | raw_corpus | beforeEach ->
_teamId = '_teamId'
_toId = '_toId'
fileId = 'fileId'
store = {}
store.messages = {}
store.messages[_teamId] = {}
store.messages[_teamId][_toId] = [{
_teamId: _teamId
_toId: _toId
body: '1'
attachments: [{
data:
... | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 128 | 157 | ||
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
beforeEach ->
_teamId = '_teamId'
_toId = '_toId'
fileId = 'fileId'
store = {}
store.messages = {}
store.messages[_teamId] = {}
store.messages[_teamId][_toId] = [{
_teamId: _teamId
_toId: _toId
bod... | beforeEach(function() {
var _teamId, _toId, actionData, fileId, store, updatePath;
_teamId = '_teamId';
_toId = '_toId';
fileId = 'fileId';
store = {};
store.messages = {};
store.messages[_teamId] = {};
store.messages[_teamId][_toId] = [
{
_teamId: _teamId,
_toId: _toId,
body: '1',... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 128 | 157 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
beforeEach(function() {
var _teamId, _toId, actionData, fileId, store, updatePath;
_teamId = '_teamId';
_toId = '_toId';
fileId = 'fileId';
store = {};
store.messages = {};
store.messages[_teamId] = {};
store.messages[_teamId][_toId] = [
{
... | beforeEach ->
_teamId = '_teamId'
_toId = '_toId'
fileId = 'fileId'
store = {}
store.messages = {}
store.messages[_teamId] = {}
store.messages[_teamId][_toId] = [{
_teamId: _teamId
_toId: _toId
body: '1'
attachments: [{
data:
... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 128 | 157 |
jianliaoim/talk-os:talk-web/test/spec/updater/file.spec.coffee:4:completion | completion | beforeEach ->
_teamId = '_teamId'
_toId = '_toId'
fileId = 'fileId'
store = {}
store.messages = {}
store.messages[_teamId] = {}
store.messages[_teamId][_toId] = [{
_teamId: _teamId
_toId: _toId
body: '1'
attachments: [{
data:
... | }]
}]
store = Immutable.fromJS(store)
actionData = Immutable.fromJS {
fileData:
fileId: fileId
userData:
_teamId: _teamId
_toId: _toId
}
updatePath = ['messages', _teamId, _toId]
it 'should remove the file message', ->
newStore = @co... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/test/spec/updater/file.spec.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/updater/file.spec.coffee | 128 | 157 |
discolabs/cartjs:src/queue.coffee:1:raw_corpus | raw_corpus | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, options = {}) ->
# Set up request from ... | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/queue.coffee | 1 | 47 | ||
discolabs/cartjs:src/queue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add... | // CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: function(url, data, opti... | CoffeeScript | JavaScript | discolabs/cartjs | src/queue.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/queue.coffee | 1 | 47 |
discolabs/cartjs:src/queue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we'r... | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, options = {}) ->
# Set up request from ... | JavaScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/queue.coffee | 1 | 47 |
discolabs/cartjs:src/queue.coffee:1:completion | completion | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, options = {}) ->
# Set up request from ... | if options.updateCart
request.success.push(CartJS.cart.update)
# Add request to the queue.
queue.push(request)
# Don't need to start processing if we're already doing it.
return if processing
# Start processing.
jQuery(document).trigger('cart.requestStarted', [CartJS.cart]);
CartJS.... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 3d60425769d593c5e0968fd22d12ff78c63bcc4f | 493 | https://github.com/discolabs/cartjs/blob/3d60425769d593c5e0968fd22d12ff78c63bcc4f/src/queue.coffee | 1 | 47 |
discolabs/cartjs:src/queue.coffee:1:raw_corpus | raw_corpus | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, options = {}) ->
# Set up request from ... | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 3c7f3a800d678736a623a7068165f9c6625b99a3 | 493 | https://github.com/discolabs/cartjs/blob/3c7f3a800d678736a623a7068165f9c6625b99a3/src/queue.coffee | 1 | 46 | ||
discolabs/cartjs:src/queue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add... | // CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: function(url, data, opti... | CoffeeScript | JavaScript | discolabs/cartjs | src/queue.coffee | MIT | 3c7f3a800d678736a623a7068165f9c6625b99a3 | 493 | https://github.com/discolabs/cartjs/blob/3c7f3a800d678736a623a7068165f9c6625b99a3/src/queue.coffee | 1 | 46 |
discolabs/cartjs:src/queue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we'r... | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, options = {}) ->
# Set up request from ... | JavaScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 3c7f3a800d678736a623a7068165f9c6625b99a3 | 493 | https://github.com/discolabs/cartjs/blob/3c7f3a800d678736a623a7068165f9c6625b99a3/src/queue.coffee | 1 | 46 |
discolabs/cartjs:src/queue.coffee:1:completion | completion | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, options = {}) ->
# Set up request from ... | request.success.push(CartJS.cart.update)
# Add request to the queue.
queue.push(request)
# Don't need to start processing if we're already doing it.
return if processing
# Start processing.
jQuery(document).trigger('cart.requestStarted', [CartJS.cart]);
CartJS.Queue.process()
# Process... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 3c7f3a800d678736a623a7068165f9c6625b99a3 | 493 | https://github.com/discolabs/cartjs/blob/3c7f3a800d678736a623a7068165f9c6625b99a3/src/queue.coffee | 1 | 46 |
discolabs/cartjs:src/queue.coffee:1:raw_corpus | raw_corpus | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, callback, type = 'POST', dataType = 'json')... | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 1d66d4f0b3ddbf4e95f81982fe63d7626be5474a | 493 | https://github.com/discolabs/cartjs/blob/1d66d4f0b3ddbf4e95f81982fe63d7626be5474a/src/queue.coffee | 1 | 37 | ||
discolabs/cartjs:src/queue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add... | // CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: function(url, data, call... | CoffeeScript | JavaScript | discolabs/cartjs | src/queue.coffee | MIT | 1d66d4f0b3ddbf4e95f81982fe63d7626be5474a | 493 | https://github.com/discolabs/cartjs/blob/1d66d4f0b3ddbf4e95f81982fe63d7626be5474a/src/queue.coffee | 1 | 37 |
discolabs/cartjs:src/queue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we'r... | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, callback, type = 'POST', dataType = 'json')... | JavaScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 1d66d4f0b3ddbf4e95f81982fe63d7626be5474a | 493 | https://github.com/discolabs/cartjs/blob/1d66d4f0b3ddbf4e95f81982fe63d7626be5474a/src/queue.coffee | 1 | 37 |
discolabs/cartjs:src/queue.coffee:1:completion | completion | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, callback, type = 'POST', dataType = 'json')... | # Don't need to start processing if we're already doing it.
return if processing
# Start processing.
jQuery(document).trigger('cart.requestStarted', [CartJS.cart]);
CartJS.Queue.process()
# Process the next item in the queue, if there is one.
process: () ->
if not queue.length
processing... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 1d66d4f0b3ddbf4e95f81982fe63d7626be5474a | 493 | https://github.com/discolabs/cartjs/blob/1d66d4f0b3ddbf4e95f81982fe63d7626be5474a/src/queue.coffee | 1 | 37 |
discolabs/cartjs:src/queue.coffee:1:raw_corpus | raw_corpus | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, callback, type = 'POST', dataType = 'json')... | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 7f255275796500c08c07c15aff09cdae6ae14de6 | 493 | https://github.com/discolabs/cartjs/blob/7f255275796500c08c07c15aff09cdae6ae14de6/src/queue.coffee | 1 | 37 | ||
discolabs/cartjs:src/queue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add... | // CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: function(url, data, call... | CoffeeScript | JavaScript | discolabs/cartjs | src/queue.coffee | MIT | 7f255275796500c08c07c15aff09cdae6ae14de6 | 493 | https://github.com/discolabs/cartjs/blob/7f255275796500c08c07c15aff09cdae6ae14de6/src/queue.coffee | 1 | 37 |
discolabs/cartjs:src/queue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we'r... | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, callback, type = 'POST', dataType = 'json')... | JavaScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 7f255275796500c08c07c15aff09cdae6ae14de6 | 493 | https://github.com/discolabs/cartjs/blob/7f255275796500c08c07c15aff09cdae6ae14de6/src/queue.coffee | 1 | 37 |
discolabs/cartjs:src/queue.coffee:1:completion | completion | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not already doing so.
add: (url, data, callback, type = 'POST', dataType = 'json')... | # Don't need to start processing if we're already doing it.
return if processing
# Start processing.
jQuery(document).trigger('cart.requestStarted');
CartJS.Queue.process()
# Process the next item in the queue, if there is one.
process: () ->
if not queue.length
processing = false
... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 7f255275796500c08c07c15aff09cdae6ae14de6 | 493 | https://github.com/discolabs/cartjs/blob/7f255275796500c08c07c15aff09cdae6ae14de6/src/queue.coffee | 1 | 37 |
discolabs/cartjs:src/queue.coffee:1:raw_corpus | raw_corpus | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
add: (url, data, callback, type = 'POST', dataType = 'js... | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75 | 493 | https://github.com/discolabs/cartjs/blob/2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75/src/queue.coffee | 1 | 38 | ||
discolabs/cartjs:src/queue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
... | // CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we're not
// already doing so.
add: function(url, data,... | CoffeeScript | JavaScript | discolabs/cartjs | src/queue.coffee | MIT | 2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75 | 493 | https://github.com/discolabs/cartjs/blob/2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75/src/queue.coffee | 1 | 38 |
discolabs/cartjs:src/queue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we'r... | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
add: (url, data, callback, type = 'POST', dataType = 'js... | JavaScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75 | 493 | https://github.com/discolabs/cartjs/blob/2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75/src/queue.coffee | 1 | 38 |
discolabs/cartjs:src/queue.coffee:1:completion | completion | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
add: (url, data, callback, type = 'POST', dataType = 'js... | # Don't need to start processing if we're already doing it.
return if processing
# Start processing.
jQuery(document).trigger('cart.requestStarted');
CartJS.Queue.process()
# Process the next item in the queue, if there is one.
process: () ->
if not queue.length
processing = false
... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75 | 493 | https://github.com/discolabs/cartjs/blob/2940c255ffb4b9a5cf0c83c17d11f1e2f44f3b75/src/queue.coffee | 1 | 38 |
discolabs/cartjs:src/queue.coffee:1:raw_corpus | raw_corpus | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
add: (url, data, callback, type = 'POST', dataType = 'js... | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/queue.coffee | 1 | 33 | ||
discolabs/cartjs:src/queue.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
... | // CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we're not
// already doing so.
add: function(url, data,... | CoffeeScript | JavaScript | discolabs/cartjs | src/queue.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/queue.coffee | 1 | 33 |
discolabs/cartjs:src/queue.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// CartJS.Queue
// Queue management for synchronous AJAX requests.
// -----------------------------------------------
var processing, queue;
queue = [];
processing = false;
CartJS.Queue = {
// Add a new request to the queue. Starts processing the queue if we'r... | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
add: (url, data, callback, type = 'POST', dataType = 'js... | JavaScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/queue.coffee | 1 | 33 |
discolabs/cartjs:src/queue.coffee:1:completion | completion | # CartJS.Queue
# Queue management for synchronous AJAX requests.
# -----------------------------------------------
queue = []
processing = false
CartJS.Queue =
# Add a new request to the queue. Starts processing the queue if we're not
# already doing so.
add: (url, data, callback, type = 'POST', dataType = 'js... | type: type,
dataType: dataType
})
return if processing
CartJS.Queue.process()
# Process the next item in the queue, if there is one.
process: () ->
if not queue.length
processing = false
return
processing = true
params = queue.shift()
params.complete = CartJS.Queue.p... | CoffeeScript | CoffeeScript | discolabs/cartjs | src/queue.coffee | MIT | 0241b35820e1dcecd0154552b444d3c2fe8422d0 | 493 | https://github.com/discolabs/cartjs/blob/0241b35820e1dcecd0154552b444d3c2fe8422d0/src/queue.coffee | 1 | 33 |
node-cache/node-cache:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
banner: """
/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under the MIT license
* <%= pkg.homepage %>/blob/master/LICENSE
... | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b5ee4352541fd284104b3bb224170db8de935d44 | 2,372 | https://github.com/node-cache/node-cache/blob/b5ee4352541fd284104b3bb224170db8de935d44/Gruntfile.coffee | 1 | 50 | ||
node-cache/node-cache:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
banner: """
/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under the MIT license
* <%= pkg.homepage %>/blob/master/LICENSE
... | dest: ''
ext: '.js'
clean:
base:
src: [ "lib", "test", "*.js" ]
includereplace:
pckg:
options:
globals:
version: "<%= pkg.version %>"
prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
usebanner:
options:
banner: "<%= banner %>"
base:
files: | CoffeeScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b5ee4352541fd284104b3bb224170db8de935d44 | 2,372 | https://github.com/node-cache/node-cache/blob/b5ee4352541fd284104b3bb224170db8de935d44/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
banner: """
/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under the MIT license
* <%= pkg.homepage %>/blob/master/LICENSE
... | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b590da7e0975eb520bafb2a1fafa5b56e4d93e61 | 2,372 | https://github.com/node-cache/node-cache/blob/b590da7e0975eb520bafb2a1fafa5b56e4d93e61/Gruntfile.coffee | 1 | 50 | ||
node-cache/node-cache:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
banner: """
/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under th... | module.exports = function(grunt) {
// Project configuration.
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: `/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under the MIT license
* <%= pkg.homepage %>... | CoffeeScript | JavaScript | node-cache/node-cache | Gruntfile.coffee | MIT | b590da7e0975eb520bafb2a1fafa5b56e4d93e61 | 2,372 | https://github.com/node-cache/node-cache/blob/b590da7e0975eb520bafb2a1fafa5b56e4d93e61/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
// Project configuration.
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: `/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
... | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
banner: """
/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under the MIT license
* <%= pkg.homepage %>/blob/master/LICENSE
... | JavaScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b590da7e0975eb520bafb2a1fafa5b56e4d93e61 | 2,372 | https://github.com/node-cache/node-cache/blob/b590da7e0975eb520bafb2a1fafa5b56e4d93e61/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
banner: """
/*
* <%= pkg.name %> <%= pkg.version %> ( <%= grunt.template.today( 'yyyy-mm-dd' )%> )
* <%= pkg.homepage %>
*
* Released under the MIT license
* <%= pkg.homepage %>/blob/master/LICENSE
... | changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" && grunt !== null ? (_ref = grunt.regarde) != null ? _ref.changed : void 0 : void 0) || ["_src/nothing"]) ).slice( "_src/".length ) ) %>' ]
# template to cut off `_src/` and throw on error on non-regrade call
... | CoffeeScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b590da7e0975eb520bafb2a1fafa5b56e4d93e61 | 2,372 | https://github.com/node-cache/node-cache/blob/b590da7e0975eb520bafb2a1fafa5b56e4d93e61/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:2:raw_corpus | raw_corpus | prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
usebanner:
options:
banner: "<%= banner %>"
base:
files:
"index.js": ["index.js"]
"lib/node_cache.js": ["lib/node_cache.js"]
"test/node_cache-test.js": ["test/node_cache-test.js"]
run:
options:
wait: true
... | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b590da7e0975eb520bafb2a1fafa5b56e4d93e61 | 2,372 | https://github.com/node-cache/node-cache/blob/b590da7e0975eb520bafb2a1fafa5b56e4d93e61/Gruntfile.coffee | 51 | 100 | ||
node-cache/node-cache:Gruntfile.coffee:2:completion | completion | prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
usebanner:
options:
banner: "<%= banner %>"
base:
files:
"index.js": ["index.js"]
"lib/node_cache.js": ["lib/node_cache.js"]
"test/node_cache-test.js": ["test/node_cache-test.js"]
run:
options:
wait: true
... | # Load npm modules
grunt.loadNpmTasks "grunt-regarde"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-run"
grunt.loadNpmTasks "grunt-include-replace"
grunt.loadNpmTasks "grunt-banner"
# just a hack until this issue has been fixed: https://github.com/... | CoffeeScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b590da7e0975eb520bafb2a1fafa5b56e4d93e61 | 2,372 | https://github.com/node-cache/node-cache/blob/b590da7e0975eb520bafb2a1fafa5b56e4d93e61/Gruntfile.coffee | 51 | 100 |
node-cache/node-cache:Gruntfile.coffee:2:raw_corpus | raw_corpus | prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
usebanner:
options:
banner: "<%= banner %>"
base:
files:
"index.js": ["index.js"]
"lib/node_cache.js": ["lib/node_cache.js"]
"test/node_cache-test.js": ["test/node_cache-test.js"]
run:
options:
wait: true
... | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b76e1681927fdfef4b67593bcd83e21024003c5f | 2,372 | https://github.com/node-cache/node-cache/blob/b76e1681927fdfef4b67593bcd83e21024003c5f/Gruntfile.coffee | 51 | 96 | ||
node-cache/node-cache:Gruntfile.coffee:2:completion | completion | prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
usebanner:
options:
banner: "<%= banner %>"
base:
files:
"index.js": ["index.js"]
"lib/node_cache.js": ["lib/node_cache.js"]
"test/node_cache-test.js": ["test/node_cache-test.js"]
run:
options:
wait: true
... | # Load npm modules
grunt.loadNpmTasks "grunt-regarde"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-clean"
grunt.loadNpmTasks "grunt-run"
grunt.loadNpmTasks "grunt-include-replace"
grunt.loadNpmTasks "grunt-banner"
# just a hack until this issue has been fixed: https://github.com/... | CoffeeScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b76e1681927fdfef4b67593bcd83e21024003c5f | 2,372 | https://github.com/node-cache/node-cache/blob/b76e1681927fdfef4b67593bcd83e21024003c5f/Gruntfile.coffee | 51 | 96 |
node-cache/node-cache:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" &... | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b500a315d00a5ac07a0db467133f62b9a4478590 | 2,372 | https://github.com/node-cache/node-cache/blob/b500a315d00a5ac07a0db467133f62b9a4478590/Gruntfile.coffee | 1 | 50 | ||
node-cache/node-cache:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
sr... | module.exports = function(grunt) {
// Project configuration.
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
regarde: {
module: {
files: ["_src/**/*.coffee"],
tasks: ["coffee:changed"]
}
},
coffee: {
changed: {
expand: true,
cwd: ... | CoffeeScript | JavaScript | node-cache/node-cache | Gruntfile.coffee | MIT | b500a315d00a5ac07a0db467133f62b9a4478590 | 2,372 | https://github.com/node-cache/node-cache/blob/b500a315d00a5ac07a0db467133f62b9a4478590/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
// Project configuration.
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
regarde: {
module: {
files: ["_src/**/*.coffee"],
tasks: ["coffee:changed"]
}
},
coffee:... | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" &... | JavaScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b500a315d00a5ac07a0db467133f62b9a4478590 | 2,372 | https://github.com/node-cache/node-cache/blob/b500a315d00a5ac07a0db467133f62b9a4478590/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" &... | clean:
base:
src: [ "lib", "test", "*.js" ]
includereplace:
pckg:
options:
globals:
version: "<%= pkg.version %>"
prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
run:
options:
wait: true
main:
cmd: "node_modules/expresso/bin/expresso"
args:... | CoffeeScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | b500a315d00a5ac07a0db467133f62b9a4478590 | 2,372 | https://github.com/node-cache/node-cache/blob/b500a315d00a5ac07a0db467133f62b9a4478590/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:raw_corpus | raw_corpus | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" &... | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | 9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165 | 2,372 | https://github.com/node-cache/node-cache/blob/9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165/Gruntfile.coffee | 1 | 50 | ||
node-cache/node-cache:Gruntfile.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
sr... | module.exports = function(grunt) {
// Project configuration.
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
regarde: {
module: {
files: ["_src/**/*.coffee"],
tasks: ["coffee:changed"]
}
},
coffee: {
changed: {
expand: true,
cwd: ... | CoffeeScript | JavaScript | node-cache/node-cache | Gruntfile.coffee | MIT | 9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165 | 2,372 | https://github.com/node-cache/node-cache/blob/9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(grunt) {
// Project configuration.
return grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
regarde: {
module: {
files: ["_src/**/*.coffee"],
tasks: ["coffee:changed"]
}
},
coffee:... | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" &... | JavaScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | 9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165 | 2,372 | https://github.com/node-cache/node-cache/blob/9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165/Gruntfile.coffee | 1 | 50 |
node-cache/node-cache:Gruntfile.coffee:1:completion | completion | module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
regarde:
module:
files: ["_src/**/*.coffee"]
tasks: [ "coffee:changed" ]
coffee:
changed:
expand: true
cwd: '_src'
src: [ '<% print( _.first( ((typeof grunt !== "undefined" &... | clean:
base:
src: [ "lib", "test/*.js" ]
includereplace:
pckg:
options:
globals:
version: "<%= pkg.version %>"
prefix: "@@"
suffix: ''
files:
"index.js": ["index.js"]
run:
options:
wait: true
main:
cmd: "node_modules/expresso/bin/expresso"
args: [ ... | CoffeeScript | CoffeeScript | node-cache/node-cache | Gruntfile.coffee | MIT | 9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165 | 2,372 | https://github.com/node-cache/node-cache/blob/9499fcd3b0c3d05035d8c6e4c75ea19e2ffeb165/Gruntfile.coffee | 1 | 50 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:raw_corpus | raw_corpus | ]
customAudioclip:
title: "Play Audio - Path to Audioclip"
description: "Path to audioclip played at keystroke."
type: "string"
default: 'rocksmash.wav'
volume:
title: "Play Audio - Volume"
description: "Volume of the audio clip played at keystroke."
... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 9ed74f28817de4ebbb379e148534c64d3e77b027 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/9ed74f28817de4ebbb379e148534c64d3e77b027/lib/config-schema.coffee | 51 | 100 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:completion | completion | ]
customAudioclip:
title: "Play Audio - Path to Audioclip"
description: "Path to audioclip played at keystroke."
type: "string"
default: 'rocksmash.wav'
volume:
title: "Play Audio - Volume"
description: "Volume of the audio clip played at keystroke."
... | colours:
type: "object"
properties:
type:
title: "Colours"
description: "Configure colour options"
type: "string"
default: "cursor"
enum: [
{value: 'cursor', description: 'Particles will be the colour at the cursor.'}
... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 9ed74f28817de4ebbb379e148534c64d3e77b027 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/9ed74f28817de4ebbb379e148534c64d3e77b027/lib/config-schema.coffee | 51 | 100 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:3:raw_corpus | raw_corpus | enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
description: "Configure colour options"
... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 483301a0932a70c066f75d1c4a9da488b24ff344 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/483301a0932a70c066f75d1c4a9da488b24ff344/lib/config-schema.coffee | 101 | 150 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
... | ({
enabled: {
title: "Particles - Enabled",
description: "Turn the particles on/off.",
type: "boolean",
default: true,
order: 1
},
colours: {
type: "object",
properties: {
type: {
title: "Colours",
description: "Configure colour options",
type: "string",
... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 483301a0932a70c066f75d1c4a9da488b24ff344 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/483301a0932a70c066f75d1c4a9da488b24ff344/lib/config-schema.coffee | 101 | 150 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
enabled: {
title: "Particles - Enabled",
description: "Turn the particles on/off.",
type: "boolean",
default: true,
order: 1
},
colours: {
type: "object",
properties: {
type: {
title: "Colours",
description... | enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
description: "Configure colour options"
... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 483301a0932a70c066f75d1c4a9da488b24ff344 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/483301a0932a70c066f75d1c4a9da488b24ff344/lib/config-schema.coffee | 101 | 150 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:3:completion | completion | enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
description: "Configure colour options"
... | type: "color"
default: "#fff"
totalCount:
type: "object"
properties:
max:
title: "Particles - Max Total"
description: "The maximum total number of particles on the screen."
type: "integer"
default: 500
minimum: 0
... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 483301a0932a70c066f75d1c4a9da488b24ff344 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/483301a0932a70c066f75d1c4a9da488b24ff344/lib/config-schema.coffee | 101 | 150 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:raw_corpus | raw_corpus | type: "object"
properties:
enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
descript... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 684889411f99505597156d8e29cb3fa95afb2c5b | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/684889411f99505597156d8e29cb3fa95afb2c5b/lib/config-schema.coffee | 51 | 100 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:completion | completion | type: "object"
properties:
enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
descript... | title: "Fixed colour"
description: "Colour when fixed colour is selected"
type: "color"
default: "#fff"
totalCount:
type: "object"
properties:
max:
title: "Particles - Max Total"
description: "The maximum total number of partic... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 684889411f99505597156d8e29cb3fa95afb2c5b | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/684889411f99505597156d8e29cb3fa95afb2c5b/lib/config-schema.coffee | 51 | 100 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:3:raw_corpus | raw_corpus | {value: 'random', description: 'Particles will have random colours.'}
{value: 'fixed', description: 'Particles will have a fixed colour.'}
]
order: 1
fixed:
title: "Fixed colour"
description: "Colour when fixed colour is selected"
type... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 3ca47f4367c637d714fa90c32009233900fc6cfb | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/3ca47f4367c637d714fa90c32009233900fc6cfb/lib/config-schema.coffee | 101 | 150 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:3:completion | completion | {value: 'random', description: 'Particles will have random colours.'}
{value: 'fixed', description: 'Particles will have a fixed colour.'}
]
order: 1
fixed:
title: "Fixed colour"
description: "Colour when fixed colour is selected"
type... | title: "Particles - Minimum Spawned"
description: "The minimum (randomized) number of particles spawned on input."
type: "integer"
default: 5
max:
title: "Particles - Maximum Spawned"
description: "The maximum (randomized) number of particles spawne... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 3ca47f4367c637d714fa90c32009233900fc6cfb | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/3ca47f4367c637d714fa90c32009233900fc6cfb/lib/config-schema.coffee | 101 | 150 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:raw_corpus | raw_corpus | minIntensity:
title: "Screen Shake - Minimum Intensity"
description: "The minimum (randomized) intensity of the shake."
type: "integer"
default: 1
minimum: 0
maximum: 100
maxIntensity:
title: "Screen Shake - Maximum Intensity"
description: "The maxi... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1/lib/config-schema.coffee | 51 | 100 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
minIntensity:
title: "Screen Shake - Minimum Intensity"
description: "The minimum (randomized) intensity of the shake."
type: "integer"
default: 1
minimum: 0
maximum: 100
maxIntensity:
title: "Screen ... | ({
minIntensity: {
title: "Screen Shake - Minimum Intensity",
description: "The minimum (randomized) intensity of the shake.",
type: "integer",
default: 1,
minimum: 0,
maximum: 100
},
maxIntensity: {
title: "Screen Shake - Maximum Intensity",
description: "The maximum (randomized) ... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1/lib/config-schema.coffee | 51 | 100 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
minIntensity: {
title: "Screen Shake - Minimum Intensity",
description: "The minimum (randomized) intensity of the shake.",
type: "integer",
default: 1,
minimum: 0,
maximum: 100
},
maxIntensity: {
title: "Screen Shake - Maximum ... | minIntensity:
title: "Screen Shake - Minimum Intensity"
description: "The minimum (randomized) intensity of the shake."
type: "integer"
default: 1
minimum: 0
maximum: 100
maxIntensity:
title: "Screen Shake - Maximum Intensity"
description: "The maxi... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1/lib/config-schema.coffee | 51 | 100 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:completion | completion | minIntensity:
title: "Screen Shake - Minimum Intensity"
description: "The minimum (randomized) intensity of the shake."
type: "integer"
default: 1
minimum: 0
maximum: 100
maxIntensity:
title: "Screen Shake - Maximum Intensity"
description: "The maxi... | enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
description: "Configure colour options"
... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5cab4b164a2a9a4b3643d52aae8a6622e3ff12d1/lib/config-schema.coffee | 51 | 100 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:raw_corpus | raw_corpus | title: "Screen Flash - Color"
description: "Color of the flash"
type: "color"
default: "#fff"
playAudio:
type: "object"
properties:
enabled:
title: "Play Audio - Enabled"
description: "Play audio clip on/off."
type: "boolean"
default: true
... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 67dba5d3011bc0b712d65ba4c430d31e6443716a | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/67dba5d3011bc0b712d65ba4c430d31e6443716a/lib/config-schema.coffee | 51 | 100 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:completion | completion | title: "Screen Flash - Color"
description: "Color of the flash"
type: "color"
default: "#fff"
playAudio:
type: "object"
properties:
enabled:
title: "Play Audio - Enabled"
description: "Play audio clip on/off."
type: "boolean"
default: true
... | enabled:
title: "Particles - Enabled"
description: "Turn the particles on/off."
type: "boolean"
default: true
order: 1
colours:
type: "object"
properties:
type:
title: "Colours"
description: "Configure colour options"
... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 67dba5d3011bc0b712d65ba4c430d31e6443716a | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/67dba5d3011bc0b712d65ba4c430d31e6443716a/lib/config-schema.coffee | 51 | 100 |
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:raw_corpus | raw_corpus | enum: [
{value: 'cursor', description: 'Particles will be the colour at the cursor.'}
{value: 'random', description: 'Particles will have random colours.'}
{value: 'fixed', description: 'Particles will have a fixed colour.'}
]
order: 1
fixed:
... | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 0e12a3c0e7630f3169f5716a940595ecc920a3f8 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/0e12a3c0e7630f3169f5716a940595ecc920a3f8/lib/config-schema.coffee | 51 | 100 | ||
JoelBesada/activate-power-mode:lib/config-schema.coffee:2:completion | completion | enum: [
{value: 'cursor', description: 'Particles will be the colour at the cursor.'}
{value: 'random', description: 'Particles will have random colours.'}
{value: 'fixed', description: 'Particles will have a fixed colour.'}
]
order: 1
fixed:
... | properties:
min:
title: "Particles - Minimum Spawned"
description: "The minimum (randomized) number of particles spawned on input."
type: "integer"
default: 5
max:
title: "Particles - Maximum Spawned"
description: "The maximum ... | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/config-schema.coffee | MIT | 0e12a3c0e7630f3169f5716a940595ecc920a3f8 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/0e12a3c0e7630f3169f5716a940595ecc920a3f8/lib/config-schema.coffee | 51 | 100 |
twilson63/express-coffee:views/layout.coffee:1:raw_corpus | raw_corpus | doctype 5
html ->
head ->
title 'Express Coffee with CoffeeKup'
meta charset: 'utf-8'
title "#{@title} | My Site" if @title?
meta(name: 'description', content: @description) if @description?
link(rel: 'canonical', href: @canonical) if @canonical?
link rel: 'icon', href: '/favicon.png'
li... | CoffeeScript | twilson63/express-coffee | views/layout.coffee | MIT | 366f2b8c3f35eee8ab456135a0430337150a0075 | 622 | https://github.com/twilson63/express-coffee/blob/366f2b8c3f35eee8ab456135a0430337150a0075/views/layout.coffee | 1 | 40 | ||
twilson63/express-coffee:views/layout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
doctype 5
html ->
head ->
title 'Express Coffee with CoffeeKup'
meta charset: 'utf-8'
title "#{@title} | My Site" if @title?
meta(name: 'description', content: @description) if @description?
link(rel: 'canonical', href: @canonical) if @cano... | doctype(5);
html(function() {
head(function() {
title('Express Coffee with CoffeeKup');
meta({
charset: 'utf-8'
});
if (this.title != null) {
title(`${this.title} | My Site`);
}
if (this.description != null) {
meta({
name: 'description',
content: this.descrip... | CoffeeScript | JavaScript | twilson63/express-coffee | views/layout.coffee | MIT | 366f2b8c3f35eee8ab456135a0430337150a0075 | 622 | https://github.com/twilson63/express-coffee/blob/366f2b8c3f35eee8ab456135a0430337150a0075/views/layout.coffee | 1 | 40 |
twilson63/express-coffee:views/layout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
doctype(5);
html(function() {
head(function() {
title('Express Coffee with CoffeeKup');
meta({
charset: 'utf-8'
});
if (this.title != null) {
title(`${this.title} | My Site`);
}
if (this.description != null) {
meta({
... | doctype 5
html ->
head ->
title 'Express Coffee with CoffeeKup'
meta charset: 'utf-8'
title "#{@title} | My Site" if @title?
meta(name: 'description', content: @description) if @description?
link(rel: 'canonical', href: @canonical) if @canonical?
link rel: 'icon', href: '/favicon.png'
li... | JavaScript | CoffeeScript | twilson63/express-coffee | views/layout.coffee | MIT | 366f2b8c3f35eee8ab456135a0430337150a0075 | 622 | https://github.com/twilson63/express-coffee/blob/366f2b8c3f35eee8ab456135a0430337150a0075/views/layout.coffee | 1 | 40 |
twilson63/express-coffee:views/layout.coffee:1:completion | completion | doctype 5
html ->
head ->
title 'Express Coffee with CoffeeKup'
meta charset: 'utf-8'
title "#{@title} | My Site" if @title?
meta(name: 'description', content: @description) if @description?
link(rel: 'canonical', href: @canonical) if @canonical?
link rel: 'icon', href: '/favicon.png'
li... | style '''
header, nav, section, article, aside, footer {display: block}
nav li {display: inline; margin:10px}
nav.sub {float: right}
#content {margin-left: 120px}
'''
body ->
header ->
a href: '/', title: 'Home', -> 'Home'
nav ->
ul ->
for item ... | CoffeeScript | CoffeeScript | twilson63/express-coffee | views/layout.coffee | MIT | 366f2b8c3f35eee8ab456135a0430337150a0075 | 622 | https://github.com/twilson63/express-coffee/blob/366f2b8c3f35eee8ab456135a0430337150a0075/views/layout.coffee | 1 | 40 |
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
ELEMENT Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
ELEMENT Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@pa... | /*
ELEMENT Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
*/
$$.fn.attr =... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
ELEMENT Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {st... | ###
ELEMENT Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
ELEMENT Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn... | @each -> @setAttribute name, value
else
@[0].getAttribute name
###
Remove attribute to a given instance element
@method removeAttr
@param {string} Name of attribute
###
$$.fn.removeAttr = (name) ->
if @length > 0 and $$.toType(name) is "string"
@each -> @removeAttribute name
#... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:2:raw_corpus | raw_corpus | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 47 | 88 | ||
soyjavi/QuoJS:source/quo.element.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
... | /*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
*/
$$.fn.val = fun... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 47 | 88 |
soyjavi/QuoJS:source/quo.element.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
*/
$$.fn.removeData = function(name) {
return this.removeAttr(`data-${name}`);
};
/*
Remove data attribute to a given instance element
@method val
@pa... | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 47 | 88 |
soyjavi/QuoJS:source/quo.element.coffee:2:completion | completion | ###
Remove data attribute to a given instance element
@method removeAttr
@param {string} Name of data attribute
###
$$.fn.removeData = (name) ->
@removeAttr "data-#{name}"
###
Remove data attribute to a given instance element
@method val
@param {string} Name of data attribute
###
$$.fn.val... | ###
Shows a given instance element
@method show
###
$$.fn.show = ->
@style "display", "block"
###
Hides a given instance element
@method hide
###
$$.fn.hide = ->
@style "display", "none"
###
Trigger that event on an element
@method focus
###
$$.fn.focus = ->
do @[0].focus | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 47 | 88 |
soyjavi/QuoJS:source/quo.element.coffee:3:raw_corpus | raw_corpus | ###
Trigger that event on an element
@method blur
###
$$.fn.blur = ->
do @[0].blur
###
Get a offset of a given instance element
@method offset
###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
offset =
left : bounding.left + window.pageXOffset
... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 91 | 110 | ||
soyjavi/QuoJS:source/quo.element.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Trigger that event on an element
@method blur
###
$$.fn.blur = ->
do @[0].blur
###
Get a offset of a given instance element
@method offset
###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
offs... | /*
Trigger that event on an element
@method blur
*/
$$.fn.blur = function() {
return this[0].blur();
};
/*
Get a offset of a given instance element
@method offset
*/
$$.fn.offset = function() {
var bounding, offset;
if (this.length > 0) {
bounding = this[0].getBoundingClientRect();
offset = {
left:... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 91 | 110 |
soyjavi/QuoJS:source/quo.element.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Trigger that event on an element
@method blur
*/
$$.fn.blur = function() {
return this[0].blur();
};
/*
Get a offset of a given instance element
@method offset
*/
$$.fn.offset = function() {
var bounding, offset;
if (this.length > 0) {
bounding = this... | ###
Trigger that event on an element
@method blur
###
$$.fn.blur = ->
do @[0].blur
###
Get a offset of a given instance element
@method offset
###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
offset =
left : bounding.left + window.pageXOffset
... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 91 | 110 |
soyjavi/QuoJS:source/quo.element.coffee:3:completion | completion | ###
Trigger that event on an element
@method blur
###
$$.fn.blur = ->
do @[0].blur
###
Get a offset of a given instance element
@method offset | ###
$$.fn.offset = ->
if @length > 0
bounding = @[0].getBoundingClientRect()
offset =
left : bounding.left + window.pageXOffset
top : bounding.top + window.pageYOffset
width : bounding.width
height: bounding.height
offset | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.element.coffee | 91 | 110 |
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn.a... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.element.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@para... | /*
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
*/
$$.fn.attr = f... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {stri... | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn.a... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn.a... | @each -> @setAttribute name, value
else
@[0].getAttribute name
###
Remove attribute to a given instance element
@method removeAttr
@param {string} Name of attribute
###
$$.fn.removeAttr = (name) ->
if @length > 0 and $$.toType(name) is "string"
@each -> @removeAttribute name
#... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 94fa6102623e6acb3a40226bbc61cb5f9a88b53f | 2,055 | https://github.com/soyjavi/QuoJS/blob/94fa6102623e6acb3a40226bbc61cb5f9a88b53f/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn.a... | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 9a31456ffc2c22a67ca1bdf9b3054a9252f92f30 | 2,055 | https://github.com/soyjavi/QuoJS/blob/9a31456ffc2c22a67ca1bdf9b3054a9252f92f30/source/quo.element.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@para... | /*
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
*/
$$.fn.attr = f... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 9a31456ffc2c22a67ca1bdf9b3054a9252f92f30 | 2,055 | https://github.com/soyjavi/QuoJS/blob/9a31456ffc2c22a67ca1bdf9b3054a9252f92f30/source/quo.element.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
/*
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {stri... | ###
Basic Quo Module
@namespace Quo
@class Element
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
###
Get/Set attribute to a given instance element
@method attr
@param {string} Name of attribute
@param {string} [OPTIONAL] Value of attribute
###
$$.fn.a... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.element.coffee | MIT | 9a31456ffc2c22a67ca1bdf9b3054a9252f92f30 | 2,055 | https://github.com/soyjavi/QuoJS/blob/9a31456ffc2c22a67ca1bdf9b3054a9252f92f30/source/quo.element.coffee | 1 | 45 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.