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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
oozcitak/xmlbuilder-js:test/guards/element.coffee:1:raw_corpus | raw_corpus | suite 'XMLElement Guards:', ->
test 'constructor and removeAttribute', ->
testCases = [
() -> xml('test').nod()
() -> xml('test').ele('node').removeAttribute()
]
results = [
"Missing element name. parent: <test>"
"Missing attribute name. parent: <test>"
]
err(
testC... | CoffeeScript | oozcitak/xmlbuilder-js | test/guards/element.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/guards/element.coffee | 1 | 17 | ||
oozcitak/xmlbuilder-js:test/guards/element.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
suite 'XMLElement Guards:', ->
test 'constructor and removeAttribute', ->
testCases = [
() -> xml('test').nod()
() -> xml('test').ele('node').removeAttribute()
]
results = [
"Missing element name. parent: <test>"
"Missing at... | suite('XMLElement Guards:', function() {
return test('constructor and removeAttribute', function() {
var i, j, ref, results, results1, testCases;
testCases = [
function() {
return xml('test').nod();
},
function() {
return xml('test').ele('node').removeAttribute();
}
... | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | test/guards/element.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/guards/element.coffee | 1 | 17 |
oozcitak/xmlbuilder-js:test/guards/element.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
suite('XMLElement Guards:', function() {
return test('constructor and removeAttribute', function() {
var i, j, ref, results, results1, testCases;
testCases = [
function() {
return xml('test').nod();
},
function() {
return... | suite 'XMLElement Guards:', ->
test 'constructor and removeAttribute', ->
testCases = [
() -> xml('test').nod()
() -> xml('test').ele('node').removeAttribute()
]
results = [
"Missing element name. parent: <test>"
"Missing attribute name. parent: <test>"
]
err(
testC... | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | test/guards/element.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/guards/element.coffee | 1 | 17 |
oozcitak/xmlbuilder-js:test/guards/element.coffee:1:completion | completion | suite 'XMLElement Guards:', ->
test 'constructor and removeAttribute', ->
testCases = [
() -> xml('test').nod()
() -> xml('test').ele('node').removeAttribute()
]
results = [ | "Missing element name. parent: <test>"
"Missing attribute name. parent: <test>"
]
err(
testCases[i]
Error
results[i]
) for i in [0..testCases.length-1] | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | test/guards/element.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/guards/element.coffee | 1 | 17 |
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:1:raw_corpus | raw_corpus | module.exports = React.createClass
displayName: 'file-image'
mixins: [PureRenderMixin]
propTypes:
file: React.PropTypes.object.isRequired
getInitialState: ->
showLarge: false
currentIndex: 0
scale: 1
quiet: false
componentDidMount: ->
@container = @refs.container
window.addEvent... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 19 | 68 | ||
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = React.createClass
displayName: 'file-image'
mixins: [PureRenderMixin]
propTypes:
file: React.PropTypes.object.isRequired
getInitialState: ->
showLarge: false
currentIndex: 0
scale: 1
quiet: false
componentDidMount... | module.exports = React.createClass({
displayName: 'file-image',
mixins: [PureRenderMixin],
propTypes: {
file: React.PropTypes.object.isRequired
},
getInitialState: function() {
return {
showLarge: false,
currentIndex: 0,
scale: 1,
quiet: false
};
},
componentDidMount: f... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 19 | 68 |
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = React.createClass({
displayName: 'file-image',
mixins: [PureRenderMixin],
propTypes: {
file: React.PropTypes.object.isRequired
},
getInitialState: function() {
return {
showLarge: false,
currentIndex: 0,
scale: 1... | module.exports = React.createClass
displayName: 'file-image'
mixins: [PureRenderMixin]
propTypes:
file: React.PropTypes.object.isRequired
getInitialState: ->
showLarge: false
currentIndex: 0
scale: 1
quiet: false
componentDidMount: ->
@container = @refs.container
window.addEvent... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 19 | 68 |
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:1:completion | completion | module.exports = React.createClass
displayName: 'file-image'
mixins: [PureRenderMixin]
propTypes:
file: React.PropTypes.object.isRequired
getInitialState: ->
showLarge: false
currentIndex: 0
scale: 1
quiet: false
componentDidMount: ->
@container = @refs.container
window.addEvent... | cHeight = @container.clientHeight
if index % 2 is 0
1
else
util.imageRotateScale(iWidth, iHeight, cWidth, cHeight)
onWindowResize: ->
if @isMounted()
@setState
scale: @calculateScale(@state.currentIndex)
onZoomIn: ->
analytics.viewOverlayImage()
@setState showLarge: ... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 19 | 68 |
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:2:raw_corpus | raw_corpus | onRotate: (moveIndex, rotateLeft) ->
nextIndex = (@state.currentIndex + moveIndex) % degs.length
reachLeft = -> nextIndex is (degs.length - 1) and rotateLeft
reachRight= -> nextIndex is 0 and not rotateLeft
if reachLeft()
@setState
quiet: true
currentIndex: nextIndex
, =... | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 69 | 118 | ||
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
onRotate: (moveIndex, rotateLeft) ->
nextIndex = (@state.currentIndex + moveIndex) % degs.length
reachLeft = -> nextIndex is (degs.length - 1) and rotateLeft
reachRight= -> nextIndex is 0 and not rotateLeft
if reachLeft()
@setState
... | ({
onRotate: function(moveIndex, rotateLeft) {
var nextIndex, reachLeft, reachRight;
nextIndex = (this.state.currentIndex + moveIndex) % degs.length;
reachLeft = function() {
return nextIndex === (degs.length - 1) && rotateLeft;
};
reachRight = function() {
return nextIndex === 0 && !r... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 69 | 118 |
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
({
onRotate: function(moveIndex, rotateLeft) {
var nextIndex, reachLeft, reachRight;
nextIndex = (this.state.currentIndex + moveIndex) % degs.length;
reachLeft = function() {
return nextIndex === (degs.length - 1) && rotateLeft;
};
reach... | onRotate: (moveIndex, rotateLeft) ->
nextIndex = (@state.currentIndex + moveIndex) % degs.length
reachLeft = -> nextIndex is (degs.length - 1) and rotateLeft
reachRight= -> nextIndex is 0 and not rotateLeft
if reachLeft()
@setState
quiet: true
currentIndex: nextIndex
, =... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 69 | 118 |
jianliaoim/talk-os:talk-web/client/app/file-image.coffee:2:completion | completion | onRotate: (moveIndex, rotateLeft) ->
nextIndex = (@state.currentIndex + moveIndex) % degs.length
reachLeft = -> nextIndex is (degs.length - 1) and rotateLeft
reachRight= -> nextIndex is 0 and not rotateLeft
if reachLeft()
@setState
quiet: true
currentIndex: nextIndex
, =... | Icon name: 'rotate-left', size: 20
lang.getText('rotate-left')
div className: 'line flex-horiz flex-vcenter', onClick: onRotateRight,
Icon name: 'rotate-right', size: 20
lang.getText('rotate-right')
render: ->
src = @props.file.get('downloadUrl')
largePic = @props.file.get('ima... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/app/file-image.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/file-image.coffee | 69 | 118 |
CaryLandholt/AngularFun:middleware.coffee:1:raw_corpus | raw_corpus | module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static String(options.base)
app.use a... | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 81c497ed65bbb9734069981133e9123e586c473c | 672 | https://github.com/CaryLandholt/AngularFun/blob/81c497ed65bbb9734069981133e9123e586c473c/middleware.coffee | 1 | 15 | ||
CaryLandholt/AngularFun:middleware.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
... | module.exports = function(connect, options) {
var app, express, routes;
express = require('express');
routes = require('./routes');
app = express();
app.configure(function() {
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.erro... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 81c497ed65bbb9734069981133e9123e586c473c | 672 | https://github.com/CaryLandholt/AngularFun/blob/81c497ed65bbb9734069981133e9123e586c473c/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(connect, options) {
var app, express, routes;
express = require('express');
routes = require('./routes');
app = express();
app.configure(function() {
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.... | module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static String(options.base)
app.use a... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 81c497ed65bbb9734069981133e9123e586c473c | 672 | https://github.com/CaryLandholt/AngularFun/blob/81c497ed65bbb9734069981133e9123e586c473c/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:completion | completion | module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev' | app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static String(options.base)
app.use app.router
routes app, options
[connect(app)] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 81c497ed65bbb9734069981133e9123e586c473c | 672 | https://github.com/CaryLandholt/AngularFun/blob/81c497ed65bbb9734069981133e9123e586c473c/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:raw_corpus | raw_corpus | module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static options.base
app.use app.route... | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | f9f2824f517fda16d7ecea892ecf58a62c7a18e4 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f9f2824f517fda16d7ecea892ecf58a62c7a18e4/middleware.coffee | 1 | 15 | ||
CaryLandholt/AngularFun:middleware.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
... | module.exports = function(connect, options) {
var app, express, routes;
express = require('express');
routes = require('./routes');
app = express();
app.configure(function() {
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.erro... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | middleware.coffee | MIT | f9f2824f517fda16d7ecea892ecf58a62c7a18e4 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f9f2824f517fda16d7ecea892ecf58a62c7a18e4/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(connect, options) {
var app, express, routes;
express = require('express');
routes = require('./routes');
app = express();
app.configure(function() {
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.... | module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static options.base
app.use app.route... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | f9f2824f517fda16d7ecea892ecf58a62c7a18e4 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f9f2824f517fda16d7ecea892ecf58a62c7a18e4/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:completion | completion | module.exports = (connect, options) ->
express = require 'express'
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev' | app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static options.base
app.use app.router
routes app, options
[connect(app)] | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | f9f2824f517fda16d7ecea892ecf58a62c7a18e4 | 672 | https://github.com/CaryLandholt/AngularFun/blob/f9f2824f517fda16d7ecea892ecf58a62c7a18e4/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:raw_corpus | raw_corpus | module.exports = (connect, options) ->
express = require 'express'
middlewares = []
options.base.forEach (base) ->
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()... | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 34e74bf5ad74c66032f82de4b08768edf4674539 | 672 | https://github.com/CaryLandholt/AngularFun/blob/34e74bf5ad74c66032f82de4b08768edf4674539/middleware.coffee | 1 | 20 | ||
CaryLandholt/AngularFun:middleware.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (connect, options) ->
express = require 'express'
middlewares = []
options.base.forEach (base) ->
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use e... | module.exports = function(connect, options) {
var express, middlewares;
express = require('express');
middlewares = [];
options.base.forEach(function(base) {
var app, routes;
routes = require('./routes');
app = express();
app.configure(function() {
app.use(express.logger('dev'));
app... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 34e74bf5ad74c66032f82de4b08768edf4674539 | 672 | https://github.com/CaryLandholt/AngularFun/blob/34e74bf5ad74c66032f82de4b08768edf4674539/middleware.coffee | 1 | 20 |
CaryLandholt/AngularFun:middleware.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(connect, options) {
var express, middlewares;
express = require('express');
middlewares = [];
options.base.forEach(function(base) {
var app, routes;
routes = require('./routes');
app = express();
app.configure(funct... | module.exports = (connect, options) ->
express = require 'express'
middlewares = []
options.base.forEach (base) ->
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 34e74bf5ad74c66032f82de4b08768edf4674539 | 672 | https://github.com/CaryLandholt/AngularFun/blob/34e74bf5ad74c66032f82de4b08768edf4674539/middleware.coffee | 1 | 20 |
CaryLandholt/AngularFun:middleware.coffee:1:completion | completion | module.exports = (connect, options) ->
express = require 'express'
middlewares = []
options.base.forEach (base) ->
routes = require './routes'
app = express()
app.configure ->
app.use express.logger 'dev' | app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static base
app.use app.router
routes app, options
middlewares.push connect(app)
middlewares | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 34e74bf5ad74c66032f82de4b08768edf4674539 | 672 | https://github.com/CaryLandholt/AngularFun/blob/34e74bf5ad74c66032f82de4b08768edf4674539/middleware.coffee | 1 | 20 |
CaryLandholt/AngularFun:middleware.coffee:1:raw_corpus | raw_corpus | module.exports = (connect, options) ->
express = require 'express'
livereloadUtilities = require 'grunt-contrib-livereload/lib/utils'
routes = require './routes'
app = express()
app.configure ->
app.use livereloadUtilities.livereloadSnippet
app.use express.logger 'dev'
app.use express.bodyParser()
app.use... | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 03b9ecebe259c9bd7af4670049fd749a0d99a8e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/03b9ecebe259c9bd7af4670049fd749a0d99a8e9/middleware.coffee | 1 | 17 | ||
CaryLandholt/AngularFun:middleware.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (connect, options) ->
express = require 'express'
livereloadUtilities = require 'grunt-contrib-livereload/lib/utils'
routes = require './routes'
app = express()
app.configure ->
app.use livereloadUtilities.livereloadSnippet
app.use expr... | module.exports = function(connect, options) {
var app, express, livereloadUtilities, routes;
express = require('express');
livereloadUtilities = require('grunt-contrib-livereload/lib/utils');
routes = require('./routes');
app = express();
app.configure(function() {
app.use(livereloadUtilities.livereload... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 03b9ecebe259c9bd7af4670049fd749a0d99a8e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/03b9ecebe259c9bd7af4670049fd749a0d99a8e9/middleware.coffee | 1 | 17 |
CaryLandholt/AngularFun:middleware.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(connect, options) {
var app, express, livereloadUtilities, routes;
express = require('express');
livereloadUtilities = require('grunt-contrib-livereload/lib/utils');
routes = require('./routes');
app = express();
app.configure(... | module.exports = (connect, options) ->
express = require 'express'
livereloadUtilities = require 'grunt-contrib-livereload/lib/utils'
routes = require './routes'
app = express()
app.configure ->
app.use livereloadUtilities.livereloadSnippet
app.use express.logger 'dev'
app.use express.bodyParser()
app.use... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 03b9ecebe259c9bd7af4670049fd749a0d99a8e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/03b9ecebe259c9bd7af4670049fd749a0d99a8e9/middleware.coffee | 1 | 17 |
CaryLandholt/AngularFun:middleware.coffee:1:completion | completion | module.exports = (connect, options) ->
express = require 'express'
livereloadUtilities = require 'grunt-contrib-livereload/lib/utils'
routes = require './routes'
app = express()
app.configure ->
app.use livereloadUtilities.livereloadSnippet | app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static options.base
app.use app.router
routes app, options
connect(app).stack | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 03b9ecebe259c9bd7af4670049fd749a0d99a8e9 | 672 | https://github.com/CaryLandholt/AngularFun/blob/03b9ecebe259c9bd7af4670049fd749a0d99a8e9/middleware.coffee | 1 | 17 |
CaryLandholt/AngularFun:middleware.coffee:1:raw_corpus | raw_corpus | module.exports = (connect, options) ->
express = require 'express'
app = express()
app.configure ->
app.use require('grunt-contrib-livereload/lib/utils').livereloadSnippet
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use ex... | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 6d34c420d19d42999b712910566e110e1e84f2b2 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d34c420d19d42999b712910566e110e1e84f2b2/middleware.coffee | 1 | 15 | ||
CaryLandholt/AngularFun:middleware.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = (connect, options) ->
express = require 'express'
app = express()
app.configure ->
app.use require('grunt-contrib-livereload/lib/utils').livereloadSnippet
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.metho... | module.exports = function(connect, options) {
var app, express;
express = require('express');
app = express();
app.configure(function() {
app.use(require('grunt-contrib-livereload/lib/utils').livereloadSnippet);
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.metho... | CoffeeScript | JavaScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 6d34c420d19d42999b712910566e110e1e84f2b2 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d34c420d19d42999b712910566e110e1e84f2b2/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = function(connect, options) {
var app, express;
express = require('express');
app = express();
app.configure(function() {
app.use(require('grunt-contrib-livereload/lib/utils').livereloadSnippet);
app.use(express.logger('dev'));
a... | module.exports = (connect, options) ->
express = require 'express'
app = express()
app.configure ->
app.use require('grunt-contrib-livereload/lib/utils').livereloadSnippet
app.use express.logger 'dev'
app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use ex... | JavaScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 6d34c420d19d42999b712910566e110e1e84f2b2 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d34c420d19d42999b712910566e110e1e84f2b2/middleware.coffee | 1 | 15 |
CaryLandholt/AngularFun:middleware.coffee:1:completion | completion | module.exports = (connect, options) ->
express = require 'express'
app = express()
app.configure ->
app.use require('grunt-contrib-livereload/lib/utils').livereloadSnippet
app.use express.logger 'dev' | app.use express.bodyParser()
app.use express.methodOverride()
app.use express.errorHandler()
app.use express.static options.base
app.use app.router
require('./routes')(app, options)
connect(app).stack | CoffeeScript | CoffeeScript | CaryLandholt/AngularFun | middleware.coffee | MIT | 6d34c420d19d42999b712910566e110e1e84f2b2 | 672 | https://github.com/CaryLandholt/AngularFun/blob/6d34c420d19d42999b712910566e110e1e84f2b2/middleware.coffee | 1 | 15 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li ... | var attachListeners, check, exp, i18n, i18nOpts, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trif... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, i18n, i18nOpts, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, version... | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | releasedVersion = window.localStorage.versionAdvertised
localVersion = remote.require('electron').app.getVersion()
module.exports = exp = trifl.layout ->
div class: 'about', ->
div ->
span onclick: (e) ->
window.close()
, ->
span class: 'close-me mate... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:raw_corpus | raw_corpus | em "#{i18n.__ 'menu.help.about.license:License'}: "
span 'MIT'
div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors:Main authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/aboutlayout.coffee | 51 | 79 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:completion | completion | em "#{i18n.__ 'menu.help.about.license:License'}: "
span 'MIT'
div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors:Main authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
... | li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
requ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 39e8c438d6f6401e39be9bb77e20643e0401c3e7 | 3,762 | https://github.com/yakyak/yakyak/blob/39e8c438d6f6401e39be9bb77e20643e0401c3e7/src/ui/views/aboutlayout.coffee | 51 | 79 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d | 3,762 | https://github.com/yakyak/yakyak/blob/5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li ... | var attachListeners, check, exp, i18n, i18nOpts, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trif... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d | 3,762 | https://github.com/yakyak/yakyak/blob/5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, i18n, i18nOpts, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, version... | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d | 3,762 | https://github.com/yakyak/yakyak/blob/5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | releasedVersion = window.localStorage.versionAdvertised
localVersion = remote.require('electron').app.getVersion()
module.exports = exp = trifl.layout ->
div class: 'about', ->
div ->
span onclick: (e) ->
window.close()
, ->
span class: 'close-me mate... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d | 3,762 | https://github.com/yakyak/yakyak/blob/5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:raw_corpus | raw_corpus | em "#{i18n.__ 'menu.help.about.license'}: "
span 'MIT'
div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d | 3,762 | https://github.com/yakyak/yakyak/blob/5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d/src/ui/views/aboutlayout.coffee | 51 | 79 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:completion | completion | em "#{i18n.__ 'menu.help.about.license'}: "
span 'MIT'
div class: 'devs', ->
div ->
h3 i18n.__('menu.help.about.authors')
ul ->
li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.... | li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home', ->
href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
requ... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d | 3,762 | https://github.com/yakyak/yakyak/blob/5b8a5b966b9b80ae6a4aeb77cd1aaa7c30f6659d/src/ui/views/aboutlayout.coffee | 51 | 79 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6 | 3,762 | https://github.com/yakyak/yakyak/blob/e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li ... | var attachListeners, check, exp, i18n, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
// e... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6 | 3,762 | https://github.com/yakyak/yakyak/blob/e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, i18n, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = r... | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6 | 3,762 | https://github.com/yakyak/yakyak/blob/e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | span onclick: (e) ->
window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# TODO: if objects are... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6 | 3,762 | https://github.com/yakyak/yakyak/blob/e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:raw_corpus | raw_corpus | li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.__('menu.help.about.contributors')
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6 | 3,762 | https://github.com/yakyak/yakyak/blob/e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6/src/ui/views/aboutlayout.coffee | 51 | 73 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:completion | completion | li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 i18n.__('menu.help.about.contributors')
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
... | href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal address
false
, href
attachListeners... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6 | 3,762 | https://github.com/yakyak/yakyak/blob/e5ee49b6b26189b426d9dfaa24c9ba84cceae0a6/src/ui/views/aboutlayout.coffee | 51 | 73 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li ... | var attachListeners, check, exp, i18n, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
// e... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, i18n, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = r... | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | span onclick: (e) ->
window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# TODO: if objects are... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 9d5ec987bb380d1b6e2f588f509f15fd287300c3 | 3,762 | https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 7cf2c813855f22823eb8a9d309551eccdccf4948 | 3,762 | https://github.com/yakyak/yakyak/blob/7cf2c813855f22823eb8a9d309551eccdccf4948/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li ... | var attachListeners, check, exp, i18n, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
// e... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 7cf2c813855f22823eb8a9d309551eccdccf4948 | 3,762 | https://github.com/yakyak/yakyak/blob/7cf2c813855f22823eb8a9d309551eccdccf4948/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, i18n, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
i18n = require('i18n');
remote = require('electron').remote;
({check, versionToInt} = r... | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 7cf2c813855f22823eb8a9d309551eccdccf4948 | 3,762 | https://github.com/yakyak/yakyak/blob/7cf2c813855f22823eb8a9d309551eccdccf4948/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
i18n = require 'i18n'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody... | span onclick: (e) ->
window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# TODO: if objects are... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 7cf2c813855f22823eb8a9d309551eccdccf4948 | 3,762 | https://github.com/yakyak/yakyak/blob/7cf2c813855f22823eb8a9d309551eccdccf4948/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:raw_corpus | raw_corpus | li 'Martin Algesten'
div ->
h3 i18n.__('Contributors')
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home'... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 7cf2c813855f22823eb8a9d309551eccdccf4948 | 3,762 | https://github.com/yakyak/yakyak/blob/7cf2c813855f22823eb8a9d309551eccdccf4948/src/ui/views/aboutlayout.coffee | 51 | 72 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:completion | completion | li 'Martin Algesten'
div ->
h3 i18n.__('Contributors')
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home'... | a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal address
false
, href
attachListeners()
#$('document').on 'click', '.link-out', (ev)->
# | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 7cf2c813855f22823eb8a9d309551eccdccf4948 | 3,762 | https://github.com/yakyak/yakyak/blob/7cf2c813855f22823eb8a9d309551eccdccf4948/src/ui/views/aboutlayout.coffee | 51 | 72 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody tr td th textarea... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s... | var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
// expose some selected tagg functi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl =... | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody tr td th textarea... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody tr td th textarea... | window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# TODO: if objects are undefined then it should check again... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:raw_corpus | raw_corpus | div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home', ->
href = "https://github.co... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 51 | 71 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
di... | div(function() {
h3('Contributors');
return ul(function() {
li('David Banham');
li('Max Kueng');
li('Arnaud Riu');
li('Austin Guevara');
return li('André Veríssimo');
});
});
div({
class: 'home'
}, function() {
var href;
href = "https://github.com/yakyak/yakyak";
return a({
href: ... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 51 | 71 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
div(function() {
h3('Contributors');
return ul(function() {
li('David Banham');
li('Max Kueng');
li('Arnaud Riu');
li('Austin Guevara');
return li('André Veríssimo');
});
});
div({
class: 'home'
}, function() {
var href;
href = "htt... | div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home', ->
href = "https://github.co... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 51 | 71 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:completion | completion | div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Veríssimo'
div class: 'home', ->
href = "https://github.co... | a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal address
false
, href
attachListeners()
#$('document').on 'click', '.link-out', (ev)->
# | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c | 3,762 | https://github.com/yakyak/yakyak/blob/995d6d6481b788c70f48fa4c7bd2e61dce3b3d4c/src/ui/views/aboutlayout.coffee | 51 | 71 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody tr td th textarea... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 744ffdebfdd6933c3ae8c18399b719eaeca3ef59 | 3,762 | https://github.com/yakyak/yakyak/blob/744ffdebfdd6933c3ae8c18399b719eaeca3ef59/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s... | var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
// expose some selected tagg functi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 744ffdebfdd6933c3ae8c18399b719eaeca3ef59 | 3,762 | https://github.com/yakyak/yakyak/blob/744ffdebfdd6933c3ae8c18399b719eaeca3ef59/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl =... | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody tr td th textarea... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 744ffdebfdd6933c3ae8c18399b719eaeca3ef59 | 3,762 | https://github.com/yakyak/yakyak/blob/744ffdebfdd6933c3ae8c18399b719eaeca3ef59/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody tr td th textarea... | window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# TODO: if objects are undefined then it should check again... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 744ffdebfdd6933c3ae8c18399b719eaeca3ef59 | 3,762 | https://github.com/yakyak/yakyak/blob/744ffdebfdd6933c3ae8c18399b719eaeca3ef59/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('layout ul li div span a i b u s button p label
input table thead tbody tr td th t... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | c453875b86a737cd756678c333f44ff5fe1fee65 | 3,762 | https://github.com/yakyak/yakyak/blob/c453875b86a737cd756678c333f44ff5fe1fee65/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('layout ul li div span a ... | var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
// expose some selected tagg functi... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | c453875b86a737cd756678c333f44ff5fe1fee65 | 3,762 | https://github.com/yakyak/yakyak/blob/c453875b86a737cd756678c333f44ff5fe1fee65/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl =... | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('layout ul li div span a i b u s button p label
input table thead tbody tr td th t... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | c453875b86a737cd756678c333f44ff5fe1fee65 | 3,762 | https://github.com/yakyak/yakyak/blob/c453875b86a737cd756678c333f44ff5fe1fee65/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
# expose some selected tagg functions
trifl.tagg.expose window, ('layout ul li div span a i b u s button p label
input table thead tbody tr td th t... | window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# TODO: if objects are undefined then it should check again... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | c453875b86a737cd756678c333f44ff5fe1fee65 | 3,762 | https://github.com/yakyak/yakyak/blob/c453875b86a737cd756678c333f44ff5fe1fee65/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:raw_corpus | raw_corpus | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
trifl.expose window
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody ... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 70e7a2da92df31601a23b28360ff9ea50c4d97d3 | 3,762 | https://github.com/yakyak/yakyak/blob/70e7a2da92df31601a23b28360ff9ea50c4d97d3/src/ui/views/aboutlayout.coffee | 1 | 50 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
trifl.expose window
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li d... | var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl = require('trifl');
trifl.expose(window);
// expose so... | CoffeeScript | JavaScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 70e7a2da92df31601a23b28360ff9ea50c4d97d3 | 3,762 | https://github.com/yakyak/yakyak/blob/70e7a2da92df31601a23b28360ff9ea50c4d97d3/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var attachListeners, check, exp, ipc, localVersion, path, releasedVersion, remote, trifl, versionToInt;
ipc = require('electron').ipcRenderer;
path = require('path');
remote = require('electron').remote;
({check, versionToInt} = require('../version'));
trifl =... | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
trifl.expose window
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody ... | JavaScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 70e7a2da92df31601a23b28360ff9ea50c4d97d3 | 3,762 | https://github.com/yakyak/yakyak/blob/70e7a2da92df31601a23b28360ff9ea50c4d97d3/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:1:completion | completion | ipc = require('electron').ipcRenderer
path = require 'path'
remote = require('electron').remote
{check, versionToInt} = require '../version'
trifl = require 'trifl'
trifl.expose window
# expose some selected tagg functions
trifl.tagg.expose window, ('ul li div span a i b u s button p label
input table thead tbody ... | div ->
span onclick: (e) ->
window.close()
, ->
span class: 'close-me material-icons', ''
div ->
img src: path.join __dirname, '..', '..', 'icons', 'icon@8.png'
div class: 'name', ->
h2 'YakYak v' + localVersion
# T... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 70e7a2da92df31601a23b28360ff9ea50c4d97d3 | 3,762 | https://github.com/yakyak/yakyak/blob/70e7a2da92df31601a23b28360ff9ea50c4d97d3/src/ui/views/aboutlayout.coffee | 1 | 50 |
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:raw_corpus | raw_corpus | li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Verís... | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 70e7a2da92df31601a23b28360ff9ea50c4d97d3 | 3,762 | https://github.com/yakyak/yakyak/blob/70e7a2da92df31601a23b28360ff9ea50c4d97d3/src/ui/views/aboutlayout.coffee | 51 | 73 | ||
yakyak/yakyak:src/ui/views/aboutlayout.coffee:2:completion | completion | li 'Davide Bertola'
li 'Martin Algesten'
div ->
h3 'Contributors'
ul ->
li 'David Banham'
li 'Max Kueng'
li 'Arnaud Riu'
li 'Austin Guevara'
li 'André Verís... | href = "https://github.com/yakyak/yakyak"
a href: href
, onclick: (ev) ->
ev.preventDefault()
address = ev.currentTarget.getAttribute 'href'
require('electron').shell.openExternal address
false
, href
attachListeners... | CoffeeScript | CoffeeScript | yakyak/yakyak | src/ui/views/aboutlayout.coffee | MIT | 70e7a2da92df31601a23b28360ff9ea50c4d97d3 | 3,762 | https://github.com/yakyak/yakyak/blob/70e7a2da92df31601a23b28360ff9ea50c4d97d3/src/ui/views/aboutlayout.coffee | 51 | 73 |
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/while.coffee:1:raw_corpus | raw_corpus | # Econ 101
if this.studying_economics
buy() while supply > demand
sell() until supply > demand
# Nursery Rhyme
num: 6
lyrics: while num -= 1
num + " little monkeys, jumping on the bed.
One fell out and bumped his head." | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/documentation/coffee/while.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/while.coffee | 1 | 10 | ||
twilson63/express-coffee:lib/coffee/lib/coffee-script/documentation/coffee/while.coffee:1:completion | completion | # Econ 101
if this.studying_economics
buy() while supply > demand
sell() until supply > demand | # Nursery Rhyme
num: 6
lyrics: while num -= 1
num + " little monkeys, jumping on the bed.
One fell out and bumped his head." | CoffeeScript | CoffeeScript | twilson63/express-coffee | lib/coffee/lib/coffee-script/documentation/coffee/while.coffee | MIT | 971837f7d7a5e96cf5a5fdb52e52748060ed2c68 | 622 | https://github.com/twilson63/express-coffee/blob/971837f7d7a5e96cf5a5fdb52e52748060ed2c68/lib/coffee/lib/coffee-script/documentation/coffee/while.coffee | 1 | 10 |
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:1:raw_corpus | raw_corpus | api = require '../network/api'
TALK = require '../config'
searchActions = require './search'
dispatcher = require '../dispatcher'
apiHost = TALK.apiHost
# expose methods
exports.createTag = (_teamId, name, success, fail) ->
data =
_teamId: _teamId
name: name
api.tags.create.post(data: data)
.the... | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 1 | 50 | ||
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
api = require '../network/api'
TALK = require '../config'
searchActions = require './search'
dispatcher = require '../dispatcher'
apiHost = TALK.apiHost
# expose methods
exports.createTag = (_teamId, name, success, fail) ->
data =
_teamId: _teamId
... | var TALK, api, apiHost, dispatcher, searchActions;
api = require('../network/api');
TALK = require('../config');
searchActions = require('./search');
dispatcher = require('../dispatcher');
apiHost = TALK.apiHost;
// expose methods
exports.createTag = function(_teamId, name, success, fail) {
var data;
data = {... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var TALK, api, apiHost, dispatcher, searchActions;
api = require('../network/api');
TALK = require('../config');
searchActions = require('./search');
dispatcher = require('../dispatcher');
apiHost = TALK.apiHost;
// expose methods
exports.createTag = function... | api = require '../network/api'
TALK = require '../config'
searchActions = require './search'
dispatcher = require '../dispatcher'
apiHost = TALK.apiHost
# expose methods
exports.createTag = (_teamId, name, success, fail) ->
data =
_teamId: _teamId
name: name
api.tags.create.post(data: data)
.the... | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:1:completion | completion | api = require '../network/api'
TALK = require '../config'
searchActions = require './search'
dispatcher = require '../dispatcher'
apiHost = TALK.apiHost
# expose methods
exports.createTag = (_teamId, name, success, fail) ->
data =
_teamId: _teamId
name: name
api.tags.create.post(data: data)
.the... | dispatcher.handleViewAction type: 'tag/remove', data: resp
.catch (error) ->
fail? error
exports.readTag = (_teamId, success, fail) ->
api.tags.read.get(queryParams: {_teamId})
.then (resp) ->
dispatcher.handleViewAction type: 'tag/read', data:
_teamId: _teamId
tags: resp
su... | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 1 | 50 |
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:2:raw_corpus | raw_corpus | exports.searchTagged = (data, success, fail) ->
readResults = (resp) ->
dispatcher.handleViewAction
type: 'tagged-result/read'
data: resp
success? resp
searchActions.collection(data, readResults, fail)
exports.clearResults = ->
dispatcher.handleViewAction type: 'tagged-result/clear' | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 51 | 60 | ||
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.searchTagged = (data, success, fail) ->
readResults = (resp) ->
dispatcher.handleViewAction
type: 'tagged-result/read'
data: resp
success? resp
searchActions.collection(data, readResults, fail)
exports.clearResults = ->
dispatch... | exports.searchTagged = function(data, success, fail) {
var readResults;
readResults = function(resp) {
dispatcher.handleViewAction({
type: 'tagged-result/read',
data: resp
});
return typeof success === "function" ? success(resp) : void 0;
};
return searchActions.collection(data, readResu... | CoffeeScript | JavaScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 51 | 60 |
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.searchTagged = function(data, success, fail) {
var readResults;
readResults = function(resp) {
dispatcher.handleViewAction({
type: 'tagged-result/read',
data: resp
});
return typeof success === "function" ? success(resp) : void 0... | exports.searchTagged = (data, success, fail) ->
readResults = (resp) ->
dispatcher.handleViewAction
type: 'tagged-result/read'
data: resp
success? resp
searchActions.collection(data, readResults, fail)
exports.clearResults = ->
dispatcher.handleViewAction type: 'tagged-result/clear' | JavaScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 51 | 60 |
jianliaoim/talk-os:talk-web/client/actions/tag.coffee:2:completion | completion | exports.searchTagged = (data, success, fail) ->
readResults = (resp) ->
dispatcher.handleViewAction
type: 'tagged-result/read'
data: resp | success? resp
searchActions.collection(data, readResults, fail)
exports.clearResults = ->
dispatcher.handleViewAction type: 'tagged-result/clear' | CoffeeScript | CoffeeScript | jianliaoim/talk-os | talk-web/client/actions/tag.coffee | MIT | 2545c4497865779a55762e03963a39237df9046b | 2,703 | https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/tag.coffee | 51 | 60 |
jnordberg/wintersmith:src/core/logger.coffee:1:raw_corpus | raw_corpus | ### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (info, ... | CoffeeScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/logger.coffee | 1 | 50 | ||
jnordberg/wintersmith:src/core/logger.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(opt... | /* logger.coffee */
var chalk, cli, logger, transports, util, winston;
chalk = require('chalk');
winston = require('winston');
util = require('util');
cli = (function() {
class cli extends winston.Transport {
constructor(options) {
super(options);
this.quiet = options.quiet || false;
}
lo... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/logger.coffee | 1 | 50 |
jnordberg/wintersmith:src/core/logger.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/* logger.coffee */
var chalk, cli, logger, transports, util, winston;
chalk = require('chalk');
winston = require('winston');
util = require('util');
cli = (function() {
class cli extends winston.Transport {
constructor(options) {
super(options);
... | ### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (info, ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/logger.coffee | 1 | 50 |
jnordberg/wintersmith:src/core/logger.coffee:1:completion | completion | ### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (info, ... | for key, value of meta
if key in ['message', 'stack']
continue
pval = util.inspect(value, false, 2, true).replace(/\n/g, '\n ')
process.stderr.write " #{ key }: #{ pval }\n"
else
process.stderr.write "\n"
else if !@quiet
if level isnt 'info'
... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | be757f5f7d72ddce462f67913c9cd7c578162018 | 3,484 | https://github.com/jnordberg/wintersmith/blob/be757f5f7d72ddce462f67913c9cd7c578162018/src/core/logger.coffee | 1 | 50 |
jnordberg/wintersmith:src/core/logger.coffee:1:raw_corpus | raw_corpus | ### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (info, ... | CoffeeScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | fcf22a05440614547815479a97b169e840737430 | 3,484 | https://github.com/jnordberg/wintersmith/blob/fcf22a05440614547815479a97b169e840737430/src/core/logger.coffee | 1 | 50 | ||
jnordberg/wintersmith:src/core/logger.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(opt... | /* logger.coffee */
var chalk, cli, logger, transports, util, winston;
chalk = require('chalk');
winston = require('winston');
util = require('util');
cli = (function() {
class cli extends winston.Transport {
constructor(options) {
super(options);
this.quiet = options.quiet || false;
}
lo... | CoffeeScript | JavaScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | fcf22a05440614547815479a97b169e840737430 | 3,484 | https://github.com/jnordberg/wintersmith/blob/fcf22a05440614547815479a97b169e840737430/src/core/logger.coffee | 1 | 50 |
jnordberg/wintersmith:src/core/logger.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/* logger.coffee */
var chalk, cli, logger, transports, util, winston;
chalk = require('chalk');
winston = require('winston');
util = require('util');
cli = (function() {
class cli extends winston.Transport {
constructor(options) {
super(options);
... | ### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (info, ... | JavaScript | CoffeeScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | fcf22a05440614547815479a97b169e840737430 | 3,484 | https://github.com/jnordberg/wintersmith/blob/fcf22a05440614547815479a97b169e840737430/src/core/logger.coffee | 1 | 50 |
jnordberg/wintersmith:src/core/logger.coffee:1:completion | completion | ### logger.coffee ###
chalk = require 'chalk'
winston = require 'winston'
util = require 'util'
class cli extends winston.Transport
### Winston transport that logs info to stdout and errors stderr ###
name: 'cli'
constructor: (options) ->
super(options)
@quiet = options.quiet or false
log: (info, ... | stack = meta.stack.substr meta.stack.indexOf('\n') + 1
process.stderr.write stack + "\n\n"
for key, value of meta
if key in ['message', 'stack']
continue
pval = util.inspect(value, false, 2, true).replace(/\n/g, '\n ')
process.stderr.write " #{ key }: #{... | CoffeeScript | CoffeeScript | jnordberg/wintersmith | src/core/logger.coffee | MIT | fcf22a05440614547815479a97b169e840737430 | 3,484 | https://github.com/jnordberg/wintersmith/blob/fcf22a05440614547815479a97b169e840737430/src/core/logger.coffee | 1 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.