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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
jnordberg/wintersmith:src/core/utils.coffee:5:completion | completion | readdirRecursive = (directory, callback) ->
### Returns an array representing *directory*, including subdirectories. ###
result = []
walk = (dir, callback) ->
async.waterfall [
async.apply fs.readdir, path.join(directory, dir)
(filenames, callback) ->
async.forEach filenames, (filename, ca... | async.apply fs.stat, path.join(directory, relname)
(stat, callback) ->
if stat.isDirectory()
walk relname, callback
else
result.push relname
callback()
], callback
, callback
], callback
walk '', (error) -> c... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 40 | 60 |
jnordberg/wintersmith:src/core/utils.coffee:6:raw_corpus | raw_corpus | pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
destination.on 'finish', ->
callback?()
callback = null | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 62 | 70 | ||
jnordberg/wintersmith:src/core/utils.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
destination.on 'finish', ->
callb... | var pump;
pump = function(source, destination, callback) {
/* Pipe *source* stream to *destination* stream calling *callback* when done */
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback(error);
}
return callback = null;
});
retu... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 62 | 70 |
jnordberg/wintersmith:src/core/utils.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var pump;
pump = function(source, destination, callback) {
/* Pipe *source* stream to *destination* stream calling *callback* when done */
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback... | pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
destination.on 'finish', ->
callback?()
callback = null | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 62 | 70 |
jnordberg/wintersmith:src/core/utils.coffee:6:completion | completion | pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) -> | callback? error
callback = null
destination.on 'finish', ->
callback?()
callback = null | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 62 | 70 |
jnordberg/wintersmith:src/core/utils.coffee:7:raw_corpus | raw_corpus | rfc822 = (date) ->
### return a rfc822 representation of a javascript Date object
http://www.w3.org/Protocols/rfc822/#z28 ###
pad = (i) -> if i < 10 then '0' + i else i
tzoffset = (offset) ->
hours = Math.floor offset / 60
minutes = Math.abs offset % 60
direction = if hours > 0 then '-' else '+'... | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 72 | 95 | ||
jnordberg/wintersmith:src/core/utils.coffee:7:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
rfc822 = (date) ->
### return a rfc822 representation of a javascript Date object
http://www.w3.org/Protocols/rfc822/#z28 ###
pad = (i) -> if i < 10 then '0' + i else i
tzoffset = (offset) ->
hours = Math.floor offset / 60
minutes = Math.abs o... | var rfc822;
rfc822 = function(date) {
/* return a rfc822 representation of a javascript Date object
http://www.w3.org/Protocols/rfc822/#z28 */
var days, months, pad, time, tzoffset;
pad = function(i) {
if (i < 10) {
return '0' + i;
} else {
return i;
}
};
tzoffset = function(of... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 72 | 95 |
jnordberg/wintersmith:src/core/utils.coffee:7:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var rfc822;
rfc822 = function(date) {
/* return a rfc822 representation of a javascript Date object
http://www.w3.org/Protocols/rfc822/#z28 */
var days, months, pad, time, tzoffset;
pad = function(i) {
if (i < 10) {
return '0' + i;
} els... | rfc822 = (date) ->
### return a rfc822 representation of a javascript Date object
http://www.w3.org/Protocols/rfc822/#z28 ###
pad = (i) -> if i < 10 then '0' + i else i
tzoffset = (offset) ->
hours = Math.floor offset / 60
minutes = Math.abs offset % 60
direction = if hours > 0 then '-' else '+'... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 72 | 95 |
jnordberg/wintersmith:src/core/utils.coffee:7:completion | completion | rfc822 = (date) ->
### return a rfc822 representation of a javascript Date object
http://www.w3.org/Protocols/rfc822/#z28 ###
pad = (i) -> if i < 10 then '0' + i else i
tzoffset = (offset) ->
hours = Math.floor offset / 60
minutes = Math.abs offset % 60
direction = if hours > 0 then '-' else '+'... | time = [pad(date.getHours()), pad(date.getMinutes()), pad(date.getSeconds())].join ':'
return [
days[date.getDay()] + ','
pad(date.getDate())
months[date.getMonth()]
date.getFullYear()
time
tzoffset(date.getTimezoneOffset())
].join ' '
### Exports ### | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/utils.coffee | 72 | 95 |
jnordberg/wintersmith:src/core/utils.coffee:6:raw_corpus | raw_corpus | pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'end', ->
callback?()
callback = null | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | c4e53c1388d28d6ee42e712bce6bc8fcea175ba8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/c4e53c1388d28d6ee42e712bce6bc8fcea175ba8/src/core/utils.coffee | 62 | 70 | ||
jnordberg/wintersmith:src/core/utils.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'end', ->
callback?()
... | var pump;
pump = function(source, destination, callback) {
/* Pipe *source* stream to *destination* stream calling *callback* when done */
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback(error);
}
return callback = null;
});
retu... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | c4e53c1388d28d6ee42e712bce6bc8fcea175ba8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/c4e53c1388d28d6ee42e712bce6bc8fcea175ba8/src/core/utils.coffee | 62 | 70 |
jnordberg/wintersmith:src/core/utils.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var pump;
pump = function(source, destination, callback) {
/* Pipe *source* stream to *destination* stream calling *callback* when done */
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback... | pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'end', ->
callback?()
callback = null | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | c4e53c1388d28d6ee42e712bce6bc8fcea175ba8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/c4e53c1388d28d6ee42e712bce6bc8fcea175ba8/src/core/utils.coffee | 62 | 70 |
jnordberg/wintersmith:src/core/utils.coffee:6:completion | completion | pump = (source, destination, callback) ->
### Pipe *source* stream to *destination* stream calling *callback* when done ###
source.pipe destination
source.on 'error', (error) -> | callback? error
callback = null
source.on 'end', ->
callback?()
callback = null | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | c4e53c1388d28d6ee42e712bce6bc8fcea175ba8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/c4e53c1388d28d6ee42e712bce6bc8fcea175ba8/src/core/utils.coffee | 62 | 70 |
jnordberg/wintersmith:src/core/utils.coffee:1:raw_corpus | raw_corpus | extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 287f8e0e8f49002a4fd428039e9f6a4191b5a12a | 3,484 | https://github.com/jnordberg/wintersmith/blob/287f8e0e8f49002a4fd428039e9f6a4191b5a12a/src/core/utils.coffee | 11 | 13 | ||
jnordberg/wintersmith:src/core/utils.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
``` | var extend;
extend = function(obj, mixin) {
var method, name, results;
results = [];
for (name in mixin) {
method = mixin[name];
results.push(obj[name] = method);
}
return results;
}; | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 287f8e0e8f49002a4fd428039e9f6a4191b5a12a | 3,484 | https://github.com/jnordberg/wintersmith/blob/287f8e0e8f49002a4fd428039e9f6a4191b5a12a/src/core/utils.coffee | 11 | 13 |
jnordberg/wintersmith:src/core/utils.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var extend;
extend = function(obj, mixin) {
var method, name, results;
results = [];
for (name in mixin) {
method = mixin[name];
results.push(obj[name] = method);
}
return results;
};
``` | extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 287f8e0e8f49002a4fd428039e9f6a4191b5a12a | 3,484 | https://github.com/jnordberg/wintersmith/blob/287f8e0e8f49002a4fd428039e9f6a4191b5a12a/src/core/utils.coffee | 11 | 13 |
jnordberg/wintersmith:src/core/utils.coffee:6:raw_corpus | raw_corpus | pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'end', ->
callback?()
callback = null | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 58fc4e3c2151e4548ac1f37633e1b9c330eadeb4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/58fc4e3c2151e4548ac1f37633e1b9c330eadeb4/src/core/utils.coffee | 60 | 67 | ||
jnordberg/wintersmith:src/core/utils.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'end', ->
callback?()
callback = null
``` | var pump;
pump = function(source, destination, callback) {
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback(error);
}
return callback = null;
});
return source.on('end', function() {
if (typeof callback === "function") {
c... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 58fc4e3c2151e4548ac1f37633e1b9c330eadeb4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/58fc4e3c2151e4548ac1f37633e1b9c330eadeb4/src/core/utils.coffee | 60 | 67 |
jnordberg/wintersmith:src/core/utils.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var pump;
pump = function(source, destination, callback) {
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback(error);
}
return callback = null;
});
return source.on('end', functio... | pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'end', ->
callback?()
callback = null | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 58fc4e3c2151e4548ac1f37633e1b9c330eadeb4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/58fc4e3c2151e4548ac1f37633e1b9c330eadeb4/src/core/utils.coffee | 60 | 67 |
jnordberg/wintersmith:src/core/utils.coffee:6:completion | completion | pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error | callback = null
source.on 'end', ->
callback?()
callback = null | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 58fc4e3c2151e4548ac1f37633e1b9c330eadeb4 | 3,484 | https://github.com/jnordberg/wintersmith/blob/58fc4e3c2151e4548ac1f37633e1b9c330eadeb4/src/core/utils.coffee | 60 | 67 |
jnordberg/wintersmith:src/core/utils.coffee:6:raw_corpus | raw_corpus | pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'close', ->
callback?()
callback = null | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 9b610439cc3dfd0ec295fb31f1ed8e621232db98 | 3,484 | https://github.com/jnordberg/wintersmith/blob/9b610439cc3dfd0ec295fb31f1ed8e621232db98/src/core/utils.coffee | 60 | 67 | ||
jnordberg/wintersmith:src/core/utils.coffee:6:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'close', ->
callback?()
callback = null
``` | var pump;
pump = function(source, destination, callback) {
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback(error);
}
return callback = null;
});
return source.on('close', function() {
if (typeof callback === "function") {
... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 9b610439cc3dfd0ec295fb31f1ed8e621232db98 | 3,484 | https://github.com/jnordberg/wintersmith/blob/9b610439cc3dfd0ec295fb31f1ed8e621232db98/src/core/utils.coffee | 60 | 67 |
jnordberg/wintersmith:src/core/utils.coffee:6:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var pump;
pump = function(source, destination, callback) {
source.pipe(destination);
source.on('error', function(error) {
if (typeof callback === "function") {
callback(error);
}
return callback = null;
});
return source.on('close', funct... | pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error
callback = null
source.on 'close', ->
callback?()
callback = null | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 9b610439cc3dfd0ec295fb31f1ed8e621232db98 | 3,484 | https://github.com/jnordberg/wintersmith/blob/9b610439cc3dfd0ec295fb31f1ed8e621232db98/src/core/utils.coffee | 60 | 67 |
jnordberg/wintersmith:src/core/utils.coffee:6:completion | completion | pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback? error | callback = null
source.on 'close', ->
callback?()
callback = null | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 9b610439cc3dfd0ec295fb31f1ed8e621232db98 | 3,484 | https://github.com/jnordberg/wintersmith/blob/9b610439cc3dfd0ec295fb31f1ed8e621232db98/src/core/utils.coffee | 60 | 67 |
jnordberg/wintersmith:src/core/utils.coffee:1:raw_corpus | raw_corpus | ### utils.coffee ###
util = require 'util'
fs = require 'fs'
path = require 'path'
async = require 'async'
fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync
extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
stripExtension = (filename) ->
filename.rep... | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 618c760cd60e2dfd3a1eb0663bcd9c3ac585806e | 3,484 | https://github.com/jnordberg/wintersmith/blob/618c760cd60e2dfd3a1eb0663bcd9c3ac585806e/src/core/utils.coffee | 1 | 50 | ||
jnordberg/wintersmith:src/core/utils.coffee:1:completion | completion | ### utils.coffee ###
util = require 'util'
fs = require 'fs'
path = require 'path'
async = require 'async'
fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync
extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
stripExtension = (filename) ->
filename.rep... | callback null, rv
catch error
error.filename = filename
error.message = "parsing #{ path.basename(filename) }: #{ error.message }"
callback error
], callback
readJSONSync = (filename) ->
### Synchronously read and try to parse *filename* as json. ###
buffer = fs.readFileSync filenam... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 618c760cd60e2dfd3a1eb0663bcd9c3ac585806e | 3,484 | https://github.com/jnordberg/wintersmith/blob/618c760cd60e2dfd3a1eb0663bcd9c3ac585806e/src/core/utils.coffee | 1 | 50 |
jnordberg/wintersmith:src/core/utils.coffee:2:raw_corpus | raw_corpus | walk relname, callback
else
result.push relname
callback()
], callback
, callback
], callback
walk '', (error) -> callback error, result
pump = (source, destination, callback) ->
source.pipe destination
source.on 'error', (error) ->
callback... | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 618c760cd60e2dfd3a1eb0663bcd9c3ac585806e | 3,484 | https://github.com/jnordberg/wintersmith/blob/618c760cd60e2dfd3a1eb0663bcd9c3ac585806e/src/core/utils.coffee | 51 | 72 | ||
jnordberg/wintersmith:src/core/utils.coffee:2:completion | completion | walk relname, callback
else
result.push relname
callback()
], callback
, callback
], callback
walk '', (error) -> callback error, result
pump = (source, destination, callback) ->
source.pipe destination | source.on 'error', (error) ->
callback? error
callback = null
source.on 'close', ->
callback?()
callback = null
### Exports ###
module.exports = {fileExists, fileExistsSync, extend, stripExtension,
readJSON, readJSONSync, readdirRecursive, pump} | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 618c760cd60e2dfd3a1eb0663bcd9c3ac585806e | 3,484 | https://github.com/jnordberg/wintersmith/blob/618c760cd60e2dfd3a1eb0663bcd9c3ac585806e/src/core/utils.coffee | 51 | 72 |
jnordberg/wintersmith:src/core/utils.coffee:2:raw_corpus | raw_corpus | walk relname, callback
else
result.push relname
callback()
], callback
, callback
], callback
walk '', (error) -> callback error, result
module.exports = {fileExists, fileExistsSync, extend, stripExtension, readJSON, readJSONSync, readdirRecursive} | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 583030a392320c21f316edb74c8e91b5a5a8f275 | 3,484 | https://github.com/jnordberg/wintersmith/blob/583030a392320c21f316edb74c8e91b5a5a8f275/src/core/utils.coffee | 51 | 60 | ||
jnordberg/wintersmith:src/core/utils.coffee:2:completion | completion | walk relname, callback
else
result.push relname
callback()
], callback | , callback
], callback
walk '', (error) -> callback error, result
module.exports = {fileExists, fileExistsSync, extend, stripExtension, readJSON, readJSONSync, readdirRecursive} | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | 583030a392320c21f316edb74c8e91b5a5a8f275 | 3,484 | https://github.com/jnordberg/wintersmith/blob/583030a392320c21f316edb74c8e91b5a5a8f275/src/core/utils.coffee | 51 | 60 |
jnordberg/wintersmith:src/core/utils.coffee:1:raw_corpus | raw_corpus | ### utils.coffee ###
util = require 'util'
fs = require 'fs'
path = require 'path'
async = require 'async'
fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync
extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
stripExtension = (filename) ->
filename.rep... | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | f66d4ed08088938536fc35ef7349eacaf5ab11b8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/f66d4ed08088938536fc35ef7349eacaf5ab11b8/src/core/utils.coffee | 1 | 38 | ||
jnordberg/wintersmith:src/core/utils.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
### utils.coffee ###
util = require 'util'
fs = require 'fs'
path = require 'path'
async = require 'async'
fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync
extend = (obj, mixin) ->
for name, method of mixin
obj[name... | /* utils.coffee */
var async, extend, fileExists, fileExistsSync, fs, path, readJSON, readJSONSync, stripExtension, util;
util = require('util');
fs = require('fs');
path = require('path');
async = require('async');
fileExists = fs.exists || path.exists;
fileExistsSync = fs.existsSync || path.existsSync;
extend ... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | f66d4ed08088938536fc35ef7349eacaf5ab11b8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/f66d4ed08088938536fc35ef7349eacaf5ab11b8/src/core/utils.coffee | 1 | 38 |
jnordberg/wintersmith:src/core/utils.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/* utils.coffee */
var async, extend, fileExists, fileExistsSync, fs, path, readJSON, readJSONSync, stripExtension, util;
util = require('util');
fs = require('fs');
path = require('path');
async = require('async');
fileExists = fs.exists || path.exists;
file... | ### utils.coffee ###
util = require 'util'
fs = require 'fs'
path = require 'path'
async = require 'async'
fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync
extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
stripExtension = (filename) ->
filename.rep... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | f66d4ed08088938536fc35ef7349eacaf5ab11b8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/f66d4ed08088938536fc35ef7349eacaf5ab11b8/src/core/utils.coffee | 1 | 38 |
jnordberg/wintersmith:src/core/utils.coffee:1:completion | completion | ### utils.coffee ###
util = require 'util'
fs = require 'fs'
path = require 'path'
async = require 'async'
fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync
extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
stripExtension = (filename) ->
filename.rep... | async.waterfall [
(callback) ->
fs.readFile filename, callback
(buffer, callback) ->
try
rv = JSON.parse buffer.toString()
callback null, rv
catch error
error.filename = filename
error.message = "parsing #{ path.basename(filename) }: #{ error.message }"
... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/utils.coffee | MIT | f66d4ed08088938536fc35ef7349eacaf5ab11b8 | 3,484 | https://github.com/jnordberg/wintersmith/blob/f66d4ed08088938536fc35ef7349eacaf5ab11b8/src/core/utils.coffee | 1 | 38 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getScrollView(), int... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/api.coffee | 1 | 21 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
... | var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
shakeScreen(intensity = null) {
return this.screenSh... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/api.coffee | 1 | 21 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
s... | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getScrollView(), int... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/api.coffee | 1 | 21 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getScrollView(), int... | playAudio: (audio) ->
@audioPlayer.play(audio)
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement()
getCombo: ->
@combo | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ac060c2476ba8b323ca932eda97da9bc0c051b34 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ac060c2476ba8b323ca932eda97da9bc0c051b34/lib/api.coffee | 1 | 21 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 8b6e0b1979ca981478d8c077169831eb52df5c43 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/8b6e0b1979ca981478d8c077169831eb52df5c43/lib/api.coffee | 1 | 21 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
... | var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
shakeScreen(intensity = null) {
return this.screenSh... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 8b6e0b1979ca981478d8c077169831eb52df5c43 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/8b6e0b1979ca981478d8c077169831eb52df5c43/lib/api.coffee | 1 | 21 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
s... | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 8b6e0b1979ca981478d8c077169831eb52df5c43 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/8b6e0b1979ca981478d8c077169831eb52df5c43/lib/api.coffee | 1 | 21 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | playAudio: (audio) ->
@audioPlayer.play(audio)
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement()
getCombo: ->
@combo | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 8b6e0b1979ca981478d8c077169831eb52df5c43 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/8b6e0b1979ca981478d8c077169831eb52df5c43/lib/api.coffee | 1 | 21 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | e943de845df02bd0098a5d449c46e8b8666707c4 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/e943de845df02bd0098a5d449c46e8b8666707c4/lib/api.coffee | 1 | 18 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
... | var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
shakeScreen(intensity = null) {
return this.screenSh... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | e943de845df02bd0098a5d449c46e8b8666707c4 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/e943de845df02bd0098a5d449c46e8b8666707c4/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
s... | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | e943de845df02bd0098a5d449c46e8b8666707c4 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/e943de845df02bd0098a5d449c46e8b8666707c4/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | playAudio: (audio) ->
@audioPlayer.play(audio)
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | e943de845df02bd0098a5d449c46e8b8666707c4 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/e943de845df02bd0098a5d449c46e8b8666707c4/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/api.coffee | 1 | 18 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
... | var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
shakeScreen(intensity = null) {
return this.screenSh... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
s... | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: (intensity = null) ->
@screenShaker.shake @editorRegistry.getEditorElement(), ... | playAudio: ->
@audioPlayer.play()
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 5ed1f997112958b50080e937cf7ba22c34595b88 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/5ed1f997112958b50080e937cf7ba22c34595b88/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement()
playAudio: ->
... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | d93bec39716b63f2b8f35b88a7e01c1a547215fc | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/d93bec39716b63f2b8f35b88a7e01c1a547215fc/lib/api.coffee | 1 | 18 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: ->
@screenShaker.shak... | var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
shakeScreen() {
return this.screenShaker.shake(this.... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | d93bec39716b63f2b8f35b88a7e01c1a547215fc | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/d93bec39716b63f2b8f35b88a7e01c1a547215fc/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api;
module.exports = Api = class Api {
constructor(editorRegistry, comboApi, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
this.combo = comboApi;
}
s... | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement()
playAudio: ->
... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | d93bec39716b63f2b8f35b88a7e01c1a547215fc | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/d93bec39716b63f2b8f35b88a7e01c1a547215fc/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | module.exports = class Api
constructor: (editorRegistry, comboApi, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
@combo = comboApi
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement() | playAudio: ->
@audioPlayer.play()
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | d93bec39716b63f2b8f35b88a7e01c1a547215fc | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/d93bec39716b63f2b8f35b88a7e01c1a547215fc/lib/api.coffee | 1 | 18 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | module.exports = class Api
constructor: (editorRegistry, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement()
playAudio: ->
@audioPlayer.play()
getEdito... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ef268c960138fd09ca9076e0766119d697f25dfa | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ef268c960138fd09ca9076e0766119d697f25dfa/lib/api.coffee | 1 | 17 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Api
constructor: (editorRegistry, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorEleme... | var Api;
module.exports = Api = class Api {
constructor(editorRegistry, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
}
shakeScreen() {
return this.screenShaker.shake(this.editorRegistry.getEditorElement());
... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ef268c960138fd09ca9076e0766119d697f25dfa | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ef268c960138fd09ca9076e0766119d697f25dfa/lib/api.coffee | 1 | 17 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api;
module.exports = Api = class Api {
constructor(editorRegistry, screenShaker, audioPlayer) {
this.editorRegistry = editorRegistry;
this.screenShaker = screenShaker;
this.audioPlayer = audioPlayer;
}
shakeScreen() {
return this.screen... | module.exports = class Api
constructor: (editorRegistry, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement()
playAudio: ->
@audioPlayer.play()
getEdito... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ef268c960138fd09ca9076e0766119d697f25dfa | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ef268c960138fd09ca9076e0766119d697f25dfa/lib/api.coffee | 1 | 17 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | module.exports = class Api
constructor: (editorRegistry, screenShaker, audioPlayer) ->
@editorRegistry = editorRegistry
@screenShaker = screenShaker
@audioPlayer = audioPlayer
shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement() | playAudio: ->
@audioPlayer.play()
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | ef268c960138fd09ca9076e0766119d697f25dfa | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/ef268c960138fd09ca9076e0766119d697f25dfa/lib/api.coffee | 1 | 17 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports = class Api
screenShaker: screenShaker
audioPlayer: audioPlayer
constructor: (editorRegistry) ->
@editorRegistry = editorRegistry
@screenShaker.init()
shakeScreen: ->
@screenShaker.shake... | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/api.coffee | 1 | 22 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports = class Api
screenShaker: screenShaker
audioPlayer: audioPlayer
constructor: (editorRegistry) ->
@editorRegistry = editorRegistry
@scree... | var Api, audioPlayer, screenShaker;
screenShaker = require("./service/screen-shaker");
audioPlayer = require("./service/audio-player");
module.exports = Api = (function() {
class Api {
constructor(editorRegistry) {
this.editorRegistry = editorRegistry;
this.screenShaker.init();
}
shakeScre... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/api.coffee | 1 | 22 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Api, audioPlayer, screenShaker;
screenShaker = require("./service/screen-shaker");
audioPlayer = require("./service/audio-player");
module.exports = Api = (function() {
class Api {
constructor(editorRegistry) {
this.editorRegistry = editorRegistr... | screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports = class Api
screenShaker: screenShaker
audioPlayer: audioPlayer
constructor: (editorRegistry) ->
@editorRegistry = editorRegistry
@screenShaker.init()
shakeScreen: ->
@screenShaker.shake... | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/api.coffee | 1 | 22 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports = class Api
screenShaker: screenShaker
audioPlayer: audioPlayer
constructor: (editorRegistry) ->
@editorRegistry = editorRegistry
@screenShaker.init() | shakeScreen: ->
@screenShaker.shake @editorRegistry.getEditorElement()
playAudio: ->
audioPlayer.play()
getEditor: ->
@editorRegistry.getEditor()
getEditorElement: ->
@editorRegistry.getEditorElement() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | 314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7 | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/314e0042f8e4551d8fcc7ce9f3c0df0edf7c9dd7/lib/api.coffee | 1 | 22 |
JoelBesada/activate-power-mode:lib/api.coffee:1:raw_corpus | raw_corpus | screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports =
screenShaker: screenShaker
audioPlayer: audioPlayer
init: ->
@screenShaker.init()
shakeScreen: (element) ->
@screenShaker.shake element
playAudio: ->
audioPlayer.play() | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/api.coffee | 1 | 15 | ||
JoelBesada/activate-power-mode:lib/api.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports =
screenShaker: screenShaker
audioPlayer: audioPlayer
init: ->
@screenShaker.init()
shakeScreen: (element) ->
@screenShaker.shake ele... | var audioPlayer, screenShaker;
screenShaker = require("./service/screen-shaker");
audioPlayer = require("./service/audio-player");
module.exports = {
screenShaker: screenShaker,
audioPlayer: audioPlayer,
init: function() {
return this.screenShaker.init();
},
shakeScreen: function(element) {
return ... | CoffeeScript | JavaScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/api.coffee | 1 | 15 |
JoelBesada/activate-power-mode:lib/api.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var audioPlayer, screenShaker;
screenShaker = require("./service/screen-shaker");
audioPlayer = require("./service/audio-player");
module.exports = {
screenShaker: screenShaker,
audioPlayer: audioPlayer,
init: function() {
return this.screenShaker.init... | screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports =
screenShaker: screenShaker
audioPlayer: audioPlayer
init: ->
@screenShaker.init()
shakeScreen: (element) ->
@screenShaker.shake element
playAudio: ->
audioPlayer.play() | JavaScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/api.coffee | 1 | 15 |
JoelBesada/activate-power-mode:lib/api.coffee:1:completion | completion | screenShaker = require "./service/screen-shaker"
audioPlayer = require "./service/audio-player"
module.exports =
screenShaker: screenShaker
audioPlayer: audioPlayer | init: ->
@screenShaker.init()
shakeScreen: (element) ->
@screenShaker.shake element
playAudio: ->
audioPlayer.play() | CoffeeScript | CoffeeScript | JoelBesada/activate-power-mode | lib/api.coffee | MIT | df2ce0d031fed4027cc3cdf72556b151155ce26c | 3,570 | https://github.com/JoelBesada/activate-power-mode/blob/df2ce0d031fed4027cc3cdf72556b151155ce26c/lib/api.coffee | 1 | 15 |
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:1:raw_corpus | raw_corpus | module.exports = React.createClass
displayName: 'group-board'
propTypes:
_teamId: T.string.isRequired
_userId: T.string.isRequired
groups: T.instanceOf(Immutable.List).isRequired
contacts: T.instanceOf(Immutable.List).isRequired
getInitialState: ->
showCreateModal: false
onCreateClick: ->... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 24 | 73 | ||
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = React.createClass
displayName: 'group-board'
propTypes:
_teamId: T.string.isRequired
_userId: T.string.isRequired
groups: T.instanceOf(Immutable.List).isRequired
contacts: T.instanceOf(Immutable.List).isRequired
getInitial... | module.exports = React.createClass({
displayName: 'group-board',
propTypes: {
_teamId: T.string.isRequired,
_userId: T.string.isRequired,
groups: T.instanceOf(Immutable.List).isRequired,
contacts: T.instanceOf(Immutable.List).isRequired
},
getInitialState: function() {
return {
showCre... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 24 | 73 |
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = React.createClass({
displayName: 'group-board',
propTypes: {
_teamId: T.string.isRequired,
_userId: T.string.isRequired,
groups: T.instanceOf(Immutable.List).isRequired,
contacts: T.instanceOf(Immutable.List).isRequired
},
g... | module.exports = React.createClass
displayName: 'group-board'
propTypes:
_teamId: T.string.isRequired
_userId: T.string.isRequired
groups: T.instanceOf(Immutable.List).isRequired
contacts: T.instanceOf(Immutable.List).isRequired
getInitialState: ->
showCreateModal: false
onCreateClick: ->... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 24 | 73 |
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:1:completion | completion | module.exports = React.createClass
displayName: 'group-board'
propTypes:
_teamId: T.string.isRequired
_userId: T.string.isRequired
groups: T.instanceOf(Immutable.List).isRequired
contacts: T.instanceOf(Immutable.List).isRequired
getInitialState: ->
showCreateModal: false
onCreateClick: ->... | _teamId: @props._teamId
groups: @props.groups
onClose: @onCreateClose
contacts: @props.contacts
renderGroups: ->
div className: 'group-list flex-fill flex-stretch thin-scroll',
if @props.groups.size > 0
@props.groups
.sort orders.byReverseDate
.map (group) =>... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 24 | 73 |
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:2:raw_corpus | raw_corpus | render: ->
div className: 'group-board flex-vert flex-fill flex-space',
@renderGroups()
@renderCreate()
@renderCreateModal()
GroupCreateClass = React.createClass
displayName: 'group-create'
mixins: [PureRenderMixin]
propTypes:
_teamId: T.string.isRequired
onCreateClick: T.func.isR... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 74 | 96 | ||
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
render: ->
div className: 'group-board flex-vert flex-fill flex-space',
@renderGroups()
@renderCreate()
@renderCreateModal()
GroupCreateClass = React.createClass
displayName: 'group-create'
mixins: [PureRenderMixin]
propTypes:
_... | var GroupCreateClass, GroupCreatePermission;
({
render: function() {
return div({
className: 'group-board flex-vert flex-fill flex-space'
}, this.renderGroups(), this.renderCreate(), this.renderCreateModal());
}
});
GroupCreateClass = React.createClass({
displayName: 'group-create',
mixins: [Pur... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 74 | 96 |
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var GroupCreateClass, GroupCreatePermission;
({
render: function() {
return div({
className: 'group-board flex-vert flex-fill flex-space'
}, this.renderGroups(), this.renderCreate(), this.renderCreateModal());
}
});
GroupCreateClass = React.crea... | render: ->
div className: 'group-board flex-vert flex-fill flex-space',
@renderGroups()
@renderCreate()
@renderCreateModal()
GroupCreateClass = React.createClass
displayName: 'group-create'
mixins: [PureRenderMixin]
propTypes:
_teamId: T.string.isRequired
onCreateClick: T.func.isR... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 74 | 96 |
jianliaoim/talk-os:talk-web/client/app/group-board.coffee:2:completion | completion | render: ->
div className: 'group-board flex-vert flex-fill flex-space',
@renderGroups()
@renderCreate()
@renderCreateModal()
GroupCreateClass = React.createClass
displayName: 'group-create'
mixins: [PureRenderMixin] | propTypes:
_teamId: T.string.isRequired
onCreateClick: T.func.isRequired
render: ->
div className: 'footer group-create flex-horiz flex-static',
div className: 'button', onClick: @props.onCreateClick,
Icon size: 18, name: 'plus'
span className: 'text', lang.getText('team-group-creat... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/group-board.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/group-board.coffee | 74 | 96 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:raw_corpus | raw_corpus | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 1 | 50 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain brow... | var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return define(["jquery"], pivotModule);
} else {
// Plain br... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return defi... | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:completion | completion | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | computeError: "Ocorreu um error ao computar os resultados da Tabela Dinãmica."
uiRenderError: "Ocorreu um error ao renderizar a interface da Tabela Dinãmica."
selectAll: "Selecionar Tudo"
selectNone: "Selecionar Nenhum"
tooMany: "(demais para listar)"
filterRe... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:raw_corpus | raw_corpus | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
renderers:
"Tabela": ... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 51 | 80 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtP... | ({
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)({
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
}),
renderers: {
"Tabela": r["Table"],
"Tabela com Barr... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 51 | 80 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)({
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
}),
rend... | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
renderers:
"Tabela": ... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 51 | 80 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:completion | completion | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
renderers:
"Tabela": ... | "Gráfico de Barras Empilhadas": gcr["Stacked Bar Chart"]
"Gráfico de Área": gcr["Area Chart"]
if d3r
$.pivotUtilities.locales.pt.d3_renderers =
"Mapa de Árvore": d3r["Treemap"]
if c3r
$.pivotUtilities.locales.pt.c3_renderers =
"Gráfico de Linhas": c3r["Line ... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | f1dfb4e4e306617d89ee0c39f321c387bf726a9e | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/f1dfb4e4e306617d89ee0c39f321c387bf726a9e/pivot.pt.coffee | 51 | 80 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:raw_corpus | raw_corpus | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 1 | 50 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain brow... | var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return define(["jquery"], pivotModule);
} else {
// Plain br... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return defi... | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:completion | completion | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | computeError: "Ocorreu um error ao computar os resultados da Tabela Dinãmica."
uiRenderError: "Ocorreu um error ao renderizar a interface da Tabela Dinãmica."
selectAll: "Selecionar Tudo"
selectNone: "Selecionar Nenhum"
tooMany: "(demais para listar)"
... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:raw_corpus | raw_corpus | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
re... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 51 | 80 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": t... | ({
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)({
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
}),
renderers: {
... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 51 | 80 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)({
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(... | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
re... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 51 | 80 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:completion | completion | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
re... | "Gráfico de Barras Empilhadas": gcr["Stacked Bar Chart"]
"Gráfico de Área": gcr["Area Chart"]
if d3r
$.pivotUtilities.locales.pt.d3_renderers =
"Mapa de Árvore": d3r["Treemap"]
if c3r
$.pivotUtilities.locales.pt.c3_renderers =
"Grá... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 919ee19b38c410b9d6b98626b4044e4baa7ad8ab | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/919ee19b38c410b9d6b98626b4044e4baa7ad8ab/pivot.pt.coffee | 51 | 80 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:raw_corpus | raw_corpus | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
re... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | cab78f171625da61488ee8197809363d36209574 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/cab78f171625da61488ee8197809363d36209574/pivot.pt.coffee | 51 | 78 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": t... | ({
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)({
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
}),
renderers: {
... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | cab78f171625da61488ee8197809363d36209574 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/cab78f171625da61488ee8197809363d36209574/pivot.pt.coffee | 51 | 78 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)({
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(... | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
re... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | cab78f171625da61488ee8197809363d36209574 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/cab78f171625da61488ee8197809363d36209574/pivot.pt.coffee | 51 | 78 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:completion | completion | "Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
re... | "Gráfico de Barras": gcr["Bar Chart"]
"Gráfico de Barras Empilhadas": gcr["Stacked Bar Chart"]
"Gráfico de Área": gcr["Area Chart"]
if d3r
$.pivotUtilities.locales.pt.d3_renderers =
"Mapa de Árvore": d3r["Treemap"]
if c3r... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | cab78f171625da61488ee8197809363d36209574 | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/cab78f171625da61488ee8197809363d36209574/pivot.pt.coffee | 51 | 78 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:raw_corpus | raw_corpus | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc/pivot.pt.coffee | 1 | 50 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain brow... | var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return define(["jquery"], pivotModule);
} else {
// Plain br... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var callWithJQuery;
callWithJQuery = function(pivotModule) {
if (typeof exports === "object" && typeof module === "object") { // CommonJS
return pivotModule(require("jquery"));
} else if (typeof define === "function" && define.amd) { // AMD
return defi... | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | JavaScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:1:completion | completion | callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQue... | selectAll: "Selecionar Tudo"
selectNone: "Selecionar Nenhum"
tooMany: "(demais para listar)"
filterResults: "Filtrar resultados"
totals: "Totais"
vs: "vs"
by: "por"
aggregators:
"Contagem": t... | CoffeeScript | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc/pivot.pt.coffee | 1 | 50 |
nicolaskruchten/pivottable:pivot.pt.coffee:2:raw_corpus | raw_corpus | "Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
renderers:
"Tabela": r["Table"]
"Tabela com Barras": r["Table Barchart"]
"Mapa de Calor": r["Heatmap"]
"Mapa de Calor por Linhas"... | CoffeeScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc/pivot.pt.coffee | 51 | 67 | ||
nicolaskruchten/pivottable:pivot.pt.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
renderers:
"Tabela": r["Table"]
"Tabela com Barras": r["Table Barchart"]
"Mapa de Calor": ... | ({
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)({
renderers: {
"Tabela": r["Table"],
"Tabela com Barras": r["Table Barchart"],
"Mapa de Calor": r["Heatmap"],
"Mapa de Calor por Linhas": r["Row Heatmap"],
"Mapa de Calor por Colunas": r["... | CoffeeScript | JavaScript | nicolaskruchten/pivottable | pivot.pt.coffee | MIT | 899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc | 4,440 | https://github.com/nicolaskruchten/pivottable/blob/899dfde6bce7ad83a81abd9bf03e29e5c03f2bcc/pivot.pt.coffee | 51 | 67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.