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
hipchat/hubot-hipchat:src/hipchat.coffee:3:raw_corpus
raw_corpus
headers["Content-Type"] = "application/json" body = new Buffer(body) options.headers["Content-Length"] = body.length else options.path += "?auth_token=#{@options.token}" request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk ...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
6b228eb74e84f0430a7e086bb083d53e954a12eb
661
https://github.com/hipchat/hubot-hipchat/blob/6b228eb74e84f0430a7e086bb083d53e954a12eb/src/hipchat.coffee
107
137
hipchat/hubot-hipchat:src/hipchat.coffee:3:completion
completion
headers["Content-Type"] = "application/json" body = new Buffer(body) options.headers["Content-Length"] = body.length else options.path += "?auth_token=#{@options.token}" request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk ...
try callback null, JSON.parse(data) catch err callback null, data or { } response.on "error", (err) -> callback err, { } if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.log err console...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
6b228eb74e84f0430a7e086bb083d53e954a12eb
661
https://github.com/hipchat/hubot-hipchat/blob/6b228eb74e84f0430a7e086bb083d53e954a12eb/src/hipchat.coffee
107
137
hipchat/hubot-hipchat:src/hipchat.coffee:2:raw_corpus
raw_corpus
bot.onError (message) -> # If HipChat sends an error, we get the error message from XMPP. # Otherwise, we get an Error object from the Node connection. if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", mes...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
1d085145164e221f4b341555bd10b1c15394b65a
661
https://github.com/hipchat/hubot-hipchat/blob/1d085145164e221f4b341555bd10b1c15394b65a/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:completion
completion
bot.onError (message) -> # If HipChat sends an error, we get the error message from XMPP. # Otherwise, we get an Error object from the Node connection. if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", mes...
# Convenience HTTP Methods for posting on behalf of the token"d user get: (path, callback) -> @request "GET", path, null, callback post: (path, body, callback) -> @request "POST", path, body, callback request: (method, path, body, callback) -> console.log method, path, body host = @options.host ...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
1d085145164e221f4b341555bd10b1c15394b65a
661
https://github.com/hipchat/hubot-hipchat/blob/1d085145164e221f4b341555bd10b1c15394b65a/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:3:raw_corpus
raw_corpus
body.auth_token = @options.token body = JSON.stringify(body) headers["Content-Type"] = "application/json" body = new Buffer(body) options.headers["Content-Length"] = body.length else options.path += "?auth_token=#{@options.token}" request = HTTPS.request options, (response) -> ...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
1d085145164e221f4b341555bd10b1c15394b65a
661
https://github.com/hipchat/hubot-hipchat/blob/1d085145164e221f4b341555bd10b1c15394b65a/src/hipchat.coffee
107
142
hipchat/hubot-hipchat:src/hipchat.coffee:3:completion
completion
body.auth_token = @options.token body = JSON.stringify(body) headers["Content-Type"] = "application/json" body = new Buffer(body) options.headers["Content-Length"] = body.length else options.path += "?auth_token=#{@options.token}" request = HTTPS.request options, (response) -> ...
callback null, JSON.parse(data) catch err callback null, data or { } response.on "error", (err) -> callback err, null if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.log err console.log err.stac...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
1d085145164e221f4b341555bd10b1c15394b65a
661
https://github.com/hipchat/hubot-hipchat/blob/1d085145164e221f4b341555bd10b1c15394b65a/src/hipchat.coffee
107
142
hipchat/hubot-hipchat:src/hipchat.coffee:2:raw_corpus
raw_corpus
# Otherwise, we get an Error object from the Node connection. if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} ...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
d9e4503caf646380d86b84f6d953d08f6057ecc4
661
https://github.com/hipchat/hubot-hipchat/blob/d9e4503caf646380d86b84f6d953d08f6057ecc4/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:completion
completion
# Otherwise, we get an Error object from the Node connection. if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} ...
post: (path, body, callback) -> @request "POST", path, body, callback request: (method, path, body, callback) -> console.log method, path, body host = @options.host or "api.hipchat.com" headers = "Host": host options = "agent" : false "host" : host "port" : 443 "path...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
d9e4503caf646380d86b84f6d953d08f6057ecc4
661
https://github.com/hipchat/hubot-hipchat/blob/d9e4503caf646380d86b84f6d953d08f6057ecc4/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:3:raw_corpus
raw_corpus
options.path += "?auth_token=#{@options.token}" request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try ...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
d9e4503caf646380d86b84f6d953d08f6057ecc4
661
https://github.com/hipchat/hubot-hipchat/blob/d9e4503caf646380d86b84f6d953d08f6057ecc4/src/hipchat.coffee
107
132
hipchat/hubot-hipchat:src/hipchat.coffee:3:completion
completion
options.path += "?auth_token=#{@options.token}" request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try ...
callback null, data or { } response.on "error", (err) -> callback err, { } if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.log err console.log err.stack callback err
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
d9e4503caf646380d86b84f6d953d08f6057ecc4
661
https://github.com/hipchat/hubot-hipchat/blob/d9e4503caf646380d86b84f6d953d08f6057ecc4/src/hipchat.coffee
107
132
hipchat/hubot-hipchat:src/hipchat.coffee:1:raw_corpus
raw_corpus
class HipChat extends Adapter send: (user, strings...) -> for str in strings @bot.message user.reply_to, str reply: (user, strings...) -> for str in strings @send user, "@\"#{user.name}\" #{str}" run: -> self = @ @options = token: process.env.HUBOT_HIPCHAT_TOKEN jid: ...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
7
56
hipchat/hubot-hipchat:src/hipchat.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class HipChat extends Adapter send: (user, strings...) -> for str in strings @bot.message user.reply_to, str reply: (user, strings...) -> for str in strings @send user, "@\"#{user.name}\" #{str}" run: -> self = @ @options = ...
var HipChat; HipChat = class HipChat extends Adapter { send(user, ...strings) { var i, len, results, str; results = []; for (i = 0, len = strings.length; i < len; i++) { str = strings[i]; results.push(this.bot.message(user.reply_to, str)); } return results; } reply(user, ...strin...
CoffeeScript
JavaScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
7
56
hipchat/hubot-hipchat:src/hipchat.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var HipChat; HipChat = class HipChat extends Adapter { send(user, ...strings) { var i, len, results, str; results = []; for (i = 0, len = strings.length; i < len; i++) { str = strings[i]; results.push(this.bot.message(user.reply_to, str))...
class HipChat extends Adapter send: (user, strings...) -> for str in strings @bot.message user.reply_to, str reply: (user, strings...) -> for str in strings @send user, "@\"#{user.name}\" #{str}" run: -> self = @ @options = token: process.env.HUBOT_HIPCHAT_TOKEN jid: ...
JavaScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
7
56
hipchat/hubot-hipchat:src/hipchat.coffee:1:completion
completion
class HipChat extends Adapter send: (user, strings...) -> for str in strings @bot.message user.reply_to, str reply: (user, strings...) -> for str in strings @send user, "@\"#{user.name}\" #{str}" run: -> self = @ @options = token: process.env.HUBOT_HIPCHAT_TOKEN jid: ...
bot.onConnect => console.log "Connected to HipChat" if @options.rooms is "@All" @get "/v1/rooms/list", (err, response) -> if response for room in response.rooms console.log "Joining #{room.xmpp_jid}" bot.join room.xmpp_jid else ...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
7
56
hipchat/hubot-hipchat:src/hipchat.coffee:2:raw_corpus
raw_corpus
if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} author.name = from unless author.name author.reply_to = chann...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} author.nam...
if (message.message) { console.log("Error talking to HipChat:", message.message); } else { console.log("Received error from HipChat:", message); } bot.onMessage(function(channel, from, message) { var author, hubot_msg; author = (self.userForName(from)) || {}; if (!author.name) { author.name = from; } ...
CoffeeScript
JavaScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript if (message.message) { console.log("Error talking to HipChat:", message.message); } else { console.log("Received error from HipChat:", message); } bot.onMessage(function(channel, from, message) { var author, hubot_msg; author = (self.userForName(from)) || ...
if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} author.name = from unless author.name author.reply_to = chann...
JavaScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:completion
completion
if message.message console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} author.name = from unless author.name author.reply_to = chann...
post: (path, body, callback) -> @request "POST", path, body, callback request: (method, path, body, callback) -> console.log method, path, body headers = "Host": "api.hipchat.com" options = "agent" : false "host" : "api.hipchat.com" "port" : 443 "path" : path "me...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:3:raw_corpus
raw_corpus
request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try callback null, JSON.parse(data) catch e...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
107
130
hipchat/hubot-hipchat:src/hipchat.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try ...
var request; request = HTTPS.request(options, function(response) { var data; data = ""; response.on("data", function(chunk) { return data += chunk; }); response.on("end", function() { var err; if (response.statusCode >= 400) { console.log(`hipchat error: ${response.statusCode}`); } ...
CoffeeScript
JavaScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
107
130
hipchat/hubot-hipchat:src/hipchat.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var request; request = HTTPS.request(options, function(response) { var data; data = ""; response.on("data", function(chunk) { return data += chunk; }); response.on("end", function() { var err; if (response.statusCode >= 400) { console.l...
request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try callback null, JSON.parse(data) catch e...
JavaScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
107
130
hipchat/hubot-hipchat:src/hipchat.coffee:3:completion
completion
request = HTTPS.request options, (response) -> data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try callback null, JSON.parse(data) catch e...
response.on "error", (err) -> callback err, { } if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.log err console.log err.stack callback err
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
f62093241ad39910fa6e8dadc9573bf7e3b87f1d
661
https://github.com/hipchat/hubot-hipchat/blob/f62093241ad39910fa6e8dadc9573bf7e3b87f1d/src/hipchat.coffee
107
130
hipchat/hubot-hipchat:src/hipchat.coffee:1:raw_corpus
raw_corpus
class HipChat extends Adapter send: (user, strings...) -> for str in strings @bot.message user.reply_to, str reply: (user, strings...) -> for str in strings @send user, "@\"#{user.name}\" #{str}" run: -> self = @ @options = token: process.env.HUBOT_HIPCHAT_TOKEN jid: ...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
ccec2824ca9761d7e138c5358e430d5905cb87b8
661
https://github.com/hipchat/hubot-hipchat/blob/ccec2824ca9761d7e138c5358e430d5905cb87b8/src/hipchat.coffee
7
56
hipchat/hubot-hipchat:src/hipchat.coffee:1:completion
completion
class HipChat extends Adapter send: (user, strings...) -> for str in strings @bot.message user.reply_to, str reply: (user, strings...) -> for str in strings @send user, "@\"#{user.name}\" #{str}" run: -> self = @ @options = token: process.env.HUBOT_HIPCHAT_TOKEN jid: ...
console.log "Connected to HipChat" if @options.rooms is "@All" @get "/v1/rooms/list", (err, response) -> if response for room in response.rooms console.log "Joining #{room.xmpp_jid}" bot.join room.xmpp_jid else console.log "Can't list...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
ccec2824ca9761d7e138c5358e430d5905cb87b8
661
https://github.com/hipchat/hubot-hipchat/blob/ccec2824ca9761d7e138c5358e430d5905cb87b8/src/hipchat.coffee
7
56
hipchat/hubot-hipchat:src/hipchat.coffee:2:raw_corpus
raw_corpus
console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} author.name = from unless author.name author.reply_to = channel hubot_msg = messag...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
ccec2824ca9761d7e138c5358e430d5905cb87b8
661
https://github.com/hipchat/hubot-hipchat/blob/ccec2824ca9761d7e138c5358e430d5905cb87b8/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:completion
completion
console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = (self.userForName from) or {} author.name = from unless author.name author.reply_to = channel hubot_msg = messag...
@request "POST", path, body, callback request: (method, path, body, callback) -> console.log method, path, body headers = "Host": "api.hipchat.com" options = "agent" : false "host" : "api.hipchat.com" "port" : 443 "path" : path "method" : method "headers": head...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
ccec2824ca9761d7e138c5358e430d5905cb87b8
661
https://github.com/hipchat/hubot-hipchat/blob/ccec2824ca9761d7e138c5358e430d5905cb87b8/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:3:raw_corpus
raw_corpus
data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try callback null, JSON.parse(data) catch err callback null, data or { } respons...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
ccec2824ca9761d7e138c5358e430d5905cb87b8
661
https://github.com/hipchat/hubot-hipchat/blob/ccec2824ca9761d7e138c5358e430d5905cb87b8/src/hipchat.coffee
107
129
hipchat/hubot-hipchat:src/hipchat.coffee:3:completion
completion
data = "" response.on "data", (chunk) -> data += chunk response.on "end", -> if response.statusCode >= 400 console.log "hipchat error: #{response.statusCode}" try callback null, JSON.parse(data) catch err callback null, data or { }
response.on "error", (err) -> callback err, { } if method is "POST" request.end(body, 'binary') else request.end() request.on "error", (err) -> console.log err console.log err.stack callback err
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
ccec2824ca9761d7e138c5358e430d5905cb87b8
661
https://github.com/hipchat/hubot-hipchat/blob/ccec2824ca9761d7e138c5358e430d5905cb87b8/src/hipchat.coffee
107
129
hipchat/hubot-hipchat:src/hipchat.coffee:2:raw_corpus
raw_corpus
console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = self.userForName from author.name = from unless author.name author.reply_to = channel hubot_msg = message.replac...
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
bfb3bc8f6a1dacd94e3ec1ceaa1594c362d2d3df
661
https://github.com/hipchat/hubot-hipchat/blob/bfb3bc8f6a1dacd94e3ec1ceaa1594c362d2d3df/src/hipchat.coffee
57
106
hipchat/hubot-hipchat:src/hipchat.coffee:2:completion
completion
console.log "Error talking to HipChat:", message.message else console.log "Received error from HipChat:", message bot.onMessage (channel, from, message) -> author = self.userForName from author.name = from unless author.name author.reply_to = channel hubot_msg = message.replac...
@request "POST", path, body, callback request: (method, path, body, callback) -> console.log method, path, body headers = "Host": "api.hipchat.com" options = "agent" : false "host" : "api.hipchat.com" "port" : 443 "path" : path "method" : method "headers": head...
CoffeeScript
CoffeeScript
hipchat/hubot-hipchat
src/hipchat.coffee
MIT
bfb3bc8f6a1dacd94e3ec1ceaa1594c362d2d3df
661
https://github.com/hipchat/hubot-hipchat/blob/bfb3bc8f6a1dacd94e3ec1ceaa1594c362d2d3df/src/hipchat.coffee
57
106
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:raw_corpus
raw_corpus
cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof UnresolvedSpreadError return distributeAcrossSpread(...
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof Unr...
var cell; cell = function(fn) { var asSpread, cellFn, distributeAcrossSpread, evaluateFull, resolve, runFn; // These are the workhorse functions that together evaluate the cell. runFn = function() { var error; try { if (dynamicScope.context.shouldThrow) { return fn(); } return d...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var cell; cell = function(fn) { var asSpread, cellFn, distributeAcrossSpread, evaluateFull, resolve, runFn; // These are the workhorse functions that together evaluate the cell. runFn = function() { var error; try { if (dynamicScope.context.sho...
cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof UnresolvedSpreadError return distributeAcrossSpread(...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:completion
completion
cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof UnresolvedSpreadError return distributeAcrossSpread(...
# resolve will recursively try to resolve value in the current spread # environment until it gets to a non-Spread or a Spread that is not in the # environment. resolve = (value) -> currentSpreadEnv = dynamicScope.context.spreadEnv return currentSpreadEnv.resolve(value) # "Public" methods. asSpread =...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:raw_corpus
raw_corpus
module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv memoize: (fn) -> computationManager.memoize(fn) cell, Spread, SpreadEnv, UnresolvedSpreadError }
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
76
81
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv memoize: (fn) -> computationManager.memoize(fn) cell, Spread, SpreadEnv, UnresolvedSpreadError } ```
var Dataflow; module.exports = Dataflow = { run: function(callback) { return computationManager.run(callback); }, currentSpreadEnv: function() { return dynamicScope.context.spreadEnv; }, memoize: function(fn) { return computationManager.memoize(fn); }, cell, Spread, SpreadEnv, Unresolve...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
76
81
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow; module.exports = Dataflow = { run: function(callback) { return computationManager.run(callback); }, currentSpreadEnv: function() { return dynamicScope.context.spreadEnv; }, memoize: function(fn) { return computationManager.memoi...
module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv memoize: (fn) -> computationManager.memoize(fn) cell, Spread, SpreadEnv, UnresolvedSpreadError }
JavaScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
76
81
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:completion
completion
module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv
memoize: (fn) -> computationManager.memoize(fn) cell, Spread, SpreadEnv, UnresolvedSpreadError }
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
107e0c2db5a0adf0f1c3b49f16f7625cff4e523b
1,052
https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Dataflow/Dataflow.coffee
76
81
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:raw_corpus
raw_corpus
cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof UnresolvedSpreadError return distributeAcrossSpread(...
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
4bcd4186d4c2c3e0072a34ad21d919df40c4bd86
1,052
https://github.com/cdglabs/apparatus/blob/4bcd4186d4c2c3e0072a34ad21d919df40c4bd86/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof Unr...
var cell; cell = function(fn) { var asSpread, cellFn, distributeAcrossSpread, evaluateFull, resolve, runFn; // These are the workhorse functions that together evaluate the cell. runFn = function() { var error; try { if (dynamicScope.context.shouldThrow) { return fn(); } return d...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
4bcd4186d4c2c3e0072a34ad21d919df40c4bd86
1,052
https://github.com/cdglabs/apparatus/blob/4bcd4186d4c2c3e0072a34ad21d919df40c4bd86/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var cell; cell = function(fn) { var asSpread, cellFn, distributeAcrossSpread, evaluateFull, resolve, runFn; // These are the workhorse functions that together evaluate the cell. runFn = function() { var error; try { if (dynamicScope.context.sho...
cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof UnresolvedSpreadError return distributeAcrossSpread(...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
4bcd4186d4c2c3e0072a34ad21d919df40c4bd86
1,052
https://github.com/cdglabs/apparatus/blob/4bcd4186d4c2c3e0072a34ad21d919df40c4bd86/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:completion
completion
cell = (fn) -> # These are the workhorse functions that together evaluate the cell. runFn = -> try return fn() if dynamicScope.context.shouldThrow return dynamicScope.with {shouldThrow: true}, fn catch error if error instanceof UnresolvedSpreadError return distributeAcrossSpread(...
evaluateFull = computationManager.memoize(evaluateFull) # resolve will recursively try to resolve value in the current spread # environment until it gets to a non-Spread or a Spread that is not in the # environment. resolve = (value) -> currentSpreadEnv = dynamicScope.context.spreadEnv return currentS...
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
4bcd4186d4c2c3e0072a34ad21d919df40c4bd86
1,052
https://github.com/cdglabs/apparatus/blob/4bcd4186d4c2c3e0072a34ad21d919df40c4bd86/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:3:raw_corpus
raw_corpus
return value # Package it up. cellFn.asSpread = asSpread return cellFn
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
4bcd4186d4c2c3e0072a34ad21d919df40c4bd86
1,052
https://github.com/cdglabs/apparatus/blob/4bcd4186d4c2c3e0072a34ad21d919df40c4bd86/src/Dataflow/Dataflow.coffee
73
77
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:raw_corpus
raw_corpus
module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv cell, Spread, SpreadEnv, UnresolvedSpreadError }
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
e45e24de4fe352fbbf194e3f1e579d2085464457
1,052
https://github.com/cdglabs/apparatus/blob/e45e24de4fe352fbbf194e3f1e579d2085464457/src/Dataflow/Dataflow.coffee
80
84
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv cell, Spread, SpreadEnv, UnresolvedSpreadError } ```
var Dataflow; module.exports = Dataflow = { run: function(callback) { return computationManager.run(callback); }, currentSpreadEnv: function() { return dynamicScope.context.spreadEnv; }, cell, Spread, SpreadEnv, UnresolvedSpreadError };
CoffeeScript
JavaScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
e45e24de4fe352fbbf194e3f1e579d2085464457
1,052
https://github.com/cdglabs/apparatus/blob/e45e24de4fe352fbbf194e3f1e579d2085464457/src/Dataflow/Dataflow.coffee
80
84
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Dataflow; module.exports = Dataflow = { run: function(callback) { return computationManager.run(callback); }, currentSpreadEnv: function() { return dynamicScope.context.spreadEnv; }, cell, Spread, SpreadEnv, UnresolvedSpreadError }; ```
module.exports = Dataflow = { run: (callback) -> computationManager.run(callback) currentSpreadEnv: -> dynamicScope.context.spreadEnv cell, Spread, SpreadEnv, UnresolvedSpreadError }
JavaScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
e45e24de4fe352fbbf194e3f1e579d2085464457
1,052
https://github.com/cdglabs/apparatus/blob/e45e24de4fe352fbbf194e3f1e579d2085464457/src/Dataflow/Dataflow.coffee
80
84
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:4:completion
completion
module.exports = Dataflow = { run: (callback) -> computationManager.run(callback)
currentSpreadEnv: -> dynamicScope.context.spreadEnv cell, Spread, SpreadEnv, UnresolvedSpreadError }
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
e45e24de4fe352fbbf194e3f1e579d2085464457
1,052
https://github.com/cdglabs/apparatus/blob/e45e24de4fe352fbbf194e3f1e579d2085464457/src/Dataflow/Dataflow.coffee
80
84
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:raw_corpus
raw_corpus
cell = (fn) -> cellFn = -> # Ensure that a computation is running. unless computationManager.isRunning return computationManager.run(cellFn) value = memoizedEvaluateFull() value = resolve(value) if value instanceof Spread and dynamicScope.context.shouldThrow throw new UnresolvedSprea...
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript cell = (fn) -> cellFn = -> # Ensure that a computation is running. unless computationManager.isRunning return computationManager.run(cellFn) value = memoizedEvaluateFull() value = resolve(value) if value instanceof Spread and dynamic...
var cell; cell = function(fn) { var asSpread, cellFn, evaluateAcrossSpread, evaluateFull, memoizedEvaluateFull, resolve; cellFn = function() { var value; // Ensure that a computation is running. if (!computationManager.isRunning) { return computationManager.run(cellFn); } value = memoized...
CoffeeScript
JavaScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var cell; cell = function(fn) { var asSpread, cellFn, evaluateAcrossSpread, evaluateFull, memoizedEvaluateFull, resolve; cellFn = function() { var value; // Ensure that a computation is running. if (!computationManager.isRunning) { return com...
cell = (fn) -> cellFn = -> # Ensure that a computation is running. unless computationManager.isRunning return computationManager.run(cellFn) value = memoizedEvaluateFull() value = resolve(value) if value instanceof Spread and dynamicScope.context.shouldThrow throw new UnresolvedSprea...
JavaScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:2:completion
completion
cell = (fn) -> cellFn = -> # Ensure that a computation is running. unless computationManager.isRunning return computationManager.run(cellFn) value = memoizedEvaluateFull() value = resolve(value) if value instanceof Spread and dynamicScope.context.shouldThrow throw new UnresolvedSprea...
memoizedEvaluateFull = computationManager.memoize(evaluateFull) # This returns the value of the cell as a spread (if necessary) within the # current dynamic scope context. It evaluates fn, telling it to throw an # UnresolvedSpreadError if it encounters a spread which is not in the # current spread environment....
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Dataflow/Dataflow.coffee
23
72
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:3:raw_corpus
raw_corpus
return dynamicScope.with {spreadEnv}, asSpread return new Spread(items, spread.origin) cellFn.asSpread = asSpread return cellFn
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Dataflow/Dataflow.coffee
73
77
cdglabs/apparatus:src/Dataflow/Dataflow.coffee:3:completion
completion
return dynamicScope.with {spreadEnv}, asSpread return new Spread(items, spread.origin)
cellFn.asSpread = asSpread return cellFn
CoffeeScript
CoffeeScript
cdglabs/apparatus
src/Dataflow/Dataflow.coffee
MIT
d676577337b62d5b97133ff51ba5ef6177efb951
1,052
https://github.com/cdglabs/apparatus/blob/d676577337b62d5b97133ff51ba5ef6177efb951/src/Dataflow/Dataflow.coffee
73
77
oozcitak/xmlbuilder-js:test/basic/begin.coffee:1:raw_corpus
raw_corpus
suite 'Creating XML:', -> test 'begin()', -> eq( doc({ headless: true }).ele('root', { att: 'val' }).ele('test').end() '<root att="val"><test/></root>' ) test 'begin() with prolog', -> eq( doc().dec().dtd().up().ele('root').end() '<?xml version="1.0"?><!DOCTYPE root><root/>' ...
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/begin.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/begin.coffee
1
12
oozcitak/xmlbuilder-js:test/basic/begin.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript suite 'Creating XML:', -> test 'begin()', -> eq( doc({ headless: true }).ele('root', { att: 'val' }).ele('test').end() '<root att="val"><test/></root>' ) test 'begin() with prolog', -> eq( doc().dec().dtd().up().ele('root').end(...
suite('Creating XML:', function() { test('begin()', function() { return eq(doc({ headless: true }).ele('root', { att: 'val' }).ele('test').end(), '<root att="val"><test/></root>'); }); return test('begin() with prolog', function() { return eq(doc().dec().dtd().up().ele('root').end(), '...
CoffeeScript
JavaScript
oozcitak/xmlbuilder-js
test/basic/begin.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/begin.coffee
1
12
oozcitak/xmlbuilder-js:test/basic/begin.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript suite('Creating XML:', function() { test('begin()', function() { return eq(doc({ headless: true }).ele('root', { att: 'val' }).ele('test').end(), '<root att="val"><test/></root>'); }); return test('begin() with prolog', function() { ...
suite 'Creating XML:', -> test 'begin()', -> eq( doc({ headless: true }).ele('root', { att: 'val' }).ele('test').end() '<root att="val"><test/></root>' ) test 'begin() with prolog', -> eq( doc().dec().dtd().up().ele('root').end() '<?xml version="1.0"?><!DOCTYPE root><root/>' ...
JavaScript
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/begin.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/begin.coffee
1
12
oozcitak/xmlbuilder-js:test/basic/begin.coffee:1:completion
completion
suite 'Creating XML:', -> test 'begin()', -> eq( doc({ headless: true }).ele('root', { att: 'val' }).ele('test').end() '<root att="val"><test/></root>' )
test 'begin() with prolog', -> eq( doc().dec().dtd().up().ele('root').end() '<?xml version="1.0"?><!DOCTYPE root><root/>' )
CoffeeScript
CoffeeScript
oozcitak/xmlbuilder-js
test/basic/begin.coffee
MIT
ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1
926
https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/begin.coffee
1
12
Nedomas/databound:spec/crud.coffee:1:raw_corpus
raw_corpus
describe 'CRUD', -> describe '#where', -> it 'should return zero initial records', -> stubResponse success: true, records: [], -> User.where().then (users) -> expect(users).to.eql([]) it 'should return all records when they exist', -> records = [ { id: 1, name: 'Nikki' }...
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
1
42
Nedomas/databound:spec/crud.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'CRUD', -> describe '#where', -> it 'should return zero initial records', -> stubResponse success: true, records: [], -> User.where().then (users) -> expect(users).to.eql([]) it 'should return all records when they exis...
describe('CRUD', function() { describe('#where', function() { it('should return zero initial records', function() { return stubResponse({ success: true, records: [] }, function() { return User.where().then(function(users) { return expect(users).to.eql([]); });...
CoffeeScript
JavaScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
1
42
Nedomas/databound:spec/crud.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('CRUD', function() { describe('#where', function() { it('should return zero initial records', function() { return stubResponse({ success: true, records: [] }, function() { return User.where().then(function(users) {...
describe 'CRUD', -> describe '#where', -> it 'should return zero initial records', -> stubResponse success: true, records: [], -> User.where().then (users) -> expect(users).to.eql([]) it 'should return all records when they exist', -> records = [ { id: 1, name: 'Nikki' }...
JavaScript
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
1
42
Nedomas/databound:spec/crud.coffee:1:completion
completion
describe 'CRUD', -> describe '#where', -> it 'should return zero initial records', -> stubResponse success: true, records: [], -> User.where().then (users) -> expect(users).to.eql([]) it 'should return all records when they exist', -> records = [ { id: 1, name: 'Nikki' }...
{ id: 2, name: 'John' } ] stubResponse success: true, records: records, -> User.find(1).then (user) -> expect(user).to.eql(id: 1, name: 'Nikki') it 'should undefined when it doesnt exist', -> stubResponse success: true, records: [], -> User.find(1).then (user) -> ...
CoffeeScript
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
1
42
Nedomas/databound:spec/crud.coffee:2:raw_corpus
raw_corpus
it 'should undefined when it doesnt exist', -> stubResponse success: true, records: [], -> User.findBy(name: 'John').then (user) -> expect(user).to.eql(undefined) describe '#create', -> it 'should create a record and return it', -> stubResponse { success: true id: 1 ...
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
44
84
Nedomas/databound:spec/crud.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'should undefined when it doesnt exist', -> stubResponse success: true, records: [], -> User.findBy(name: 'John').then (user) -> expect(user).to.eql(undefined) describe '#create', -> it 'should create a record and return it', -> ...
it('should undefined when it doesnt exist', function() { return stubResponse({ success: true, records: [] }, function() { return User.findBy({ name: 'John' }).then(function(user) { return expect(user).to.eql(void 0); }); }); }); describe('#create', function() { return it('should...
CoffeeScript
JavaScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
44
84
Nedomas/databound:spec/crud.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('should undefined when it doesnt exist', function() { return stubResponse({ success: true, records: [] }, function() { return User.findBy({ name: 'John' }).then(function(user) { return expect(user).to.eql(void 0); }); }); })...
it 'should undefined when it doesnt exist', -> stubResponse success: true, records: [], -> User.findBy(name: 'John').then (user) -> expect(user).to.eql(undefined) describe '#create', -> it 'should create a record and return it', -> stubResponse { success: true id: 1 ...
JavaScript
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
44
84
Nedomas/databound:spec/crud.coffee:2:completion
completion
it 'should undefined when it doesnt exist', -> stubResponse success: true, records: [], -> User.findBy(name: 'John').then (user) -> expect(user).to.eql(undefined) describe '#create', -> it 'should create a record and return it', -> stubResponse { success: true id: 1 ...
id: 2 scoped_records: [{ id: 2, name: 'Peter' }] }, -> User.update(id: 2, name: 'Peter').then (user) -> expect(user).to.eql(id: 2, name: 'Peter') describe '#destroy', -> it 'should destroy a record and return if it was successful', -> stubResponse { success: true ...
CoffeeScript
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
44
84
Nedomas/databound:spec/crud.coffee:3:raw_corpus
raw_corpus
expect(-> User.find(name: 'John')).to.throw(Error, 'Error in the backend') it '#find', -> stubResponse { success: false scoped_records: [] }, -> expect(-> User.find(name: 'John')).to.throw(Error, 'Error in the backend') it '#findBy', -> stubResponse {...
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
86
124
Nedomas/databound:spec/crud.coffee:3:completion
completion
expect(-> User.find(name: 'John')).to.throw(Error, 'Error in the backend') it '#find', -> stubResponse { success: false scoped_records: [] }, -> expect(-> User.find(name: 'John')).to.throw(Error, 'Error in the backend') it '#findBy', -> stubResponse {...
stubResponse { success: false scoped_records: [{ id: 2, name: 'Peter' }] }, -> expect(-> User.where(name: 'John')).to.throw(Error, 'Error in the backend') it '#create', -> stubResponse { success: false scoped_records: [{ id: 2, name: 'Peter' }] ...
CoffeeScript
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
86
124
Nedomas/databound:spec/crud.coffee:4:raw_corpus
raw_corpus
expect(-> User.update(id: 2, name: 'John')).to.throw(Error, 'Error in the backend') it '#destroy', -> stubResponse { success: false scoped_records: [{ id: 2, name: 'Peter' }] }, -> expect(-> User.destroy(2)).to.throw(Error, 'Error in the backend')
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
126
134
Nedomas/databound:spec/crud.coffee:4:completion
completion
expect(-> User.update(id: 2, name: 'John')).to.throw(Error, 'Error in the backend') it '#destroy', -> stubResponse {
success: false scoped_records: [{ id: 2, name: 'Peter' }] }, -> expect(-> User.destroy(2)).to.throw(Error, 'Error in the backend')
CoffeeScript
CoffeeScript
Nedomas/databound
spec/crud.coffee
MIT
846d707846a536119b33346588745bd183d80c1c
452
https://github.com/Nedomas/databound/blob/846d707846a536119b33346588745bd183d80c1c/spec/crud.coffee
126
134
rs/pushd:settings-sample.coffee:1:raw_corpus
raw_corpus
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # redis_db_number: 2 # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks ...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/settings-sample.coffee
1
45
rs/pushd:settings-sample.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # redis_db_number: 2 # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: ...
exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' // redis_db_number: 2 // listen_ip: '10.0.1.2' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to private networks publish: ['1...
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/settings-sample.coffee
1
45
rs/pushd:settings-sample.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' // redis_db_number: 2 // listen_ip: '10.0.1.2' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restr...
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # redis_db_number: 2 # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks ...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/settings-sample.coffee
1
45
rs/pushd:settings-sample.coffee:1:completion
completion
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # redis_db_number: 2 # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks ...
exports['event-source'] = enabled: yes exports['apns'] = enabled: yes class: require('./lib/pushservices/apns').PushServiceAPNS # Convert cert.cer and key.p12 using: # $ openssl x509 -in cert.cer -inform DER -outform PEM -out apns-cert.pem # $ openssl pkcs12 -in key.p12 -out apns-key.pem -nodes...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/settings-sample.coffee
1
45
rs/pushd:settings-sample.coffee:3:raw_corpus
raw_corpus
exports['http'] = enabled: yes class: require('./lib/pushservices/http').PushServiceHTTP exports['mpns-toast'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'toast' # Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}'...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/settings-sample.coffee
88
137
rs/pushd:settings-sample.coffee:3:completion
completion
exports['http'] = enabled: yes class: require('./lib/pushservices/http').PushServiceHTTP exports['mpns-toast'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'toast' # Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}'...
# param for WP8 flip tile (sent when subscriber declare a minimum OS version of 8.0) smallBackgroundImage: "${data.small_background_image_url}" wideBackgroundImage: "${data.wide_background_image_url}" wideBackContent: "${data.message}" wideBackBackgroundImage: "#005e8a" exports['mpns-ra...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
9dc56de9da2a64903cad510d22d4d0e078a8ba0a
1,157
https://github.com/rs/pushd/blob/9dc56de9da2a64903cad510d22d4d0e078a8ba0a/settings-sample.coffee
88
137
rs/pushd:settings-sample.coffee:1:raw_corpus
raw_corpus
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
74d52509b42d266e69e9f95e71ed439b03e5972e
1,157
https://github.com/rs/pushd/blob/74d52509b42d266e69e9f95e71ed439b03e5972e/settings-sample.coffee
1
44
rs/pushd:settings-sample.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish ac...
exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' // listen_ip: '10.0.1.2' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8',...
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
74d52509b42d266e69e9f95e71ed439b03e5972e
1,157
https://github.com/rs/pushd/blob/74d52509b42d266e69e9f95e71ed439b03e5972e/settings-sample.coffee
1
44
rs/pushd:settings-sample.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' // listen_ip: '10.0.1.2' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to pr...
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
74d52509b42d266e69e9f95e71ed439b03e5972e
1,157
https://github.com/rs/pushd/blob/74d52509b42d266e69e9f95e71ed439b03e5972e/settings-sample.coffee
1
44
rs/pushd:settings-sample.coffee:1:completion
completion
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' # listen_ip: '10.0.1.2' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '...
exports['event-source'] = enabled: yes exports['apns'] = enabled: yes class: require('./lib/pushservices/apns').PushServiceAPNS # Convert cert.cer and key.p12 using: # $ openssl x509 -in cert.cer -inform DER -outform PEM -out apns-cert.pem # $ openssl pkcs12 -in key.p12 -out apns-key.pem -nodes...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
74d52509b42d266e69e9f95e71ed439b03e5972e
1,157
https://github.com/rs/pushd/blob/74d52509b42d266e69e9f95e71ed439b03e5972e/settings-sample.coffee
1
44
rs/pushd:settings-sample.coffee:2:raw_corpus
raw_corpus
# # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # gateway: 'gateway.sandbox.push.apple.com' # # Uncom...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
46
87
rs/pushd:settings-sample.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # ...
// # Uncomment to use same host for prod and dev // exports['apns-dev'] = // enabled: yes // class: require('./lib/pushservices/apns').PushServiceAPNS // # Your dev certificats // cert: 'apns-cert.pem' // key: 'apns-key.pem' // cacheLength: 100 // gateway: 'gateway.sandbox.push.apple.com' //...
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
46
87
rs/pushd:settings-sample.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # Uncomment to use same host for prod and dev // exports['apns-dev'] = // enabled: yes // class: require('./lib/pushservices/apns').PushServiceAPNS // # Your dev certificats // cert: 'apns-cert.pem' // key: 'apns-key.pem' // cacheLength: ...
# # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # gateway: 'gateway.sandbox.push.apple.com' # # Uncom...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
46
87
rs/pushd:settings-sample.coffee:2:completion
completion
# # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # gateway: 'gateway.sandbox.push.apple.com' # # Uncom...
launchTemplate: '/Page.xaml?foo=${data.foo}' exports['gcm'] = enabled: yes class: require('./lib/pushservices/gcm').PushServiceGCM key: 'GCM API KEY HERE' # # Legacy Android Push Service # exports['c2dm'] = # enabled: yes # class: require('./lib/pushservices/c2dm').PushServiceC2DM # # App cred...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
46
87
rs/pushd:settings-sample.coffee:3:raw_corpus
raw_corpus
exports['mpns-toast'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'toast' # Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}' exports['mpns-tile'] = enabled: yes class: require('./lib/pushservices/mpns').PushServic...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
89
137
rs/pushd:settings-sample.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports['mpns-toast'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'toast' # Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}' exports['mpns-tile'] = enabled: yes...
exports['mpns-toast'] = { enabled: true, class: require('./lib/pushservices/mpns').PushServiceMPNS, type: 'toast', // Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}' }; exports['mpns-tile'] = { enabled: true, class: require('./lib/pushservices/mpns').PushServic...
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
89
137
rs/pushd:settings-sample.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports['mpns-toast'] = { enabled: true, class: require('./lib/pushservices/mpns').PushServiceMPNS, type: 'toast', // Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}' }; exports['mpns-tile'] = { enabled: true,...
exports['mpns-toast'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'toast' # Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}' exports['mpns-tile'] = enabled: yes class: require('./lib/pushservices/mpns').PushServic...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
89
137
rs/pushd:settings-sample.coffee:3:completion
completion
exports['mpns-toast'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'toast' # Used for WP7.5+ to handle deep linking paramTemplate: '/Page.xaml?object=${data.object_id}' exports['mpns-tile'] = enabled: yes class: require('./lib/pushservices/mpns').PushServic...
wideBackContent: "${data.message}" wideBackBackgroundImage: "#005e8a" exports['mpns-raw'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'raw' # Transports: Console, File, Http # # Common options: # level: # error: log errors only # warn: log also warnings # i...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a97b96665b3e87dd366bb9ee25a69d8d91d68954
1,157
https://github.com/rs/pushd/blob/a97b96665b3e87dd366bb9ee25a69d8d91d68954/settings-sample.coffee
89
137
rs/pushd:settings-sample.coffee:1:raw_corpus
raw_corpus
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12'...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a55fa207b2a08103de6358fe1379e1fd37596df4
1,157
https://github.com/rs/pushd/blob/a55fa207b2a08103de6358fe1379e1fd37596df4/settings-sample.coffee
1
43
rs/pushd:settings-sample.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks ...
exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12', '192.168....
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
a55fa207b2a08103de6358fe1379e1fd37596df4
1,157
https://github.com/rs/pushd/blob/a55fa207b2a08103de6358fe1379e1fd37596df4/settings-sample.coffee
1
43
rs/pushd:settings-sample.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to private networks publish:...
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12'...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a55fa207b2a08103de6358fe1379e1fd37596df4
1,157
https://github.com/rs/pushd/blob/a55fa207b2a08103de6358fe1379e1fd37596df4/settings-sample.coffee
1
43
rs/pushd:settings-sample.coffee:1:completion
completion
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12'...
exports['event-source'] = enabled: yes exports['apns'] = enabled: yes class: require('./lib/pushservices/apns').PushServiceAPNS # Convert cert.cer and key.p12 using: # $ openssl x509 -in cert.cer -inform DER -outform PEM -out apns-cert.pem # $ openssl pkcs12 -in key.p12 -out apns-key.pem -nodes...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
a55fa207b2a08103de6358fe1379e1fd37596df4
1,157
https://github.com/rs/pushd/blob/a55fa207b2a08103de6358fe1379e1fd37596df4/settings-sample.coffee
1
43
rs/pushd:settings-sample.coffee:1:raw_corpus
raw_corpus
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12'...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
1
39
rs/pushd:settings-sample.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks ...
exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12', '192.168....
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
1
39
rs/pushd:settings-sample.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.server = { redis_port: 6379, redis_host: 'localhost', // redis_socket: '/var/run/redis/redis.sock' // redis_auth: 'password' tcp_port: 80, udp_port: 80, access_log: true, acl: { // restrict publish access to private networks publish:...
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12'...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
1
39
rs/pushd:settings-sample.coffee:1:completion
completion
exports.server = redis_port: 6379 redis_host: 'localhost' # redis_socket: '/var/run/redis/redis.sock' # redis_auth: 'password' tcp_port: 80 udp_port: 80 access_log: yes acl: # restrict publish access to private networks publish: ['127.0.0.1', '10.0.0.0/8', '172.16.0.0/12'...
# realms: ['register', 'publish'] exports['event-source'] = enabled: yes exports['apns'] = enabled: yes class: require('./lib/pushservices/apns').PushServiceAPNS # Convert cert.cer and key.p12 using: # $ openssl x509 -in cert.cer -inform DER -outform PEM -out apns-cert.pem # $ opens...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
1
39
rs/pushd:settings-sample.coffee:2:raw_corpus
raw_corpus
# # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # gateway: 'gateway.sandbox.push.apple.com' exports["w...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
41
85
rs/pushd:settings-sample.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # ...
// # Uncomment to use same host for prod and dev // exports['apns-dev'] = // enabled: yes // class: require('./lib/pushservices/apns').PushServiceAPNS // # Your dev certificats // cert: 'apns-cert.pem' // key: 'apns-key.pem' // cacheLength: 100 // gateway: 'gateway.sandbox.push.apple.com' ex...
CoffeeScript
JavaScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
41
85
rs/pushd:settings-sample.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // # Uncomment to use same host for prod and dev // exports['apns-dev'] = // enabled: yes // class: require('./lib/pushservices/apns').PushServiceAPNS // # Your dev certificats // cert: 'apns-cert.pem' // key: 'apns-key.pem' // cacheLength: ...
# # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # gateway: 'gateway.sandbox.push.apple.com' exports["w...
JavaScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
41
85
rs/pushd:settings-sample.coffee:2:completion
completion
# # Uncomment to use same host for prod and dev # exports['apns-dev'] = # enabled: yes # class: require('./lib/pushservices/apns').PushServiceAPNS # # Your dev certificats # cert: 'apns-cert.pem' # key: 'apns-key.pem' # cacheLength: 100 # gateway: 'gateway.sandbox.push.apple.com' exports["w...
key: 'GCM API KEY HERE' # # Legacy Android Push Service # exports['c2dm'] = # enabled: yes # class: require('./lib/pushservices/c2dm').PushServiceC2DM # # App credentials # user: 'app-owner@gmail.com' # password: 'something complicated and secret' # source: 'com.yourcompany.app-name' # # Ho...
CoffeeScript
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
41
85
rs/pushd:settings-sample.coffee:3:raw_corpus
raw_corpus
exports['mpns-tile'] = enabled: yes class: require('./lib/pushservices/mpns').PushServiceMPNS type: 'tile' # Mapping defines where - in the payload - to get the value of each required properties tileMapping: # Used for WP7.5+ to push to secondary tiles # id: "/SecondaryTile.xaml?Defa...
CoffeeScript
rs/pushd
settings-sample.coffee
MIT
7561688341fe7d088978b46a9d0dd0bf4d5adfd8
1,157
https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee
87
128