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
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion
completion
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
div class:'button', title: i18n.__('menu.view.notification.toggle'), onclick:onclickaction('togglenotif'), -> if conv.isQuiet(c) span class:'material-icons', 'notifications_off' else span class:'material-icons', 'notifications' div ...
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
9d5ec987bb380d1b6e2f588f509f15fd287300c3
3,762
https://github.com/yakyak/yakyak/blob/9d5ec987bb380d1b6e2f588f509f15fd287300c3/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus
raw_corpus
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
8a9e12c220d7c9551c9723076d057c01def7c85d
3,762
https://github.com/yakyak/yakyak/blob/8a9e12c220d7c9551c9723076d057c01def7c85d/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> ...
var convoptions, nameofconv, onclickaction; ({nameofconv} = require('../util')); onclickaction = function(a) { return function(ev) { return action(a); }; }; module.exports = view(function(models) { var c, conv, conv_id, name, viewstate; ({conv, viewstate} = models); conv_id = viewstate != null ? viewst...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
8a9e12c220d7c9551c9723076d057c01def7c85d
3,762
https://github.com/yakyak/yakyak/blob/8a9e12c220d7c9551c9723076d057c01def7c85d/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var convoptions, nameofconv, onclickaction; ({nameofconv} = require('../util')); onclickaction = function(a) { return function(ev) { return action(a); }; }; module.exports = view(function(models) { var c, conv, conv_id, name, viewstate; ({conv, views...
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
8a9e12c220d7c9551c9723076d057c01def7c85d
3,762
https://github.com/yakyak/yakyak/blob/8a9e12c220d7c9551c9723076d057c01def7c85d/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion
completion
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
div class:'button', title: i18n.__('Toggle notifications'), onclick:onclickaction('togglenotif'), -> if conv.isQuiet(c) span class:'material-icons', 'notifications_off' else span class:'material-icons', 'notifications' div class:'op...
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
8a9e12c220d7c9551c9723076d057c01def7c85d
3,762
https://github.com/yakyak/yakyak/blob/8a9e12c220d7c9551c9723076d057c01def7c85d/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:raw_corpus
raw_corpus
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
a39f0e9e0ff32ba2f891b57d033961c3161b801e
3,762
https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript {nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> ...
var convoptions, nameofconv, onclickaction; ({nameofconv} = require('../util')); onclickaction = function(a) { return function(ev) { return action(a); }; }; module.exports = view(function(models) { var c, conv, conv_id, name, viewstate; ({conv, viewstate} = models); conv_id = viewstate != null ? viewst...
CoffeeScript
JavaScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
a39f0e9e0ff32ba2f891b57d033961c3161b801e
3,762
https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var convoptions, nameofconv, onclickaction; ({nameofconv} = require('../util')); onclickaction = function(a) { return function(ev) { return action(a); }; }; module.exports = view(function(models) { var c, conv, conv_id, name, viewstate; ({conv, views...
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
JavaScript
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
a39f0e9e0ff32ba2f891b57d033961c3161b801e
3,762
https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/convhead.coffee
1
43
yakyak/yakyak:src/ui/views/convhead.coffee:1:completion
completion
{nameofconv} = require '../util' onclickaction = (a) -> (ev) -> action a module.exports = view (models) -> {conv, viewstate} = models conv_id = viewstate?.selectedConv c = conv[conv_id] return if not c name = nameofconv c div class:'headwrap', -> span class:'name', -> if conv.isQuiet(c) ...
div class:'button', title:'Toggle notifications', onclick:onclickaction('togglenotif'), -> if conv.isQuiet(c) span class:'material-icons', 'notifications_off' else span class:'material-icons', 'notifications' div class:'option-label...
CoffeeScript
CoffeeScript
yakyak/yakyak
src/ui/views/convhead.coffee
MIT
a39f0e9e0ff32ba2f891b57d033961c3161b801e
3,762
https://github.com/yakyak/yakyak/blob/a39f0e9e0ff32ba2f891b57d033961c3161b801e/src/ui/views/convhead.coffee
1
43
octoblu/meshblu:lib/register.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.uuid || require 'node-uuid' database = dependencies....
CoffeeScript
octoblu/meshblu
lib/register.coffee
MIT
e0508dacc44afcce473e09b495e148480b9515c0
815
https://github.com/octoblu/meshblu/blob/e0508dacc44afcce473e09b495e148480b9515c0/lib/register.coffee
1
35
octoblu/meshblu:lib/register.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.u...
var _, debug, generateToken, logEvent; _ = require('lodash'); debug = require('debug')('meshblu:register'); generateToken = require('./generateToken'); logEvent = require('./logEvent'); module.exports = function(device = {}, callback = _.noop, dependencies = {}) { var database, devices, newDevice, oldUpdateDevic...
CoffeeScript
JavaScript
octoblu/meshblu
lib/register.coffee
MIT
e0508dacc44afcce473e09b495e148480b9515c0
815
https://github.com/octoblu/meshblu/blob/e0508dacc44afcce473e09b495e148480b9515c0/lib/register.coffee
1
35
octoblu/meshblu:lib/register.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, debug, generateToken, logEvent; _ = require('lodash'); debug = require('debug')('meshblu:register'); generateToken = require('./generateToken'); logEvent = require('./logEvent'); module.exports = function(device = {}, callback = _.noop, dependencies = {...
_ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.uuid || require 'node-uuid' database = dependencies....
JavaScript
CoffeeScript
octoblu/meshblu
lib/register.coffee
MIT
e0508dacc44afcce473e09b495e148480b9515c0
815
https://github.com/octoblu/meshblu/blob/e0508dacc44afcce473e09b495e148480b9515c0/lib/register.coffee
1
35
octoblu/meshblu:lib/register.coffee:1:completion
completion
_ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.uuid || require 'node-uuid' database = dependencies....
debug "registering", device devices.insert newDevice, (error) => debug 'inserted', error return callback new Error('Device not registered') if error? device.token ?= generateToken() device.discoverWhitelist ?= [device.owner] if device.owner device.configureWhitelist ?= [device.owner] if device.o...
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/register.coffee
MIT
e0508dacc44afcce473e09b495e148480b9515c0
815
https://github.com/octoblu/meshblu/blob/e0508dacc44afcce473e09b495e148480b9515c0/lib/register.coffee
1
35
octoblu/meshblu:lib/register.coffee:1:raw_corpus
raw_corpus
_ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.uuid || require 'node-uuid' database = dependencies....
CoffeeScript
octoblu/meshblu
lib/register.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/register.coffee
1
34
octoblu/meshblu:lib/register.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.u...
var _, debug, generateToken, logEvent; _ = require('lodash'); debug = require('debug')('meshblu:register'); generateToken = require('./generateToken'); logEvent = require('./logEvent'); module.exports = function(device = {}, callback = _.noop, dependencies = {}) { var database, devices, newDevice, oldUpdateDevic...
CoffeeScript
JavaScript
octoblu/meshblu
lib/register.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/register.coffee
1
34
octoblu/meshblu:lib/register.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _, debug, generateToken, logEvent; _ = require('lodash'); debug = require('debug')('meshblu:register'); generateToken = require('./generateToken'); logEvent = require('./logEvent'); module.exports = function(device = {}, callback = _.noop, dependencies = {...
_ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.uuid || require 'node-uuid' database = dependencies....
JavaScript
CoffeeScript
octoblu/meshblu
lib/register.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/register.coffee
1
34
octoblu/meshblu:lib/register.coffee:1:completion
completion
_ = require 'lodash' debug = require('debug')('meshblu:register') generateToken = require './generateToken' logEvent = require './logEvent' module.exports = (device={}, callback=_.noop, dependencies={}) -> uuid = dependencies.uuid || require 'node-uuid' database = dependencies....
debug "registering", device devices.insert newDevice, (error) => debug 'inserted', error return callback new Error('Device not registered') if error? device.token ?= generateToken() device.discoverWhitelist ?= [device.owner] if device.owner debug 'about to update device', device oldUpdateDe...
CoffeeScript
CoffeeScript
octoblu/meshblu
lib/register.coffee
MIT
6c6af069bb29f9ffd0684eb6e519011774bf6579
815
https://github.com/octoblu/meshblu/blob/6c6af069bb29f9ffd0684eb6e519011774bf6579/lib/register.coffee
1
34
jianliaoim/talk-os:talk-web/client/guest-app/topic-header.coffee:1:raw_corpus
raw_corpus
module.exports = React.createClass displayName: 'topic-header' propTypes: topic: React.PropTypes.instanceOf(Immutable.Map).isRequired members: React.PropTypes.instanceOf(Immutable.List).isRequired getInitialState: -> showTopicMenu: false showMemberMenu: false showMemberManager: false sho...
CoffeeScript
jianliaoim/talk-os
talk-web/client/guest-app/topic-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/topic-header.coffee
17
66
jianliaoim/talk-os:talk-web/client/guest-app/topic-header.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = React.createClass displayName: 'topic-header' propTypes: topic: React.PropTypes.instanceOf(Immutable.Map).isRequired members: React.PropTypes.instanceOf(Immutable.List).isRequired getInitialState: -> showTopicMenu: false s...
module.exports = React.createClass({ displayName: 'topic-header', propTypes: { topic: React.PropTypes.instanceOf(Immutable.Map).isRequired, members: React.PropTypes.instanceOf(Immutable.List).isRequired }, getInitialState: function() { return { showTopicMenu: false, showMemberMenu: false...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/guest-app/topic-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/topic-header.coffee
17
66
jianliaoim/talk-os:talk-web/client/guest-app/topic-header.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = React.createClass({ displayName: 'topic-header', propTypes: { topic: React.PropTypes.instanceOf(Immutable.Map).isRequired, members: React.PropTypes.instanceOf(Immutable.List).isRequired }, getInitialState: function() { return { ...
module.exports = React.createClass displayName: 'topic-header' propTypes: topic: React.PropTypes.instanceOf(Immutable.Map).isRequired members: React.PropTypes.instanceOf(Immutable.List).isRequired getInitialState: -> showTopicMenu: false showMemberMenu: false showMemberManager: false sho...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/guest-app/topic-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/topic-header.coffee
17
66
jianliaoim/talk-os:talk-web/client/guest-app/topic-header.coffee:1:completion
completion
module.exports = React.createClass displayName: 'topic-header' propTypes: topic: React.PropTypes.instanceOf(Immutable.Map).isRequired members: React.PropTypes.instanceOf(Immutable.List).isRequired getInitialState: -> showTopicMenu: false showMemberMenu: false showMemberManager: false sho...
@_memberEl.getBoundingClientRect() else {} normalMembers: (data) -> if data.isRobot then return false return true # event handlers onNameCick: -> time.nextTick => @setState showTopicMenu: (not @state.showTopicMenu) onMembersClick: (event) -> event.stopPropagation() @setSt...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/guest-app/topic-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/topic-header.coffee
17
66
jianliaoim/talk-os:talk-web/client/guest-app/topic-header.coffee:2:raw_corpus
raw_corpus
@setState showTopicDetail: true, initialTab: 'topic-settings' # renderers renderMemberMenu: -> LightPopover onPopoverClose: @onMembersClose baseArea: if @state.showMemberMenu then @getMembersArea() else {} showClose: false show: @state.showMemberMenu RosterList _teamId: @...
CoffeeScript
jianliaoim/talk-os
talk-web/client/guest-app/topic-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/topic-header.coffee
67
102
jianliaoim/talk-os:talk-web/client/guest-app/topic-header.coffee:2:completion
completion
@setState showTopicDetail: true, initialTab: 'topic-settings' # renderers renderMemberMenu: -> LightPopover onPopoverClose: @onMembersClose baseArea: if @state.showMemberMenu then @getMembersArea() else {} showClose: false show: @state.showMemberMenu RosterList _teamId: @...
div className: 'topic-header', div ref: 'name', className: 'wrap line', onClick: @onNameCick, TopicName colorizePlace: 'font' topic: @props.topic active: false onClick: -> # parent element will handle showPurpose: true showUnread: false ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/guest-app/topic-header.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/guest-app/topic-header.coffee
67
102
oozcitak/xmlbuilder-js:src/XMLNodeFilter.coffee:1:raw_corpus
raw_corpus
# Represents a node filter module.exports = class XMLNodeFilter FilterAccept : 1 FilterReject : 2 FilterSkip : 3 ShowAll : 0xffffffff ShowElement : 0x1 ShowAttribute : 0x2 ShowText : 0x4 ShowCDataSection : 0x8 ShowEntityReference : 0x10 ShowEntity : 0x20 ShowProcessingInstruction : 0x40 ShowCo...
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLNodeFilter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLNodeFilter.coffee
1
24
oozcitak/xmlbuilder-js:src/XMLNodeFilter.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Represents a node filter module.exports = class XMLNodeFilter FilterAccept : 1 FilterReject : 2 FilterSkip : 3 ShowAll : 0xffffffff ShowElement : 0x1 ShowAttribute : 0x2 ShowText : 0x4 ShowCDataSection : 0x8 ShowEntityReference : 0x10 Show...
// Represents a node filter var XMLNodeFilter; module.exports = XMLNodeFilter = (function() { class XMLNodeFilter { // DOM level 4 functions to be implemented later acceptNode(node) { throw new Error("This DOM method is not implemented."); } }; XMLNodeFilter.prototype.FilterAccept = 1; XML...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
src/XMLNodeFilter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLNodeFilter.coffee
1
24
oozcitak/xmlbuilder-js:src/XMLNodeFilter.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Represents a node filter var XMLNodeFilter; module.exports = XMLNodeFilter = (function() { class XMLNodeFilter { // DOM level 4 functions to be implemented later acceptNode(node) { throw new Error("This DOM method is not implemented."); } ...
# Represents a node filter module.exports = class XMLNodeFilter FilterAccept : 1 FilterReject : 2 FilterSkip : 3 ShowAll : 0xffffffff ShowElement : 0x1 ShowAttribute : 0x2 ShowText : 0x4 ShowCDataSection : 0x8 ShowEntityReference : 0x10 ShowEntity : 0x20 ShowProcessingInstruction : 0x40 ShowCo...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLNodeFilter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLNodeFilter.coffee
1
24
oozcitak/xmlbuilder-js:src/XMLNodeFilter.coffee:1:completion
completion
# Represents a node filter module.exports = class XMLNodeFilter FilterAccept : 1 FilterReject : 2 FilterSkip : 3 ShowAll : 0xffffffff ShowElement : 0x1 ShowAttribute : 0x2 ShowText : 0x4 ShowCDataSection : 0x8
ShowEntityReference : 0x10 ShowEntity : 0x20 ShowProcessingInstruction : 0x40 ShowComment : 0x80 ShowDocument : 0x100 ShowDocumentType : 0x200 ShowDocumentFragment : 0x400 ShowNotation : 0x800 # DOM level 4 functions to be implemented later acceptNode: (node) -> throw new Error "This DOM method is n...
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
src/XMLNodeFilter.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/src/XMLNodeFilter.coffee
1
24
gss/engine:src/types/Color.coffee:1:raw_corpus
raw_corpus
# Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). Command = require '../Command' class Color extends Command @Keywords: {'transparent', 'currentColor'} constructor: (obj) -> switch typeof obj when 'string' if Color.Keywords[obj] return obj else if...
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
e0d31eda3ebf8554204221731fbcfaa35d711a39
2,854
https://github.com/gss/engine/blob/e0d31eda3ebf8554204221731fbcfaa35d711a39/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). Command = require '../Command' class Color extends Command @Keywords: {'transparent', 'currentColor'} constructor: (obj) -> switch typeof obj when 'string' if...
// Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). var Color, Command; Command = require('../Command'); Color = (function() { class Color extends Command { constructor(obj) { switch (typeof obj) { case 'string': if (Color.Keywords[obj]) { return ...
CoffeeScript
JavaScript
gss/engine
src/types/Color.coffee
MIT
e0d31eda3ebf8554204221731fbcfaa35d711a39
2,854
https://github.com/gss/engine/blob/e0d31eda3ebf8554204221731fbcfaa35d711a39/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). var Color, Command; Command = require('../Command'); Color = (function() { class Color extends Command { constructor(obj) { switch (typeof obj) { case 'string': ...
# Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). Command = require '../Command' class Color extends Command @Keywords: {'transparent', 'currentColor'} constructor: (obj) -> switch typeof obj when 'string' if Color.Keywords[obj] return obj else if...
JavaScript
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
e0d31eda3ebf8554204221731fbcfaa35d711a39
2,854
https://github.com/gss/engine/blob/e0d31eda3ebf8554204221731fbcfaa35d711a39/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:completion
completion
# Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). Command = require '../Command' class Color extends Command @Keywords: {'transparent', 'currentColor'} constructor: (obj) -> switch typeof obj when 'string' if Color.Keywords[obj] return obj else if...
t2 = if l < 0.5 then l * (1+s) else l+s-l*s t1 = 2 * l - t2 h /= 360 t3[0] = h + 1/3 t3[1] = h t3[2] = h - 1/3 for i in [0..2] t3[i] += 1 if t3[i] < 0 t3[i] -= 1 if t3[i] > 1 if 6 * t3[i] < 1 c[i] = t1 + (t2 - t1) * 6 * t3[i] ...
CoffeeScript
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
e0d31eda3ebf8554204221731fbcfaa35d711a39
2,854
https://github.com/gss/engine/blob/e0d31eda3ebf8554204221731fbcfaa35d711a39/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:raw_corpus
raw_corpus
# Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). class Color @Keywords: {'transparent', 'currentColor'} @define hsl: (h, s, l) -> if s == 0 r = g = b = l*255 else t3 = [0,0,0] c = [0,0,0] t2 = if l < 0.5 then l * (1+s) else l+s-l*s ...
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). class Color @Keywords: {'transparent', 'currentColor'} @define hsl: (h, s, l) -> if s == 0 r = g = b = l*255 else t3 = [0,0,0] c = [0,0,...
// Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). var Color; Color = (function() { class Color {}; Color.Keywords = {'transparent': 'transparent', 'currentColor': 'currentColor'}; Color.define({ hsl: function(h, s, l) { var b, c, g, i, j, r, t1, t2, t3; if (s === ...
CoffeeScript
JavaScript
gss/engine
src/types/Color.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). var Color; Color = (function() { class Color {}; Color.Keywords = {'transparent': 'transparent', 'currentColor': 'currentColor'}; Color.define({ hsl: function(h, s, l) { ...
# Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). class Color @Keywords: {'transparent', 'currentColor'} @define hsl: (h, s, l) -> if s == 0 r = g = b = l*255 else t3 = [0,0,0] c = [0,0,0] t2 = if l < 0.5 then l * (1+s) else l+s-l*s ...
JavaScript
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:1:completion
completion
# Algorithms are used as they are from chroma.js by Gregor Aisch (BSD License). class Color @Keywords: {'transparent', 'currentColor'} @define hsl: (h, s, l) -> if s == 0 r = g = b = l*255 else t3 = [0,0,0] c = [0,0,0] t2 = if l < 0.5 then l * (1+s) else l+s-l*s ...
c[i] = t2 else if 3 * t3[i] < 2 c[i] = t1 + (t2 - t1) * ((2 / 3) - t3[i]) * 6 else c[i] = t1 [r,g,b] = [Math.round(c[0]*255),Math.round(c[1]*255),Math.round(c[2]*255)] ['rgb', r,g,b] hsla: (h, s, l, a) -> return Type.Color.hsl.execute(h, s, l).concat[...
CoffeeScript
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/types/Color.coffee
1
50
gss/engine:src/types/Color.coffee:2:raw_corpus
raw_corpus
r = u >> 16 g = u >> 8 & 0xFF b = u & 0xFF return ['rgb', r,g,b] # match rgba hex format, eg #FF000077 if hex.match /^#?([A-Fa-f0-9]{8})$/ if hex.length == 9 hex = hex.substr(1) u = parseInt(hex, 16) r = u >> 24 & 0xFF g = u >> 16 & 0xFF ...
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/types/Color.coffee
51
67
gss/engine:src/types/Color.coffee:2:completion
completion
r = u >> 16 g = u >> 8 & 0xFF b = u & 0xFF return ['rgb', r,g,b] # match rgba hex format, eg #FF000077 if hex.match /^#?([A-Fa-f0-9]{8})$/ if hex.length == 9
hex = hex.substr(1) u = parseInt(hex, 16) r = u >> 24 & 0xFF g = u >> 16 & 0xFF b = u >> 8 & 0xFF a = u & 0xFF return ['rgba', r,g,b,a] module.exports = Color
CoffeeScript
CoffeeScript
gss/engine
src/types/Color.coffee
MIT
d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0
2,854
https://github.com/gss/engine/blob/d3a6c74b85e6d12a9ec02c24fef87d4c22bd9cb0/src/types/Color.coffee
51
67
js2coffee/js2coffee:test/version.coffee:1:raw_corpus
raw_corpus
require('./setup') describe 'Version', -> it 'should exist', -> version = require('../package.json').version expect(js2coffee.version).eql version it 'should be semver-like', -> expect(js2coffee.version).match /^\d+\.\d+\.\d+/
CoffeeScript
js2coffee/js2coffee
test/version.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/version.coffee
1
9
js2coffee/js2coffee:test/version.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require('./setup') describe 'Version', -> it 'should exist', -> version = require('../package.json').version expect(js2coffee.version).eql version it 'should be semver-like', -> expect(js2coffee.version).match /^\d+\.\d+\.\d+/ ```
require('./setup'); describe('Version', function() { it('should exist', function() { var version; version = require('../package.json').version; return expect(js2coffee.version).eql(version); }); return it('should be semver-like', function() { return expect(js2coffee.version).match(/^\d+\.\d+\.\d+...
CoffeeScript
JavaScript
js2coffee/js2coffee
test/version.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/version.coffee
1
9
js2coffee/js2coffee:test/version.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript require('./setup'); describe('Version', function() { it('should exist', function() { var version; version = require('../package.json').version; return expect(js2coffee.version).eql(version); }); return it('should be semver-like', function() { ...
require('./setup') describe 'Version', -> it 'should exist', -> version = require('../package.json').version expect(js2coffee.version).eql version it 'should be semver-like', -> expect(js2coffee.version).match /^\d+\.\d+\.\d+/
JavaScript
CoffeeScript
js2coffee/js2coffee
test/version.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/version.coffee
1
9
js2coffee/js2coffee:test/version.coffee:1:completion
completion
require('./setup') describe 'Version', -> it 'should exist', ->
version = require('../package.json').version expect(js2coffee.version).eql version it 'should be semver-like', -> expect(js2coffee.version).match /^\d+\.\d+\.\d+/
CoffeeScript
CoffeeScript
js2coffee/js2coffee
test/version.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/version.coffee
1
9
mojotech/pioneer:test/integration/steps/util.coffee:1:raw_corpus
raw_corpus
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) @When /^I call driver.visit$/, -> @driver.visit("http://www.google.co...
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) @When /^I call d...
var Path, _, fixturesBase; _ = require('lodash'); Path = require("path"); fixturesBase = Path.resolve(__dirname, "../", "fixtures"); module.exports = function() { this.When(/^I view "([^"]*)"$/, function(name) { return this.driver.get("file:///" + Path.join(fixturesBase, name)); }); this.When(/^I call dri...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Path, _, fixturesBase; _ = require('lodash'); Path = require("path"); fixturesBase = Path.resolve(__dirname, "../", "fixtures"); module.exports = function() { this.When(/^I view "([^"]*)"$/, function(name) { return this.driver.get("file:///" + Path.jo...
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) @When /^I call driver.visit$/, -> @driver.visit("http://www.google.co...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:completion
completion
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name))
@When /^I call driver.visit$/, -> @driver.visit("http://www.google.com/") @Then /^the driver should get that URL$/, -> @driver.getCurrentUrl() .should.eventually.contain("www.google.com")
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
2d3ade85e18e3ea1dfff2545bad4142aa9c496e4
523
https://github.com/mojotech/pioneer/blob/2d3ade85e18e3ea1dfff2545bad4142aa9c496e4/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:raw_corpus
raw_corpus
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) @When /^I call driver.visit$/, -> @driver.visit("http://www.google.co...
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
033b17dce9d8d2ffea418d55f96ba1090400b527
523
https://github.com/mojotech/pioneer/blob/033b17dce9d8d2ffea418d55f96ba1090400b527/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) @When /^I call d...
var Path, _, fixturesBase; _ = require('lodash'); Path = require("path"); fixturesBase = Path.resolve(__dirname, "../", "fixtures"); module.exports = function() { this.When(/^I view "([^"]*)"$/, function(name) { return this.driver.get("file:///" + Path.join(fixturesBase, name)); }); this.When(/^I call dri...
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
033b17dce9d8d2ffea418d55f96ba1090400b527
523
https://github.com/mojotech/pioneer/blob/033b17dce9d8d2ffea418d55f96ba1090400b527/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Path, _, fixturesBase; _ = require('lodash'); Path = require("path"); fixturesBase = Path.resolve(__dirname, "../", "fixtures"); module.exports = function() { this.When(/^I view "([^"]*)"$/, function(name) { return this.driver.get("file:///" + Path.jo...
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) @When /^I call driver.visit$/, -> @driver.visit("http://www.google.co...
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
033b17dce9d8d2ffea418d55f96ba1090400b527
523
https://github.com/mojotech/pioneer/blob/033b17dce9d8d2ffea418d55f96ba1090400b527/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:completion
completion
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name))
@When /^I call driver.visit$/, -> @driver.visit("http://www.google.com/") @Then /^the driver should get that URL$/, -> @driver.getCurrentUrl() .should.eventually.eql("http://www.google.com/")
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
033b17dce9d8d2ffea418d55f96ba1090400b527
523
https://github.com/mojotech/pioneer/blob/033b17dce9d8d2ffea418d55f96ba1090400b527/test/integration/steps/util.coffee
1
14
mojotech/pioneer:test/integration/steps/util.coffee:1:raw_corpus
raw_corpus
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name))
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/util.coffee
1
7
mojotech/pioneer:test/integration/steps/util.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name)) ```
var Path, _, fixturesBase; _ = require('lodash'); Path = require("path"); fixturesBase = Path.resolve(__dirname, "../", "fixtures"); module.exports = function() { return this.When(/^I view "([^"]*)"$/, function(name) { return this.driver.get("file:///" + Path.join(fixturesBase, name)); }); };
CoffeeScript
JavaScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/util.coffee
1
7
mojotech/pioneer:test/integration/steps/util.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Path, _, fixturesBase; _ = require('lodash'); Path = require("path"); fixturesBase = Path.resolve(__dirname, "../", "fixtures"); module.exports = function() { return this.When(/^I view "([^"]*)"$/, function(name) { return this.driver.get("file:///" + ...
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures") module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name))
JavaScript
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/util.coffee
1
7
mojotech/pioneer:test/integration/steps/util.coffee:1:completion
completion
_ = require('lodash') Path = require "path" fixturesBase = Path.resolve(__dirname, "../", "fixtures")
module.exports = -> @When /^I view "([^"]*)"$/, (name) -> @driver.get("file:///"+ Path.join(fixturesBase, name))
CoffeeScript
CoffeeScript
mojotech/pioneer
test/integration/steps/util.coffee
MIT
057253586504292edd1dbdfd39bf2c79f434a459
523
https://github.com/mojotech/pioneer/blob/057253586504292edd1dbdfd39bf2c79f434a459/test/integration/steps/util.coffee
1
7
jianliaoim/talk-os:talk-api2x/test/scripts/send-weibo-message.coffee:1:raw_corpus
raw_corpus
request = require 'request' fs = require 'fs' request options, (err, res, body) -> console.log err, body
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/scripts/send-weibo-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/scripts/send-weibo-message.coffee
1
3
jianliaoim/talk-os:talk-api2x/test/scripts/send-weibo-message.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = require 'request' fs = require 'fs' request options, (err, res, body) -> console.log err, body ```
var fs, request; request = require('request'); fs = require('fs'); request(options, function(err, res, body) { return console.log(err, body); });
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/test/scripts/send-weibo-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/scripts/send-weibo-message.coffee
1
3
jianliaoim/talk-os:talk-api2x/test/scripts/send-weibo-message.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var fs, request; request = require('request'); fs = require('fs'); request(options, function(err, res, body) { return console.log(err, body); }); ```
request = require 'request' fs = require 'fs' request options, (err, res, body) -> console.log err, body
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/scripts/send-weibo-message.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/scripts/send-weibo-message.coffee
1
3
js2coffee/js2coffee:test/builder_base.coffee:1:raw_corpus
raw_corpus
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> ast = undefined output = undefined BuilderBase = require('../lib/builder/base') beforeEach -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (no...
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/builder_base.coffee
1
24
js2coffee/js2coffee:test/builder_base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'coffee-script/register' require './setup' describe 'BuilderBase', -> ast = undefined output = undefined BuilderBase = require('../lib/builder/base') beforeEach -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } ...
require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase, ast, output; ast = void 0; output = void 0; BuilderBase = require('../lib/builder/base'); beforeEach(function() { var MyWalker; ast = { type: 'Program', body: { type: 'Ide...
CoffeeScript
JavaScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/builder_base.coffee
1
24
js2coffee/js2coffee:test/builder_base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase, ast, output; ast = void 0; output = void 0; BuilderBase = require('../lib/builder/base'); beforeEach(function() { var MyWalker; ast = { ...
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> ast = undefined output = undefined BuilderBase = require('../lib/builder/base') beforeEach -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (no...
JavaScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/builder_base.coffee
1
24
js2coffee/js2coffee:test/builder_base.coffee:1:completion
completion
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> ast = undefined output = undefined BuilderBase = require('../lib/builder/base') beforeEach -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' }
class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifier: (node) -> node.value output = new MyWalker(ast).run() it 'works', -> expect(output.toString()).eql 'hi' it 'spits out a SourceNode', -> expect(output.children).be.array
CoffeeScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
47d3159aba94ffd4377138f7837717d8628eef9f
2,082
https://github.com/js2coffee/js2coffee/blob/47d3159aba94ffd4377138f7837717d8628eef9f/test/builder_base.coffee
1
24
js2coffee/js2coffee:test/builder_base.coffee:1:raw_corpus
raw_corpus
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifie...
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
fac5bc1bf42b64519695e211886369fd694fa5f0
2,082
https://github.com/js2coffee/js2coffee/blob/fac5bc1bf42b64519695e211886369fd694fa5f0/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase...
require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase; BuilderBase = require('../lib/builder/base'); return it('works', function() { var MyWalker, ast, output; ast = { type: 'Program', body: { type: 'Identifier', value: 'h...
CoffeeScript
JavaScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
fac5bc1bf42b64519695e211886369fd694fa5f0
2,082
https://github.com/js2coffee/js2coffee/blob/fac5bc1bf42b64519695e211886369fd694fa5f0/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase; BuilderBase = require('../lib/builder/base'); return it('works', function() { var MyWalker, ast, output; ast = { type: 'Program', ...
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifie...
JavaScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
fac5bc1bf42b64519695e211886369fd694fa5f0
2,082
https://github.com/js2coffee/js2coffee/blob/fac5bc1bf42b64519695e211886369fd694fa5f0/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:completion
completion
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast =
type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifier: (node) -> node.value output = new MyWalker(ast).run() expect(output.toString()).eql 'hi'
CoffeeScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
fac5bc1bf42b64519695e211886369fd694fa5f0
2,082
https://github.com/js2coffee/js2coffee/blob/fac5bc1bf42b64519695e211886369fd694fa5f0/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:raw_corpus
raw_corpus
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifie...
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase...
require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase; BuilderBase = require('../lib/builder/base'); return it('works', function() { var MyWalker, ast, output; ast = { type: 'Program', body: { type: 'Identifier', value: 'h...
CoffeeScript
JavaScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase; BuilderBase = require('../lib/builder/base'); return it('works', function() { var MyWalker, ast, output; ast = { type: 'Program', ...
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifie...
JavaScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:completion
completion
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder/base') it 'works', -> ast =
type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifier: (node) -> node.value output = new MyWalker(ast).run() expect(output).eql 'hi'
CoffeeScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
195a3549a9a467cbb6d287e128af03a7dd9fd657
2,082
https://github.com/js2coffee/js2coffee/blob/195a3549a9a467cbb6d287e128af03a7dd9fd657/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:raw_corpus
raw_corpus
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder_base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifie...
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
e577e9566b6d6b610eadf12e0a43478cbe528c82
2,082
https://github.com/js2coffee/js2coffee/blob/e577e9566b6d6b610eadf12e0a43478cbe528c82/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder_base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase...
require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase; BuilderBase = require('../lib/builder_base'); return it('works', function() { var MyWalker, ast, output; ast = { type: 'Program', body: { type: 'Identifier', value: 'h...
CoffeeScript
JavaScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
e577e9566b6d6b610eadf12e0a43478cbe528c82
2,082
https://github.com/js2coffee/js2coffee/blob/e577e9566b6d6b610eadf12e0a43478cbe528c82/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript require('coffee-script/register'); require('./setup'); describe('BuilderBase', function() { var BuilderBase; BuilderBase = require('../lib/builder_base'); return it('works', function() { var MyWalker, ast, output; ast = { type: 'Program', ...
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder_base') it 'works', -> ast = type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifie...
JavaScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
e577e9566b6d6b610eadf12e0a43478cbe528c82
2,082
https://github.com/js2coffee/js2coffee/blob/e577e9566b6d6b610eadf12e0a43478cbe528c82/test/builder_base.coffee
1
17
js2coffee/js2coffee:test/builder_base.coffee:1:completion
completion
require 'coffee-script/register' require './setup' describe 'BuilderBase', -> BuilderBase = require('../lib/builder_base') it 'works', -> ast =
type: 'Program' body: { type: 'Identifier', value: 'hi' } class MyWalker extends BuilderBase Program: (node) -> @walk node.body Identifier: (node) -> node.value output = new MyWalker(ast).run() expect(output).eql 'hi'
CoffeeScript
CoffeeScript
js2coffee/js2coffee
test/builder_base.coffee
MIT
e577e9566b6d6b610eadf12e0a43478cbe528c82
2,082
https://github.com/js2coffee/js2coffee/blob/e577e9566b6d6b610eadf12e0a43478cbe528c82/test/builder_base.coffee
1
17
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:1:raw_corpus
raw_corpus
module.exports = getInitialState: -> settings = @props.settings language = lang.getLang() inte = @props.inte # returns an object isSending: false showGuide: not @props.inte? # these fields are corresponding to the settings _roomId: inte?.get('_roomId') or @props._roomId ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = getInitialState: -> settings = @props.settings language = lang.getLang() inte = @props.inte # returns an object isSending: false showGuide: not @props.inte? # these fields are corresponding to the settings _roo...
module.exports = { getInitialState: function() { var inte, language, settings; settings = this.props.settings; language = lang.getLang(); inte = this.props.inte; return { // returns an object isSending: false, showGuide: this.props.inte == null, // these fields are correspo...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { getInitialState: function() { var inte, language, settings; settings = this.props.settings; language = lang.getLang(); inte = this.props.inte; return { // returns an object isSending: false, showGuide: this...
module.exports = getInitialState: -> settings = @props.settings language = lang.getLang() inte = @props.inte # returns an object isSending: false showGuide: not @props.inte? # these fields are corresponding to the settings _roomId: inte?.get('_roomId') or @props._roomId ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:1:completion
completion
module.exports = getInitialState: -> settings = @props.settings language = lang.getLang() inte = @props.inte # returns an object isSending: false showGuide: not @props.inte? # these fields are corresponding to the settings _roomId: inte?.get('_roomId') or @props._roomId ...
@props.onPageBack(@props.inte?) onTitleChange: (event) -> @setState title: event.target.value onDescChange: (event) -> @setState description: event.target.value onUploaderComplete: ({fileData}) -> @setState iconUrl: fileData.thumbnailUrl onFileClick: (event) -> uploadUtil.handleClick accept: "....
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
24
73
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:2:raw_corpus
raw_corpus
# renderers renderInteHeader: -> language = lang.getLang() settings = @props.settings iconStyle = backgroundImage: "url(#{settings.get('iconUrl')})" html = __html: settings.get('description').get(language) div className: 'header', div className: 'icon-url', style: iconStyle ...
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
74
123
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # renderers renderInteHeader: -> language = lang.getLang() settings = @props.settings iconStyle = backgroundImage: "url(#{settings.get('iconUrl')})" html = __html: settings.get('description').get(language) div className: 'head...
// renderers ({ renderInteHeader: function() { var html, iconStyle, language, settings; language = lang.getLang(); settings = this.props.settings; iconStyle = { backgroundImage: `url(${settings.get('iconUrl')})` }; html = { __html: settings.get('description').get(language) }; ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
74
123
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // renderers ({ renderInteHeader: function() { var html, iconStyle, language, settings; language = lang.getLang(); settings = this.props.settings; iconStyle = { backgroundImage: `url(${settings.get('iconUrl')})` }; html = { __h...
# renderers renderInteHeader: -> language = lang.getLang() settings = @props.settings iconStyle = backgroundImage: "url(#{settings.get('iconUrl')})" html = __html: settings.get('description').get(language) div className: 'header', div className: 'icon-url', style: iconStyle ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
74
123
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:2:completion
completion
# renderers renderInteHeader: -> language = lang.getLang() settings = @props.settings iconStyle = backgroundImage: "url(#{settings.get('iconUrl')})" html = __html: settings.get('description').get(language) div className: 'header', div className: 'icon-url', style: iconStyle ...
inteHelpMd = settings.get('manual').get(language) inteHelpMd = inteHelpMd.replace(/LOCALE_LINK/g, @state.webhookUrl) iconClass = classnames 'ti', 'ti-chevron-down': not @state.showGuide, 'ti-chevron-up': @state.showGuide div className: 'guide-area', span className: 'guide-toggler', onCli...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
74
123
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:3:raw_corpus
raw_corpus
renderWebhookUrl: (webhookUrl) -> language = lang.getLang() fields = @props.settings.get('fields').toJS() field = fieldsReader.getField fields, 'webhookUrl' div className: 'table-pair', div className: 'attr', div className: 'title', l('generate-webhook') div className: 'about mute...
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
124
173
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript renderWebhookUrl: (webhookUrl) -> language = lang.getLang() fields = @props.settings.get('fields').toJS() field = fieldsReader.getField fields, 'webhookUrl' div className: 'table-pair', div className: 'attr', div className: 'title',...
({ renderWebhookUrl: function(webhookUrl) { var field, fields, language; language = lang.getLang(); fields = this.props.settings.get('fields').toJS(); field = fieldsReader.getField(fields, 'webhookUrl'); return div({ className: 'table-pair' }, div({ className: 'attr' }, div({ ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
124
173
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ renderWebhookUrl: function(webhookUrl) { var field, fields, language; language = lang.getLang(); fields = this.props.settings.get('fields').toJS(); field = fieldsReader.getField(fields, 'webhookUrl'); return div({ className: 'table-pa...
renderWebhookUrl: (webhookUrl) -> language = lang.getLang() fields = @props.settings.get('fields').toJS() field = fieldsReader.getField fields, 'webhookUrl' div className: 'table-pair', div className: 'attr', div className: 'title', l('generate-webhook') div className: 'about mute...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
124
173
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:3:completion
completion
renderWebhookUrl: (webhookUrl) -> language = lang.getLang() fields = @props.settings.get('fields').toJS() field = fieldsReader.getField fields, 'webhookUrl' div className: 'table-pair', div className: 'attr', div className: 'title', l('generate-webhook') div className: 'about mute...
disabled = (not @hasChanges()) or @state.isSending buttonClass = classnames 'button', 'is-primary', 'is-disabled': disabled div className: 'table-pair is-control', div className: 'attr' div className: 'line value', button className: buttonClass, disabled: disabled, onClick: @onUpdate,...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
124
173
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:4:raw_corpus
raw_corpus
div className: 'value', input type: 'text', className: 'form-control', value: @state.title onChange: @onTitleChange, placeholder: lang.getText('optional') renderInteDesc: -> div className: 'table-pair', div className: 'attr', div className: 'title', lang.getText('custom-...
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
174
200
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript div className: 'value', input type: 'text', className: 'form-control', value: @state.title onChange: @onTitleChange, placeholder: lang.getText('optional') renderInteDesc: -> div className: 'table-pair', div className: 'att...
div({ className: 'value' }, input({ type: 'text', className: 'form-control', value: this.state.title, onChange: this.onTitleChange, placeholder: lang.getText('optional') })); ({ renderInteDesc: function() { return div({ className: 'table-pair' }, div({ className: 'attr' }, div({ ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
174
200
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript div({ className: 'value' }, input({ type: 'text', className: 'form-control', value: this.state.title, onChange: this.onTitleChange, placeholder: lang.getText('optional') })); ({ renderInteDesc: function() { return div({ className: 'table-pa...
div className: 'value', input type: 'text', className: 'form-control', value: @state.title onChange: @onTitleChange, placeholder: lang.getText('optional') renderInteDesc: -> div className: 'table-pair', div className: 'attr', div className: 'title', lang.getText('custom-...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
174
200
jianliaoim/talk-os:talk-web/client/mixin/inte-handler.coffee:4:completion
completion
div className: 'value', input type: 'text', className: 'form-control', value: @state.title onChange: @onTitleChange, placeholder: lang.getText('optional') renderInteDesc: -> div className: 'table-pair', div className: 'attr', div className: 'title', lang.getText('custom-...
onChange: @onDescChange, placeholder: lang.getText('optional') renderInteIcon: -> iconStyle = {} if @state.iconUrl? iconStyle.backgroundImage = "url(#{@state.iconUrl})" div className: 'table-pair', div className: 'attr', div className: 'title', lang.getText('custom-icon-url') ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/mixin/inte-handler.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/mixin/inte-handler.coffee
174
200
CaryLandholt/AngularFun:routes.coffee:1:raw_corpus
raw_corpus
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, options) -> app.get '/', (req, res) -> res.render "#{options.base}/ind...
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, options) -> app...
var isUniqueName, nextId, people; nextId = 0; people = [ { "id": `${nextId++}`, "name": "Saasha", "age": "6" }, { "id": `${nextId++}`, "name": "Planet", "age": "8" } ]; isUniqueName = function(name) { var person; return ((function() { var i, len, results; results = []; ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var isUniqueName, nextId, people; nextId = 0; people = [ { "id": `${nextId++}`, "name": "Saasha", "age": "6" }, { "id": `${nextId++}`, "name": "Planet", "age": "8" } ]; isUniqueName = function(name) { var person; return ((func...
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, options) -> app.get '/', (req, res) -> res.render "#{options.base}/ind...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:completion
completion
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, options) -> app.get '/', (req, res) -> res.render "#{options.base}/ind...
message = "title": "Duplicate!" "message": "#{name} is a duplicate. Please enter a new name." return res.send(message, 403) if not isUniqueName name person = "id": "#{nextId++}" "name": "#{name}" "age": "#{age}" people.push person res.json person app.get '/people/:id', (req, res) -> id = ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
df2ae65cf72b2e625fb5eae80cbde4d76f047616
672
https://github.com/CaryLandholt/AngularFun/blob/df2ae65cf72b2e625fb5eae80cbde4d76f047616/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:raw_corpus
raw_corpus
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, base) -> app.get '/', (req, res) -> res.render "#{base}/index.html" ...
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
2c66aea3e4cbc759a749b28f92f1406f92efafb4
672
https://github.com/CaryLandholt/AngularFun/blob/2c66aea3e4cbc759a749b28f92f1406f92efafb4/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, base) -> app.ge...
var isUniqueName, nextId, people; nextId = 0; people = [ { "id": `${nextId++}`, "name": "Saasha", "age": "6" }, { "id": `${nextId++}`, "name": "Planet", "age": "8" } ]; isUniqueName = function(name) { var person; return ((function() { var i, len, results; results = []; ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
routes.coffee
MIT
2c66aea3e4cbc759a749b28f92f1406f92efafb4
672
https://github.com/CaryLandholt/AngularFun/blob/2c66aea3e4cbc759a749b28f92f1406f92efafb4/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var isUniqueName, nextId, people; nextId = 0; people = [ { "id": `${nextId++}`, "name": "Saasha", "age": "6" }, { "id": `${nextId++}`, "name": "Planet", "age": "8" } ]; isUniqueName = function(name) { var person; return ((func...
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, base) -> app.get '/', (req, res) -> res.render "#{base}/index.html" ...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
2c66aea3e4cbc759a749b28f92f1406f92efafb4
672
https://github.com/CaryLandholt/AngularFun/blob/2c66aea3e4cbc759a749b28f92f1406f92efafb4/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:completion
completion
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "6"} {"id": "#{nextId++}", "name": "Planet", "age": "8"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, base) -> app.get '/', (req, res) -> res.render "#{base}/index.html" ...
message = "title": "Duplicate!" "message": "#{name} is a duplicate. Please enter a new name." return res.send(message, 403) if not isUniqueName name person = "id": "#{nextId++}" "name": "#{name}" "age": "#{age}" people.push person res.json person app.get '/people/:id', (req, res) -> id = ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
2c66aea3e4cbc759a749b28f92f1406f92efafb4
672
https://github.com/CaryLandholt/AngularFun/blob/2c66aea3e4cbc759a749b28f92f1406f92efafb4/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:raw_corpus
raw_corpus
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, dir) -> app.get '/', (req, res) -> res.render "#{dir}/index.html" ap...
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, dir) -> app.get...
var isUniqueName, nextId, people; nextId = 0; people = [ { "id": `${nextId++}`, "name": "Saasha", "age": "5" }, { "id": `${nextId++}`, "name": "Planet", "age": "7" } ]; isUniqueName = function(name) { var person; return ((function() { var i, len, results; results = []; ...
CoffeeScript
JavaScript
CaryLandholt/AngularFun
routes.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var isUniqueName, nextId, people; nextId = 0; people = [ { "id": `${nextId++}`, "name": "Saasha", "age": "5" }, { "id": `${nextId++}`, "name": "Planet", "age": "7" } ]; isUniqueName = function(name) { var person; return ((func...
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, dir) -> app.get '/', (req, res) -> res.render "#{dir}/index.html" ap...
JavaScript
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/routes.coffee
1
40
CaryLandholt/AngularFun:routes.coffee:1:completion
completion
nextId = 0 people = [ {"id": "#{nextId++}", "name": "Saasha", "age": "5"} {"id": "#{nextId++}", "name": "Planet", "age": "7"} ] isUniqueName = (name) -> (name for person in people when person.name is name).length is 0 module.exports = (app, dir) -> app.get '/', (req, res) -> res.render "#{dir}/index.html" ap...
message = "title": "Duplicate!" "message": "#{name} is a duplicate. Please enter a new name." return res.send(message, 403) if not isUniqueName name person = "id": "#{nextId++}" "name": "#{name}" "age": "#{age}" people.push person res.json person app.get '/people/:id', (req, res) -> id = ...
CoffeeScript
CoffeeScript
CaryLandholt/AngularFun
routes.coffee
MIT
6d23f0be02cb2e938565aca7cb881fd70beefb35
672
https://github.com/CaryLandholt/AngularFun/blob/6d23f0be02cb2e938565aca7cb881fd70beefb35/routes.coffee
1
40