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
Pathgather/please-wait:src/loading_page.coffee:1:completion
completion
window.pgloading = { done: -> return if @_done || !@_loadingDiv? @_done = true if @_options.fadeOut transitionEvent = @_whichTransitionEvent() if transitionEvent? @_loadingDiv.className += " pg-loaded" @_loadingDiv.addEventListener transitionEvent, () => @_loadingDo...
@_messageDiv.className = "pg-loading-message" spinner = document.createElement("div") spinner.className = "pg-loading-spinner" spinnerTemplate = null for script in document.scripts if script.id == "pgLoadingSpinner" ...
CoffeeScript
CoffeeScript
Pathgather/please-wait
src/loading_page.coffee
MIT
3c862e7786e79fc58c27db5ffb3e92e1f9fc4f02
1,583
https://github.com/Pathgather/please-wait/blob/3c862e7786e79fc58c27db5ffb3e92e1f9fc4f02/src/loading_page.coffee
1
50
Pathgather/please-wait:src/loading_page.coffee:2:raw_corpus
raw_corpus
<div class='pg-loading-center-middle'> <img class='pg-loading-logo' src='#{options.logo}'></img> #{spinner.outerHTML} </div> </div> </div> """ document.body.appendChild(@_loadingDiv) _whichTransitionEvent: -> el = document.createElement('fakeelement') t...
CoffeeScript
Pathgather/please-wait
src/loading_page.coffee
MIT
3c862e7786e79fc58c27db5ffb3e92e1f9fc4f02
1,583
https://github.com/Pathgather/please-wait/blob/3c862e7786e79fc58c27db5ffb3e92e1f9fc4f02/src/loading_page.coffee
51
77
Pathgather/please-wait:src/loading_page.coffee:2:completion
completion
<div class='pg-loading-center-middle'> <img class='pg-loading-logo' src='#{options.logo}'></img> #{spinner.outerHTML} </div> </div> </div> """ document.body.appendChild(@_loadingDiv) _whichTransitionEvent: -> el = document.createElement('fakeelement') t...
'OTransition':'oTransitionEnd', 'msTransition': 'MSTransitionEnd', 'MozTransition':'transitionend', 'WebkitTransition':'webkitTransitionEnd' } for key, val of transitions return val if el.style[key]? _loadingDone: -> document.body.removeChild(@_loadingDiv) @_stylesheet.disabl...
CoffeeScript
CoffeeScript
Pathgather/please-wait
src/loading_page.coffee
MIT
3c862e7786e79fc58c27db5ffb3e92e1f9fc4f02
1,583
https://github.com/Pathgather/please-wait/blob/3c862e7786e79fc58c27db5ffb3e92e1f9fc4f02/src/loading_page.coffee
51
77
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:1:raw_corpus
raw_corpus
React = require 'react' debounce = require 'debounce' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' dom = require '../util/dom'...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' debounce = require 'debounce' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = ...
var Immutable, InboxTable, PureRenderMixin, React, T, debounce, div, dom, lang, mixinSubscribe, query, recorder, span; React = require('react'); debounce = require('debounce'); recorder = require('actions-recorder'); Immutable = require('immutable'); PureRenderMixin = require('react-addons-pure-render-mixin'); qu...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, InboxTable, PureRenderMixin, React, T, debounce, div, dom, lang, mixinSubscribe, query, recorder, span; React = require('react'); debounce = require('debounce'); recorder = require('actions-recorder'); Immutable = require('immutable'); PureRende...
React = require 'react' debounce = require 'debounce' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' dom = require '../util/dom'...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:1:completion
completion
React = require 'react' debounce = require 'debounce' recorder = require 'actions-recorder' Immutable = require 'immutable' PureRenderMixin = require 'react-addons-pure-render-mixin' query = require '../query' lang = require '../locales/lang' mixinSubscribe = require '../mixin/subscribe' dom = require '../util/dom'...
_channelId: T.string _channelType: T.string getInitialState: -> contacts: @getContacts() topics: @getTopics() notifications: @getNotifications() componentDidMount: -> @subscribe recorder, => @setState contacts: @getContacts() topics: @getTopics() notifications: @g...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:2:raw_corpus
raw_corpus
InboxTable _teamId: @props._teamId _channelId : @props._channelId _channelType: @props._channelType render: -> div className: 'team-sidebar flex flex-space', @renderInbox()
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
51
58
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript InboxTable _teamId: @props._teamId _channelId : @props._channelId _channelType: @props._channelType render: -> div className: 'team-sidebar flex flex-space', @renderInbox() ```
InboxTable({ _teamId: this.props._teamId, _channelId: this.props._channelId, _channelType: this.props._channelType }); ({ render: function() { return div({ className: 'team-sidebar flex flex-space' }, this.renderInbox()); } });
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
51
58
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript InboxTable({ _teamId: this.props._teamId, _channelId: this.props._channelId, _channelType: this.props._channelType }); ({ render: function() { return div({ className: 'team-sidebar flex flex-space' }, this.renderInbox()); } }); ```
InboxTable _teamId: @props._teamId _channelId : @props._channelId _channelType: @props._channelType render: -> div className: 'team-sidebar flex flex-space', @renderInbox()
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
51
58
jianliaoim/talk-os:talk-web/client/app/team-sidebar.coffee:2:completion
completion
InboxTable _teamId: @props._teamId _channelId : @props._channelId _channelType: @props._channelType
render: -> div className: 'team-sidebar flex flex-space', @renderInbox()
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/team-sidebar.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/team-sidebar.coffee
51
58
linemanjs/lineman:config/grunt.coffee:1:raw_corpus
raw_corpus
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []) grunt.initConfig(buildsAppConfig.forGrunt()) loadLinemanTasks(grunt) loadPluginTasks(grunt) l...
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []) grunt.initConfig(buildsAppConfig.forGrunt()) ...
var buildsAppConfig, findsPluginModules, fs, loadLinemanTasks, loadPluginTasks, loadUserTasks; findsPluginModules = require('./../lib/finds-plugin-modules'); buildsAppConfig = require('./../lib/builds-app-config'); fs = require('fs'); module.exports = { run: function(grunt) { grunt.registerTask('default', [])...
CoffeeScript
JavaScript
linemanjs/lineman
config/grunt.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var buildsAppConfig, findsPluginModules, fs, loadLinemanTasks, loadPluginTasks, loadUserTasks; findsPluginModules = require('./../lib/finds-plugin-modules'); buildsAppConfig = require('./../lib/builds-app-config'); fs = require('fs'); module.exports = { run: ...
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []) grunt.initConfig(buildsAppConfig.forGrunt()) loadLinemanTasks(grunt) loadPluginTasks(grunt) l...
JavaScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:completion
completion
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []) grunt.initConfig(buildsAppConfig.forGrunt()) loadLinemanTasks(grunt) loadPluginTasks(grunt)
loadUserTasks(grunt) loadLinemanTasks = (grunt) -> grunt.loadTasks("#{__dirname}/../tasks") loadPluginTasks = (grunt) -> findsPluginModules.find().forEach (plugin) -> taskPath = "#{plugin.dir}/tasks" grunt.loadTasks(taskPath) if fs.existsSync(taskPath) loadUserTasks = (grunt) -> grunt.loadTasks("tasks")
CoffeeScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
61d681532d9621e578d319c279006bbb728ece4b
1,168
https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:raw_corpus
raw_corpus
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.forGrunt()) loadLinemanTasks(grunt) loadPluginTasks(grunt) ...
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
9610ff6435b6e325e1c67291fadd807f75d3c05e
1,168
https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.forGrunt()) ...
var buildsAppConfig, findsPluginModules, fs, loadLinemanTasks, loadPluginTasks, loadUserTasks; findsPluginModules = require('./../lib/finds-plugin-modules'); buildsAppConfig = require('./../lib/builds-app-config'); fs = require('fs'); module.exports = { run: function(grunt) { grunt.registerTask('default', [])...
CoffeeScript
JavaScript
linemanjs/lineman
config/grunt.coffee
MIT
9610ff6435b6e325e1c67291fadd807f75d3c05e
1,168
https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var buildsAppConfig, findsPluginModules, fs, loadLinemanTasks, loadPluginTasks, loadUserTasks; findsPluginModules = require('./../lib/finds-plugin-modules'); buildsAppConfig = require('./../lib/builds-app-config'); fs = require('fs'); module.exports = { run: ...
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.forGrunt()) loadLinemanTasks(grunt) loadPluginTasks(grunt) ...
JavaScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
9610ff6435b6e325e1c67291fadd807f75d3c05e
1,168
https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:completion
completion
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.forGrunt()) loadLinemanTasks(grunt) loadPluginTasks(grunt)
loadUserTasks(grunt) loadLinemanTasks = (grunt) -> grunt.loadTasks("#{__dirname}/../tasks") loadPluginTasks = (grunt) -> findsPluginModules.find().forEach (plugin) -> taskPath = "#{plugin.dir}/tasks" grunt.loadTasks(taskPath) if fs.existsSync(taskPath) loadUserTasks = (grunt) -> grunt.loadTasks("tasks")
CoffeeScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
9610ff6435b6e325e1c67291fadd807f75d3c05e
1,168
https://github.com/linemanjs/lineman/blob/9610ff6435b6e325e1c67291fadd807f75d3c05e/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:raw_corpus
raw_corpus
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) loadLinemanTasks(grunt) loadPluginTasks(gr...
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
33f0d060d207ab07e032da98f88fc6a478b3bcd6
1,168
https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverri...
var buildsAppConfig, findsPluginModules, fs, loadLinemanTasks, loadPluginTasks, loadUserTasks; findsPluginModules = require('./../lib/finds-plugin-modules'); buildsAppConfig = require('./../lib/builds-app-config'); fs = require('fs'); module.exports = { run: function(grunt) { grunt.registerTask('default', [])...
CoffeeScript
JavaScript
linemanjs/lineman
config/grunt.coffee
MIT
33f0d060d207ab07e032da98f88fc6a478b3bcd6
1,168
https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var buildsAppConfig, findsPluginModules, fs, loadLinemanTasks, loadPluginTasks, loadUserTasks; findsPluginModules = require('./../lib/finds-plugin-modules'); buildsAppConfig = require('./../lib/builds-app-config'); fs = require('fs'); module.exports = { run: ...
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) loadLinemanTasks(grunt) loadPluginTasks(gr...
JavaScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
33f0d060d207ab07e032da98f88fc6a478b3bcd6
1,168
https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:completion
completion
findsPluginModules = require('./../lib/finds-plugin-modules') buildsAppConfig = require('./../lib/builds-app-config') fs = require('fs') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) loadLinemanTasks(grunt) loadPluginTasks(gr...
loadUserTasks(grunt) loadLinemanTasks = (grunt) -> grunt.loadTasks("#{__dirname}/../tasks") loadPluginTasks = (grunt) -> findsPluginModules.find().forEach (plugin) -> taskPath = "#{plugin.dir}/tasks" grunt.loadTasks(taskPath) if fs.existsSync(taskPath) loadUserTasks = (grunt) -> grunt.loadTasks("tasks")
CoffeeScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
33f0d060d207ab07e032da98f88fc6a478b3bcd6
1,168
https://github.com/linemanjs/lineman/blob/33f0d060d207ab07e032da98f88fc6a478b3bcd6/config/grunt.coffee
1
21
linemanjs/lineman:config/grunt.coffee:1:raw_corpus
raw_corpus
buildsAppConfig = require('./../lib/builds-app-config') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) grunt.loadTasks("#{__dirname}/../tasks") #Lineman-defined tasks/ grunt.loadTasks("tasks") #User-defined tasks/
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
6318ce2aa0b785f49abde268edc68cbac20e522c
1,168
https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/config/grunt.coffee
1
8
linemanjs/lineman:config/grunt.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript buildsAppConfig = require('./../lib/builds-app-config') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) grunt.loadTasks("#{__dirname}/../tasks") #Lineman-defined tasks/ g...
var buildsAppConfig; buildsAppConfig = require('./../lib/builds-app-config'); module.exports = { run: function(grunt) { grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()); grunt.loadTasks(`${__dirname}/../tasks`); return grunt.loadTasks("tasks"); //User-defined ...
CoffeeScript
JavaScript
linemanjs/lineman
config/grunt.coffee
MIT
6318ce2aa0b785f49abde268edc68cbac20e522c
1,168
https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/config/grunt.coffee
1
8
linemanjs/lineman:config/grunt.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var buildsAppConfig; buildsAppConfig = require('./../lib/builds-app-config'); module.exports = { run: function(grunt) { grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()); grunt.loadTasks(`${__dirname}/../tasks`...
buildsAppConfig = require('./../lib/builds-app-config') module.exports = run: (grunt) -> grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) grunt.loadTasks("#{__dirname}/../tasks") #Lineman-defined tasks/ grunt.loadTasks("tasks") #User-defined tasks/
JavaScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
6318ce2aa0b785f49abde268edc68cbac20e522c
1,168
https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/config/grunt.coffee
1
8
linemanjs/lineman:config/grunt.coffee:1:completion
completion
buildsAppConfig = require('./../lib/builds-app-config') module.exports = run: (grunt) ->
grunt.registerTask('default', []); grunt.initConfig(buildsAppConfig.withUserOverrides()) grunt.loadTasks("#{__dirname}/../tasks") #Lineman-defined tasks/ grunt.loadTasks("tasks") #User-defined tasks/
CoffeeScript
CoffeeScript
linemanjs/lineman
config/grunt.coffee
MIT
6318ce2aa0b785f49abde268edc68cbac20e522c
1,168
https://github.com/linemanjs/lineman/blob/6318ce2aa0b785f49abde268edc68cbac20e522c/config/grunt.coffee
1
8
jsdf/coffee-react-transform:src/symbols.coffee:1:raw_corpus
raw_corpus
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/src/symbols.coffee
1
31
jsdf/coffee-react-transform:src/symbols.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_...
module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HEREDOC: 'CS_HEREDOC', CS_STRING: 'CS_STRING', CS_REGEX:...
CoffeeScript
JavaScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/src/symbols.coffee
1
31
jsdf/coffee-react-transform:src/symbols.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HERED...
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
JavaScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/src/symbols.coffee
1
31
jsdf/coffee-react-transform:src/symbols.coffee:1:completion
completion
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
JS_ESC: 'JS_ESC' CJSX_WHITESPACE: 'CJSX_WHITESPACE' CJSX_TEXT: 'CJSX_TEXT' CJSX_ATTR_KEY: 'CJSX_ATTR_KEY' CJSX_ATTR_VAL: 'CJSX_ATTR_VAL' CJSX_ATTR_SPREAD: 'CJSX_ATTR_SPREAD' # tokens # these aren't really used as there aren't distinct lex/parse steps # they're just names for use in debugging CJSX_STA...
CoffeeScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
873ab44f13a863c6783f3c90993541f1df6a0320
431
https://github.com/jsdf/coffee-react-transform/blob/873ab44f13a863c6783f3c90993541f1df6a0320/src/symbols.coffee
1
31
jsdf/coffee-react-transform:src/symbols.coffee:1:raw_corpus
raw_corpus
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
ca3455aa6d41d22adb293c0d904f0e9048c4160e
431
https://github.com/jsdf/coffee-react-transform/blob/ca3455aa6d41d22adb293c0d904f0e9048c4160e/src/symbols.coffee
1
30
jsdf/coffee-react-transform:src/symbols.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_...
module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HEREDOC: 'CS_HEREDOC', CS_STRING: 'CS_STRING', CS_REGEX:...
CoffeeScript
JavaScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
ca3455aa6d41d22adb293c0d904f0e9048c4160e
431
https://github.com/jsdf/coffee-react-transform/blob/ca3455aa6d41d22adb293c0d904f0e9048c4160e/src/symbols.coffee
1
30
jsdf/coffee-react-transform:src/symbols.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HERED...
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
JavaScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
ca3455aa6d41d22adb293c0d904f0e9048c4160e
431
https://github.com/jsdf/coffee-react-transform/blob/ca3455aa6d41d22adb293c0d904f0e9048c4160e/src/symbols.coffee
1
30
jsdf/coffee-react-transform:src/symbols.coffee:1:completion
completion
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
JS_ESC: 'JS_ESC' CJSX_WHITESPACE: 'CJSX_WHITESPACE' CJSX_TEXT: 'CJSX_TEXT' CJSX_ATTR_KEY: 'CJSX_ATTR_KEY' CJSX_ATTR_VAL: 'CJSX_ATTR_VAL' CJSX_ATTR_SPREAD: 'CJSX_ATTR_SPREAD' # tokens # these aren't really used as there aren't distinct lex/parse steps # they're just names for use in debugging CJSX_STA...
CoffeeScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
ca3455aa6d41d22adb293c0d904f0e9048c4160e
431
https://github.com/jsdf/coffee-react-transform/blob/ca3455aa6d41d22adb293c0d904f0e9048c4160e/src/symbols.coffee
1
30
jsdf/coffee-react-transform:src/symbols.coffee:1:raw_corpus
raw_corpus
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
dc68a4d3ee326d8edf473dc303aaac3e94f16b9a
431
https://github.com/jsdf/coffee-react-transform/blob/dc68a4d3ee326d8edf473dc303aaac3e94f16b9a/src/symbols.coffee
1
29
jsdf/coffee-react-transform:src/symbols.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_...
module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HEREDOC: 'CS_HEREDOC', CS_STRING: 'CS_STRING', CS_REGEX:...
CoffeeScript
JavaScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
dc68a4d3ee326d8edf473dc303aaac3e94f16b9a
431
https://github.com/jsdf/coffee-react-transform/blob/dc68a4d3ee326d8edf473dc303aaac3e94f16b9a/src/symbols.coffee
1
29
jsdf/coffee-react-transform:src/symbols.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HERED...
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX' ...
JavaScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
dc68a4d3ee326d8edf473dc303aaac3e94f16b9a
431
https://github.com/jsdf/coffee-react-transform/blob/dc68a4d3ee326d8edf473dc303aaac3e94f16b9a/src/symbols.coffee
1
29
jsdf/coffee-react-transform:src/symbols.coffee:1:completion
completion
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' CS_REGEX: 'CS_REGEX'
CS_HEREGEX: 'CS_HEREGEX' JS_ESC: 'JS_ESC' CJSX_WHITESPACE: 'CJSX_WHITESPACE' CJSX_TEXT: 'CJSX_TEXT' CJSX_ATTR_KEY: 'CJSX_ATTR_KEY' CJSX_ATTR_VAL: 'CJSX_ATTR_VAL' # tokens # these aren't really used as there aren't distinct lex/parse steps # they're just names for use in debugging CJSX_START: 'CJSX_ST...
CoffeeScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
dc68a4d3ee326d8edf473dc303aaac3e94f16b9a
431
https://github.com/jsdf/coffee-react-transform/blob/dc68a4d3ee326d8edf473dc303aaac3e94f16b9a/src/symbols.coffee
1
29
jsdf/coffee-react-transform:src/symbols.coffee:1:raw_corpus
raw_corpus
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' JS_ESC: 'JS_ESC' CJ...
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/src/symbols.coffee
1
27
jsdf/coffee-react-transform:src/symbols.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_...
module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HEREDOC: 'CS_HEREDOC', CS_STRING: 'CS_STRING', JS_ESC: '...
CoffeeScript
JavaScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/src/symbols.coffee
1
27
jsdf/coffee-react-transform:src/symbols.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { // branch (state) node types ROOT: 'ROOT', CJSX_EL: 'CJSX_EL', CJSX_ESC: 'CJSX_ESC', CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES', CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR', // leaf (value) node types CS: 'CS', CS_COMMENT: 'CS_COMMENT', CS_HERED...
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING' JS_ESC: 'JS_ESC' CJ...
JavaScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/src/symbols.coffee
1
27
jsdf/coffee-react-transform:src/symbols.coffee:1:completion
completion
module.exports = # branch (state) node types ROOT: 'ROOT' CJSX_EL: 'CJSX_EL' CJSX_ESC: 'CJSX_ESC' CJSX_ATTRIBUTES: 'CJSX_ATTRIBUTES' CJSX_ATTR_PAIR: 'CJSX_ATTR_PAIR' # leaf (value) node types CS: 'CS' CS_COMMENT: 'CS_COMMENT' CS_HEREDOC: 'CS_HEREDOC' CS_STRING: 'CS_STRING'
JS_ESC: 'JS_ESC' CJSX_WHITESPACE: 'CJSX_WHITESPACE' CJSX_TEXT: 'CJSX_TEXT' CJSX_ATTR_KEY: 'CJSX_ATTR_KEY' CJSX_ATTR_VAL: 'CJSX_ATTR_VAL' # tokens # these aren't really used as there aren't distinct lex/parse steps # they're just names for use in debugging CJSX_START: 'CJSX_START' CJSX_END: 'CJSX_END'...
CoffeeScript
CoffeeScript
jsdf/coffee-react-transform
src/symbols.coffee
MIT
054a384873f9ee6dd7e20ef83b98e9899a042718
431
https://github.com/jsdf/coffee-react-transform/blob/054a384873f9ee6dd7e20ef83b98e9899a042718/src/symbols.coffee
1
27
mauricemach/zappa:tests/externals.coffee:1:raw_corpus
raw_corpus
@tests = 'available at the root scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> t.equal 1, foo, 'bar' 'available at the request scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> get '/': -> t.equal 1, foo, 'ba...
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a0bf34282a3db50b307b1319d30ff227d4277a9
943
https://github.com/mauricemach/zappa/blob/6a0bf34282a3db50b307b1319d30ff227d4277a9/tests/externals.coffee
4
53
mauricemach/zappa:tests/externals.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript @tests = 'available at the root scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> t.equal 1, foo, 'bar' 'available at the request scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo:...
this.tests = { 'available at the root scope': function(t) { var zapp; t.expect(1); t.wait(3000); return zapp = zappa(port++, { t, foo: 'bar' }, function() { return t.equal(1, foo, 'bar'); }); }, 'available at the request scope': function(t) { var c, zapp; t.expect...
CoffeeScript
JavaScript
mauricemach/zappa
tests/externals.coffee
MIT
6a0bf34282a3db50b307b1319d30ff227d4277a9
943
https://github.com/mauricemach/zappa/blob/6a0bf34282a3db50b307b1319d30ff227d4277a9/tests/externals.coffee
4
53
mauricemach/zappa:tests/externals.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript this.tests = { 'available at the root scope': function(t) { var zapp; t.expect(1); t.wait(3000); return zapp = zappa(port++, { t, foo: 'bar' }, function() { return t.equal(1, foo, 'bar'); }); }, 'available at the requ...
@tests = 'available at the root scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> t.equal 1, foo, 'bar' 'available at the request scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> get '/': -> t.equal 1, foo, 'ba...
JavaScript
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a0bf34282a3db50b307b1319d30ff227d4277a9
943
https://github.com/mauricemach/zappa/blob/6a0bf34282a3db50b307b1319d30ff227d4277a9/tests/externals.coffee
4
53
mauricemach/zappa:tests/externals.coffee:1:completion
completion
@tests = 'available at the root scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> t.equal 1, foo, 'bar' 'available at the request scope': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> get '/': -> t.equal 1, foo, 'ba...
get '/': -> t.equal 1, foo, 'zag' c = t.client(zapp.app) c.get '/' 'shadowed by helpers': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, foo: 'bar'}, -> helper foo: -> 'pong' get '/': -> t.equal 1, foo(), 'pong' c = t.client(zapp.app) c.get '/' 's...
CoffeeScript
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a0bf34282a3db50b307b1319d30ff227d4277a9
943
https://github.com/mauricemach/zappa/blob/6a0bf34282a3db50b307b1319d30ff227d4277a9/tests/externals.coffee
4
53
mauricemach/zappa:tests/externals.coffee:2:raw_corpus
raw_corpus
c = t.client(zapp.app) c.get '/' 'shadow root scope variables': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, get: 'got'}, -> t.equal 1, get, 'got' 'primitives are passed by value': (t) -> t.expect 1 t.wait 3000 foo = 'bar' zapp = zappa port++, {t, foo}, -> t...
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a0bf34282a3db50b307b1319d30ff227d4277a9
943
https://github.com/mauricemach/zappa/blob/6a0bf34282a3db50b307b1319d30ff227d4277a9/tests/externals.coffee
54
89
mauricemach/zappa:tests/externals.coffee:2:completion
completion
c = t.client(zapp.app) c.get '/' 'shadow root scope variables': (t) -> t.expect 1 t.wait 3000 zapp = zappa port++, {t, get: 'got'}, -> t.equal 1, get, 'got' 'primitives are passed by value': (t) -> t.expect 1 t.wait 3000 foo = 'bar' zapp = zappa port++, {t, foo}, -> t...
get '/': -> t.equal 2, foo, 'bar' foo += '!' c = t.client(zapp.app) c.get '/' 'objects are passed by reference': (t) -> t.expect 1 t.wait 3000 foo = {zig: 'zag'} zapp = zappa port++, {t, foo}, -> t.equal 1, foo.zig, 'zag' get '/': -> t.equal 2, foo.zig, 'zag!' foo.zig +...
CoffeeScript
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a0bf34282a3db50b307b1319d30ff227d4277a9
943
https://github.com/mauricemach/zappa/blob/6a0bf34282a3db50b307b1319d30ff227d4277a9/tests/externals.coffee
54
89
mauricemach/zappa:tests/externals.coffee:1:raw_corpus
raw_corpus
zappa = require('./support/tester') require('../src/zappa') assert = require 'assert' module.exports = 'Externals: available at the root scope': -> t = zappa {assert, foo: 'bar'}, -> assert.eql foo, 'bar' 'Externals: available at the request scope': -> t = zappa {foo: 'bar'}, -> get '/': -> fo...
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a3093f45f1a12a15562d11732c2186d022f9a51
943
https://github.com/mauricemach/zappa/blob/6a3093f45f1a12a15562d11732c2186d022f9a51/tests/externals.coffee
1
50
mauricemach/zappa:tests/externals.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript zappa = require('./support/tester') require('../src/zappa') assert = require 'assert' module.exports = 'Externals: available at the root scope': -> t = zappa {assert, foo: 'bar'}, -> assert.eql foo, 'bar' 'Externals: available at the request scope...
var assert, zappa; zappa = require('./support/tester')(require('../src/zappa')); assert = require('assert'); module.exports = { 'Externals: available at the root scope': function() { var t; return t = zappa({ assert, foo: 'bar' }, function() { return assert.eql(foo, 'bar'); }); ...
CoffeeScript
JavaScript
mauricemach/zappa
tests/externals.coffee
MIT
6a3093f45f1a12a15562d11732c2186d022f9a51
943
https://github.com/mauricemach/zappa/blob/6a3093f45f1a12a15562d11732c2186d022f9a51/tests/externals.coffee
1
50
mauricemach/zappa:tests/externals.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var assert, zappa; zappa = require('./support/tester')(require('../src/zappa')); assert = require('assert'); module.exports = { 'Externals: available at the root scope': function() { var t; return t = zappa({ assert, foo: 'bar' }, funct...
zappa = require('./support/tester') require('../src/zappa') assert = require 'assert' module.exports = 'Externals: available at the root scope': -> t = zappa {assert, foo: 'bar'}, -> assert.eql foo, 'bar' 'Externals: available at the request scope': -> t = zappa {foo: 'bar'}, -> get '/': -> fo...
JavaScript
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a3093f45f1a12a15562d11732c2186d022f9a51
943
https://github.com/mauricemach/zappa/blob/6a3093f45f1a12a15562d11732c2186d022f9a51/tests/externals.coffee
1
50
mauricemach/zappa:tests/externals.coffee:1:completion
completion
zappa = require('./support/tester') require('../src/zappa') assert = require 'assert' module.exports = 'Externals: available at the root scope': -> t = zappa {assert, foo: 'bar'}, -> assert.eql foo, 'bar' 'Externals: available at the request scope': -> t = zappa {foo: 'bar'}, -> get '/': -> fo...
t.get '/', 'pong' 'Externals: shadow globals': -> t = zappa {__filename: 'shadowglobals.coffee'}, -> get '/': -> __filename t.get '/', 'shadowglobals.coffee' 'Externals: shadow root scope variables': -> t = zappa {assert, get: 'got'}, -> assert.eql get, 'got' 'Externals: primitives are...
CoffeeScript
CoffeeScript
mauricemach/zappa
tests/externals.coffee
MIT
6a3093f45f1a12a15562d11732c2186d022f9a51
943
https://github.com/mauricemach/zappa/blob/6a3093f45f1a12a15562d11732c2186d022f9a51/tests/externals.coffee
1
50
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:raw_corpus
raw_corpus
$ = require 'jquery' # prevent user from zooming page in Chrome ((handler) -> document.addEventListener 'wheel', handler, {passive: false}) (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault()
CoffeeScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = require 'jquery' # prevent user from zooming page in Chrome ((handler) -> document.addEventListener 'wheel', handler, {passive: false}) (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key hel...
var $; $ = require('jquery'); // prevent user from zooming page in Chrome (function(handler) { return document.addEventListener('wheel', handler, { passive: false }); })(function(evt) { if (evt.ctrlKey === true) { // it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held return...
CoffeeScript
JavaScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $; $ = require('jquery'); // prevent user from zooming page in Chrome (function(handler) { return document.addEventListener('wheel', handler, { passive: false }); })(function(evt) { if (evt.ctrlKey === true) { // it's a pinch-zoom event; Chrome ...
$ = require 'jquery' # prevent user from zooming page in Chrome ((handler) -> document.addEventListener 'wheel', handler, {passive: false}) (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault()
JavaScript
CoffeeScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:completion
completion
$ = require 'jquery' # prevent user from zooming page in Chrome
((handler) -> document.addEventListener 'wheel', handler, {passive: false}) (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault()
CoffeeScript
CoffeeScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e
3,558
https://github.com/Pagedraw/pagedraw/blob/aba1bd1b8ef6bb7f58866a9d11ebb7f1e0e18a8e/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:raw_corpus
raw_corpus
$ = require 'jquery' # prevent user from zooming page in Chrome $(document).bind 'wheel', (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault()
CoffeeScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
47420645000d76fb15b851a681916dc41fc7d75c
3,558
https://github.com/Pagedraw/pagedraw/blob/47420645000d76fb15b851a681916dc41fc7d75c/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $ = require 'jquery' # prevent user from zooming page in Chrome $(document).bind 'wheel', (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault() ```
var $; $ = require('jquery'); // prevent user from zooming page in Chrome $(document).bind('wheel', function(evt) { if (evt.ctrlKey === true) { // it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held return evt.preventDefault(); } });
CoffeeScript
JavaScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
47420645000d76fb15b851a681916dc41fc7d75c
3,558
https://github.com/Pagedraw/pagedraw/blob/47420645000d76fb15b851a681916dc41fc7d75c/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var $; $ = require('jquery'); // prevent user from zooming page in Chrome $(document).bind('wheel', function(evt) { if (evt.ctrlKey === true) { // it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held return evt.preventDefault(); ...
$ = require 'jquery' # prevent user from zooming page in Chrome $(document).bind 'wheel', (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault()
JavaScript
CoffeeScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
47420645000d76fb15b851a681916dc41fc7d75c
3,558
https://github.com/Pagedraw/pagedraw/blob/47420645000d76fb15b851a681916dc41fc7d75c/src/frontend/disable-zooming-page.coffee
1
8
Pagedraw/pagedraw:src/frontend/disable-zooming-page.coffee:1:completion
completion
$ = require 'jquery' # prevent user from zooming page in Chrome
$(document).bind 'wheel', (evt) -> if evt.ctrlKey == true # it's a pinch-zoom event; Chrome does pinch-zoom as scroll with ctrl key held evt.preventDefault()
CoffeeScript
CoffeeScript
Pagedraw/pagedraw
src/frontend/disable-zooming-page.coffee
MIT
47420645000d76fb15b851a681916dc41fc7d75c
3,558
https://github.com/Pagedraw/pagedraw/blob/47420645000d76fb15b851a681916dc41fc7d75c/src/frontend/disable-zooming-page.coffee
1
8
snd/url-pattern:test/readme.coffee:1:raw_corpus
raw_corpus
test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api versioning', (t) -> pattern = new UrlPattern('/v:major(.:mi...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
1
47
snd/url-pattern:test/readme.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api vers...
var UrlPattern, test; test = require('tape'); UrlPattern = require('../lib/url-pattern'); test('simple', function(t) { var pattern; pattern = new UrlPattern('/api/users/:id'); t.deepEqual(pattern.match('/api/users/10'), { id: '10' }); t.equal(pattern.match('/api/products/5'), null); return t.end(); }...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
1
47
snd/url-pattern:test/readme.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var UrlPattern, test; test = require('tape'); UrlPattern = require('../lib/url-pattern'); test('simple', function(t) { var pattern; pattern = new UrlPattern('/api/users/:id'); t.deepEqual(pattern.match('/api/users/10'), { id: '10' }); t.equal(patte...
test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api versioning', (t) -> pattern = new UrlPattern('/v:major(.:mi...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
1
47
snd/url-pattern:test/readme.coffee:1:completion
completion
test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api versioning', (t) -> pattern = new UrlPattern('/v:major(.:mi...
domain: 'google' tld: 'com' t.deepEqual pattern.match('http://mail.google.com/mail'), subdomain: 'mail' domain: 'google' tld: 'com' _: 'mail' t.deepEqual pattern.match('http://mail.google.com:80/mail'), subdomain: 'mail' domain: 'google' tld: 'com' port: '80' _: 'mail' t.eq...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
1
47
snd/url-pattern:test/readme.coffee:2:raw_corpus
raw_corpus
t.end() test 'named segment occurs more than once', (t) -> pattern = new UrlPattern('/api/users/:ids/posts/:ids') t.deepEqual pattern.match('/api/users/10/posts/5'), {ids: ['10', '5']} t.end() test 'regex', (t) -> pattern = new UrlPattern(/^\/api\/(.*)$/) t.deepEqual pattern.match('/api/users'), ['users'] ...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
49
91
snd/url-pattern:test/readme.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript t.end() test 'named segment occurs more than once', (t) -> pattern = new UrlPattern('/api/users/:ids/posts/:ids') t.deepEqual pattern.match('/api/users/10/posts/5'), {ids: ['10', '5']} t.end() test 'regex', (t) -> pattern = new UrlPattern(/^\/api\/(.*)$...
t.end(); test('named segment occurs more than once', function(t) { var pattern; pattern = new UrlPattern('/api/users/:ids/posts/:ids'); t.deepEqual(pattern.match('/api/users/10/posts/5'), { ids: ['10', '5'] }); return t.end(); }); test('regex', function(t) { var pattern; pattern = new UrlPattern(/^\...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
49
91
snd/url-pattern:test/readme.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript t.end(); test('named segment occurs more than once', function(t) { var pattern; pattern = new UrlPattern('/api/users/:ids/posts/:ids'); t.deepEqual(pattern.match('/api/users/10/posts/5'), { ids: ['10', '5'] }); return t.end(); }); test('regex', func...
t.end() test 'named segment occurs more than once', (t) -> pattern = new UrlPattern('/api/users/:ids/posts/:ids') t.deepEqual pattern.match('/api/users/10/posts/5'), {ids: ['10', '5']} t.end() test 'regex', (t) -> pattern = new UrlPattern(/^\/api\/(.*)$/) t.deepEqual pattern.match('/api/users'), ['users'] ...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
49
91
snd/url-pattern:test/readme.coffee:2:completion
completion
t.end() test 'named segment occurs more than once', (t) -> pattern = new UrlPattern('/api/users/:ids/posts/:ids') t.deepEqual pattern.match('/api/users/10/posts/5'), {ids: ['10', '5']} t.end() test 'regex', (t) -> pattern = new UrlPattern(/^\/api\/(.*)$/) t.deepEqual pattern.match('/api/users'), ['users'] ...
t.equal pattern.match('/api/users/foo'), null t.end() test 'stringify', (t) -> pattern = new UrlPattern('/api/users/:id') t.equal '/api/users/10', pattern.stringify(id: 10) pattern = new UrlPattern('/api/users(/:id)') t.equal '/api/users', pattern.stringify() t.equal '/api/users/10', pattern.stringify(id:...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
845881ae23ee8dd2a2b106dfbadabe1d91b532a8
588
https://github.com/snd/url-pattern/blob/845881ae23ee8dd2a2b106dfbadabe1d91b532a8/test/readme.coffee
49
91
snd/url-pattern:test/readme.coffee:1:raw_corpus
raw_corpus
test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api versioning', (t) -> pattern = new UrlPattern('/v:major(.:mi...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
4add416eaf34cc2857d1495638f75e019e8cf1a7
588
https://github.com/snd/url-pattern/blob/4add416eaf34cc2857d1495638f75e019e8cf1a7/test/readme.coffee
1
41
snd/url-pattern:test/readme.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api vers...
var UrlPattern, test; test = require('tape'); UrlPattern = require('../lib/url-pattern'); test('simple', function(t) { var pattern; pattern = new UrlPattern('/api/users/:id'); t.deepEqual(pattern.match('/api/users/10'), { id: '10' }); t.equal(pattern.match('/api/products/5'), null); return t.end(); }...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
4add416eaf34cc2857d1495638f75e019e8cf1a7
588
https://github.com/snd/url-pattern/blob/4add416eaf34cc2857d1495638f75e019e8cf1a7/test/readme.coffee
1
41
snd/url-pattern:test/readme.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var UrlPattern, test; test = require('tape'); UrlPattern = require('../lib/url-pattern'); test('simple', function(t) { var pattern; pattern = new UrlPattern('/api/users/:id'); t.deepEqual(pattern.match('/api/users/10'), { id: '10' }); t.equal(patte...
test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api versioning', (t) -> pattern = new UrlPattern('/v:major(.:mi...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
4add416eaf34cc2857d1495638f75e019e8cf1a7
588
https://github.com/snd/url-pattern/blob/4add416eaf34cc2857d1495638f75e019e8cf1a7/test/readme.coffee
1
41
snd/url-pattern:test/readme.coffee:1:completion
completion
test = require 'tape' UrlPattern = require '../lib/url-pattern' test 'simple', (t) -> pattern = new UrlPattern('/api/users/:id') t.deepEqual pattern.match('/api/users/10'), {id: '10'} t.equal pattern.match('/api/products/5'), null t.end() test 'api versioning', (t) -> pattern = new UrlPattern('/v:major(.:mi...
tld: 'de' t.deepEqual pattern.match('https://www.google.com'), subdomain: 'www' domain: 'google' tld: 'com' t.deepEqual pattern.match('http://mail.google.com/mail'), subdomain: 'mail' domain: 'google' tld: 'com' _: 'mail' t.equal pattern.match('google'), null t.deepEqual pattern.mat...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
4add416eaf34cc2857d1495638f75e019e8cf1a7
588
https://github.com/snd/url-pattern/blob/4add416eaf34cc2857d1495638f75e019e8cf1a7/test/readme.coffee
1
41
snd/url-pattern:test/readme.coffee:1:raw_corpus
raw_corpus
module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPattern('/v:major(.:minor)/*') test.deepEqual...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern =...
module.exports = { 'simple': function(test) { var pattern; pattern = new UrlPattern('/api/users/:id'); test.deepEqual(pattern.match('/api/users/10'), { id: '10' }); test.equal(pattern.match('/api/products/5'), null); return test.done(); }, 'api versioning': function(test) { var p...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'simple': function(test) { var pattern; pattern = new UrlPattern('/api/users/:id'); test.deepEqual(pattern.match('/api/users/10'), { id: '10' }); test.equal(pattern.match('/api/products/5'), null); return test.done...
module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPattern('/v:major(.:minor)/*') test.deepEqual...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:1:completion
completion
module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPattern('/v:major(.:minor)/*') test.deepEqual...
subdomain: 'mail' domain: 'google' tld: 'com' _: 'mail' test.equal pattern.match('google'), null test.deepEqual pattern.match('www.google.com'), subdomain: 'www' domain: 'google' tld: 'com' test.equal pattern.match('httpp://mail.google.com/mail'), null test.deepEqual...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:2:raw_corpus
raw_corpus
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex group names': (test) -> pattern = new UrlPattern(/^\/api\/([^\/]+)(?:\/(\d+))?$/, ['resource', 'id']) test.deepEqual pattern.match('/api/users'), resource: 'users' test.eq...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/readme.coffee
53
102
snd/url-pattern:test/readme.coffee:2:completion
completion
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex group names': (test) -> pattern = new UrlPattern(/^\/api\/([^\/]+)(?:\/(\d+))?$/, ['resource', 'id']) test.deepEqual pattern.match('/api/users'), resource: 'users' test.eq...
'customization': (test) -> options = escapeChar: '!' segmentNameStartChar: '$' segmentNameCharset: 'a-zA-Z0-9_-' segmentValueCharset: 'a-zA-Z0-9' optionalSegmentStartChar: '[' optionalSegmentEndChar: ']' wildcardChar: '?' pattern = new UrlPattern( '[http[s]!://][...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d9843a09ca2171908c18198f7906eae6a58086e6
588
https://github.com/snd/url-pattern/blob/d9843a09ca2171908c18198f7906eae6a58086e6/test/readme.coffee
53
102
snd/url-pattern:test/readme.coffee:2:raw_corpus
raw_corpus
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex group names': (test) -> pattern = new UrlPattern(/^\/api\/([^\/]+)(?:\/(\d+))?$/, ['resource', 'id']) test.deepEqual pattern.match('/api/users'), resource: 'users' test.eq...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
4946b67e184f42bd342da30321bcbe43672f5994
588
https://github.com/snd/url-pattern/blob/4946b67e184f42bd342da30321bcbe43672f5994/test/readme.coffee
53
102
snd/url-pattern:test/readme.coffee:2:completion
completion
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex group names': (test) -> pattern = new UrlPattern(/^\/api\/([^\/]+)(?:\/(\d+))?$/, ['resource', 'id']) test.deepEqual pattern.match('/api/users'), resource: 'users' test.eq...
pattern = new UrlPattern( '[http[s]!://][$sub_domain.]$domain.$toplevel-domain[/?]' options ) test.deepEqual pattern.match('google.de'), domain: 'google' 'toplevel-domain': 'de' test.deepEqual pattern.match('http://mail.google.com/mail'), sub_domain: 'mail' domain: 'goog...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
4946b67e184f42bd342da30321bcbe43672f5994
588
https://github.com/snd/url-pattern/blob/4946b67e184f42bd342da30321bcbe43672f5994/test/readme.coffee
53
102
snd/url-pattern:test/readme.coffee:1:raw_corpus
raw_corpus
module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPattern('/v:major(.:minor)/*') test.deepEqual...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
8d5460603b51487825565d50de4f553894115587
588
https://github.com/snd/url-pattern/blob/8d5460603b51487825565d50de4f553894115587/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern =...
module.exports = { 'simple': function(test) { var pattern; pattern = new UrlPattern('/api/users/:id'); test.deepEqual(pattern.match('/api/users/10'), { id: '10' }); test.equal(pattern.match('/api/products/5'), null); return test.done(); }, 'api versioning': function(test) { var p...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
8d5460603b51487825565d50de4f553894115587
588
https://github.com/snd/url-pattern/blob/8d5460603b51487825565d50de4f553894115587/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { 'simple': function(test) { var pattern; pattern = new UrlPattern('/api/users/:id'); test.deepEqual(pattern.match('/api/users/10'), { id: '10' }); test.equal(pattern.match('/api/products/5'), null); return test.done...
module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPattern('/v:major(.:minor)/*') test.deepEqual...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
8d5460603b51487825565d50de4f553894115587
588
https://github.com/snd/url-pattern/blob/8d5460603b51487825565d50de4f553894115587/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:1:completion
completion
module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPattern('/v:major(.:minor)/*') test.deepEqual...
subdomain: 'mail' domain: 'google' tld: 'com' _: 'mail' test.equal pattern.match('google'), null test.deepEqual pattern.match('www.google.com'), subdomain: 'www' domain: 'google' tld: 'com' test.equal pattern.match('httpp://mail.google.com/mail'), null test.deepEqual...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
8d5460603b51487825565d50de4f553894115587
588
https://github.com/snd/url-pattern/blob/8d5460603b51487825565d50de4f553894115587/test/readme.coffee
3
52
snd/url-pattern:test/readme.coffee:2:raw_corpus
raw_corpus
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'customization': (test) -> options = escapeChar: '!' segmentNameStartChar: '$' segmentNameCharset: 'a-zA-Z0-9_-' segmentValueCharset: 'a-zA-Z0-9' optionalSegmentS...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
8d5460603b51487825565d50de4f553894115587
588
https://github.com/snd/url-pattern/blob/8d5460603b51487825565d50de4f553894115587/test/readme.coffee
53
95
snd/url-pattern:test/readme.coffee:2:completion
completion
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'customization': (test) -> options = escapeChar: '!' segmentNameStartChar: '$' segmentNameCharset: 'a-zA-Z0-9_-' segmentValueCharset: 'a-zA-Z0-9' optionalSegmentS...
'toplevel-domain': 'de' test.deepEqual pattern.match('http://mail.google.com/mail'), sub_domain: 'mail' domain: 'google' 'toplevel-domain': 'com' _: 'mail' test.equal pattern.match('http://mail.this-should-not-match.com/mail'), null test.equal pattern.match('google'), null test.d...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
8d5460603b51487825565d50de4f553894115587
588
https://github.com/snd/url-pattern/blob/8d5460603b51487825565d50de4f553894115587/test/readme.coffee
53
95
snd/url-pattern:test/readme.coffee:1:raw_corpus
raw_corpus
UrlPattern = require '../src/url-pattern' module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPatter...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
1
50
snd/url-pattern:test/readme.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript UrlPattern = require '../src/url-pattern' module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() ...
var UrlPattern; UrlPattern = require('../src/url-pattern'); module.exports = { 'simple': function(test) { var pattern; pattern = new UrlPattern('/api/users/:id'); test.deepEqual(pattern.match('/api/users/10'), { id: '10' }); test.equal(pattern.match('/api/products/5'), null); return te...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
1
50
snd/url-pattern:test/readme.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var UrlPattern; UrlPattern = require('../src/url-pattern'); module.exports = { 'simple': function(test) { var pattern; pattern = new UrlPattern('/api/users/:id'); test.deepEqual(pattern.match('/api/users/10'), { id: '10' }); test.equal...
UrlPattern = require '../src/url-pattern' module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPatter...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
1
50
snd/url-pattern:test/readme.coffee:1:completion
completion
UrlPattern = require '../src/url-pattern' module.exports = 'simple': (test) -> pattern = new UrlPattern('/api/users/:id') test.deepEqual pattern.match('/api/users/10'), {id: '10'} test.equal pattern.match('/api/products/5'), null test.done() 'api versioning': (test) -> pattern = new UrlPatter...
domain: 'google' tld: 'com' test.deepEqual pattern.match('http://mail.google.com/mail'), subdomain: 'mail' domain: 'google' tld: 'com' _: 'mail' test.equal pattern.match('google'), null test.deepEqual pattern.match('www.google.com'), subdomain: 'www' domain: 'googl...
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
1
50
snd/url-pattern:test/readme.coffee:2:raw_corpus
raw_corpus
'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done()
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
51
55
snd/url-pattern:test/readme.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript 'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() ```
({ 'regex': function(test) { var pattern; pattern = new UrlPattern(/\/api\/(.*)/); test.deepEqual(pattern.match('/api/users'), ['users']); test.equal(pattern.match('/apiii/users'), null); return test.done(); } });
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
51
55
snd/url-pattern:test/readme.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ 'regex': function(test) { var pattern; pattern = new UrlPattern(/\/api\/(.*)/); test.deepEqual(pattern.match('/api/users'), ['users']); test.equal(pattern.match('/apiii/users'), null); return test.done(); } }); ```
'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done()
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
51
55
snd/url-pattern:test/readme.coffee:2:completion
completion
'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/)
test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done()
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
57c4f40d2a9f818070861dccedb0531fe26e2897
588
https://github.com/snd/url-pattern/blob/57c4f40d2a9f818070861dccedb0531fe26e2897/test/readme.coffee
51
55
snd/url-pattern:test/readme.coffee:2:raw_corpus
raw_corpus
'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex names': (test) -> pattern = new UrlPattern /\/api\/(.*)/, ['suffix'] test.deepEqual pattern.match('/api/users'), ...
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d16211773071e8d4bf637b32d41ad326de5f26b1
588
https://github.com/snd/url-pattern/blob/d16211773071e8d4bf637b32d41ad326de5f26b1/test/readme.coffee
51
62
snd/url-pattern:test/readme.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript 'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex names': (test) -> pattern = new UrlPattern /\/api\/(.*)/, ['s...
({ 'regex': function(test) { var pattern; pattern = new UrlPattern(/\/api\/(.*)/); test.deepEqual(pattern.match('/api/users'), ['users']); test.equal(pattern.match('/apiii/users'), null); return test.done(); }, 'regex names': function(test) { var pattern; pattern = new UrlPattern(/\/ap...
CoffeeScript
JavaScript
snd/url-pattern
test/readme.coffee
MIT
d16211773071e8d4bf637b32d41ad326de5f26b1
588
https://github.com/snd/url-pattern/blob/d16211773071e8d4bf637b32d41ad326de5f26b1/test/readme.coffee
51
62
snd/url-pattern:test/readme.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ 'regex': function(test) { var pattern; pattern = new UrlPattern(/\/api\/(.*)/); test.deepEqual(pattern.match('/api/users'), ['users']); test.equal(pattern.match('/apiii/users'), null); return test.done(); }, 'regex names': function(test...
'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done() 'regex names': (test) -> pattern = new UrlPattern /\/api\/(.*)/, ['suffix'] test.deepEqual pattern.match('/api/users'), ...
JavaScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d16211773071e8d4bf637b32d41ad326de5f26b1
588
https://github.com/snd/url-pattern/blob/d16211773071e8d4bf637b32d41ad326de5f26b1/test/readme.coffee
51
62
snd/url-pattern:test/readme.coffee:2:completion
completion
'regex': (test) -> pattern = new UrlPattern(/\/api\/(.*)/) test.deepEqual pattern.match('/api/users'), ['users'] test.equal pattern.match('/apiii/users'), null test.done()
'regex names': (test) -> pattern = new UrlPattern /\/api\/(.*)/, ['suffix'] test.deepEqual pattern.match('/api/users'), suffix: 'users' test.equal pattern.match('/apiii/users'), null test.done()
CoffeeScript
CoffeeScript
snd/url-pattern
test/readme.coffee
MIT
d16211773071e8d4bf637b32d41ad326de5f26b1
588
https://github.com/snd/url-pattern/blob/d16211773071e8d4bf637b32d41ad326de5f26b1/test/readme.coffee
51
62
CaryLandholt/AngularFun:src/scripts/controllers/personDetailsController.coffee:1:raw_corpus
raw_corpus
class PersonDetailsController constructor: ($log, personService) -> @onRouteChange = (routeParams) => @person = personService.getPerson routeParams.id angular.module('app').controller 'personDetailsController', ['$log', 'personService', PersonDetailsController]
CoffeeScript
CaryLandholt/AngularFun
src/scripts/controllers/personDetailsController.coffee
MIT
8706e0902a4ed56a9ae0ca908e4b9a95e47954e9
672
https://github.com/CaryLandholt/AngularFun/blob/8706e0902a4ed56a9ae0ca908e4b9a95e47954e9/src/scripts/controllers/personDetailsController.coffee
1
6