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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rs/pushd:settings-sample.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
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 t... | exports['mpns-tile'] = {
enabled: true,
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?DefaultTitl... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 7561688341fe7d088978b46a9d0dd0bf4d5adfd8 | 1,157 | https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee | 87 | 128 |
rs/pushd:settings-sample.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports['mpns-tile'] = {
enabled: true,
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 seco... | 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... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 7561688341fe7d088978b46a9d0dd0bf4d5adfd8 | 1,157 | https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee | 87 | 128 |
rs/pushd:settings-sample.coffee:3:completion | completion | 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... | 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
# info: log status messages
# verbose: log event and subscriber creation and deletion
# silly: log submi... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 7561688341fe7d088978b46a9d0dd0bf4d5adfd8 | 1,157 | https://github.com/rs/pushd/blob/7561688341fe7d088978b46a9d0dd0bf4d5adfd8/settings-sample.coffee | 87 | 128 |
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 | 1480c5ee6924394ae99c305a0fc5b434ddc1e928 | 1,157 | https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/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 | 1480c5ee6924394ae99c305a0fc5b434ddc1e928 | 1,157 | https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/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 | 1480c5ee6924394ae99c305a0fc5b434ddc1e928 | 1,157 | https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/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 | 1480c5ee6924394ae99c305a0fc5b434ddc1e928 | 1,157 | https://github.com/rs/pushd/blob/1480c5ee6924394ae99c305a0fc5b434ddc1e928/settings-sample.coffee | 41 | 85 |
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 | 801a1852f74b43e4cde786f5ff6066b6d68b2f16 | 1,157 | https://github.com/rs/pushd/blob/801a1852f74b43e4cde786f5ff6066b6d68b2f16/settings-sample.coffee | 45 | 84 | ||
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 | 801a1852f74b43e4cde786f5ff6066b6d68b2f16 | 1,157 | https://github.com/rs/pushd/blob/801a1852f74b43e4cde786f5ff6066b6d68b2f16/settings-sample.coffee | 45 | 84 |
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 | 801a1852f74b43e4cde786f5ff6066b6d68b2f16 | 1,157 | https://github.com/rs/pushd/blob/801a1852f74b43e4cde786f5ff6066b6d68b2f16/settings-sample.coffee | 45 | 84 |
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... | # 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'
# # How many concurrent requests to perform
# concurrency: ... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 801a1852f74b43e4cde786f5ff6066b6d68b2f16 | 1,157 | https://github.com/rs/pushd/blob/801a1852f74b43e4cde786f5ff6066b6d68b2f16/settings-sample.coffee | 45 | 84 |
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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/settings-sample.coffee | 1 | 43 |
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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/settings-sample.coffee | 45 | 84 | ||
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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/settings-sample.coffee | 45 | 84 |
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 | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/settings-sample.coffee | 45 | 84 |
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... | # 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'
# # How many concurrent requests to perform
# concurrency: ... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | ed9fa7c606816e99adaaba684a6d185e6d2b976f | 1,157 | https://github.com/rs/pushd/blob/ed9fa7c606816e99adaaba684a6d185e6d2b976f/settings-sample.coffee | 45 | 84 |
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['g... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | d176f165e489d04d3b127e36e53d375c3d325bf0 | 1,157 | https://github.com/rs/pushd/blob/d176f165e489d04d3b127e36e53d375c3d325bf0/settings-sample.coffee | 41 | 90 | ||
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 | d176f165e489d04d3b127e36e53d375c3d325bf0 | 1,157 | https://github.com/rs/pushd/blob/d176f165e489d04d3b127e36e53d375c3d325bf0/settings-sample.coffee | 41 | 90 |
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['g... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | d176f165e489d04d3b127e36e53d375c3d325bf0 | 1,157 | https://github.com/rs/pushd/blob/d176f165e489d04d3b127e36e53d375c3d325bf0/settings-sample.coffee | 41 | 90 |
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['g... | 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 | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | d176f165e489d04d3b127e36e53d375c3d325bf0 | 1,157 | https://github.com/rs/pushd/blob/d176f165e489d04d3b127e36e53d375c3d325bf0/settings-sample.coffee | 41 | 90 |
rs/pushd:settings-sample.coffee:3:raw_corpus | raw_corpus | backContent: "${data.message}"
# 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}"
wideBackBackg... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | d176f165e489d04d3b127e36e53d375c3d325bf0 | 1,157 | https://github.com/rs/pushd/blob/d176f165e489d04d3b127e36e53d375c3d325bf0/settings-sample.coffee | 91 | 96 | ||
rs/pushd:settings-sample.coffee:3:completion | completion | backContent: "${data.message}"
# 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" | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | d176f165e489d04d3b127e36e53d375c3d325bf0 | 1,157 | https://github.com/rs/pushd/blob/d176f165e489d04d3b127e36e53d375c3d325bf0/settings-sample.coffee | 91 | 96 |
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['g... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 41 | 81 | ||
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 | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 41 | 81 |
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['g... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 41 | 81 |
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['g... | # # 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'
# # How many concurrent request... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 41 | 81 |
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 | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 83 | 101 | ||
rs/pushd:settings-sample.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
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 t... | exports['mpns-tile'] = {
enabled: true,
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?DefaultTitl... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 83 | 101 |
rs/pushd:settings-sample.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports['mpns-tile'] = {
enabled: true,
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 seco... | 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... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 83 | 101 |
rs/pushd:settings-sample.coffee:3:completion | completion | 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... | title: "${data.title}"
backgroundImage: "${data.background_image_url}"
backBackgroundImage: "#005e8a"
backTitle: "${data.back_title}"
backContent: "${data.message}"
# param for WP8 flip tile (sent when subscriber declare a minimum OS version of 8.0)
smallBackgroundImage: ... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 700e25fceacb7aa89b74e396958de506701efd7f | 1,157 | https://github.com/rs/pushd/blob/700e25fceacb7aa89b74e396958de506701efd7f/settings-sample.coffee | 83 | 101 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# 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/1... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/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_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# redis_auth: 'password'
tcp_port: 80
udp_port: 80
access_log: yes
acl:
# restrict publish access to private networks
... | exports.server = {
redis_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
// 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.16... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/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_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
// redis_auth: 'password'
tcp_port: 80,
udp_port: 80,
access_log: true,
acl: {
// restrict publish access to private networks
publis... | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# 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/1... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/settings-sample.coffee | 1 | 39 |
rs/pushd:settings-sample.coffee:1:completion | completion | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# 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/1... | 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
# $ openssl pkcs12 -in... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/settings-sample.coffee | 1 | 39 |
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:
id: "${event.name}"
title: "${data.title}"
backgroundImage: "${data.... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/settings-sample.coffee | 83 | 99 | ||
rs/pushd:settings-sample.coffee:3:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
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:
id: "${event.name}"
... | exports['mpns-tile'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'tile',
// Mapping defines where - in the payload - to get the value of each required properties
tileMapping: {
id: "${event.name}",
title: "${data.title}",
backgroundImage: "${data.background_... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/settings-sample.coffee | 83 | 99 |
rs/pushd:settings-sample.coffee:3:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports['mpns-tile'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'tile',
// Mapping defines where - in the payload - to get the value of each required properties
tileMapping: {
id: "${event.name}",
title: "$... | 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:
id: "${event.name}"
title: "${data.title}"
backgroundImage: "${data.... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/settings-sample.coffee | 83 | 99 |
rs/pushd:settings-sample.coffee:3:completion | completion | 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:
id: "${event.name}"
title: "${data.title}" | backgroundImage: "${data.background_image_url}"
backBackgroundImage: "#005e8a"
backTitle: "${data.back_title}"
backContent: "${data.message}"
# param for WP8 flip tile (sent when subscriber declare a minimum OS version of 8.0)
smallBackgroundImage: "${data.small_background_image_... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6 | 1,157 | https://github.com/rs/pushd/blob/05a8d28fa1a0ba79e36ac6b1f70e604ac83af2a6/settings-sample.coffee | 83 | 99 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# 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/1... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 1 | 40 | ||
rs/pushd:settings-sample.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# redis_auth: 'password'
tcp_port: 80
udp_port: 80
access_log: yes
acl:
# restrict publish access to private networks
... | exports.server = {
redis_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
// 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.16... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 1 | 40 |
rs/pushd:settings-sample.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.server = {
redis_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
// redis_auth: 'password'
tcp_port: 80,
udp_port: 80,
access_log: true,
acl: {
// restrict publish access to private networks
publis... | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
# 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/1... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 1 | 40 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | exports['gcm'] =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy A... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 42 | 90 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports['gcm'] =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/th... | exports['gcm'] = {
enabled: true,
class: require('./lib/pushservices/gcm').PushServiceGCM,
key: 'GCM API KEY HERE'
};
exports['mpns'] = {
enabled: false,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
};
// # L... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 42 | 90 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports['gcm'] = {
enabled: true,
class: require('./lib/pushservices/gcm').PushServiceGCM,
key: 'GCM API KEY HERE'
};
exports['mpns'] = {
enabled: false,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
endpoint: 'http://sn1.notify.live.net/t... | exports['gcm'] =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy A... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 42 | 90 |
rs/pushd:settings-sample.coffee:2:completion | completion | exports['gcm'] =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy A... | 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 | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8274f473c4da81cc28195e0d1bfac80db86e1e32 | 1,157 | https://github.com/rs/pushd/blob/8274f473c4da81cc28195e0d1bfac80db86e1e32/settings-sample.coffee | 42 | 90 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
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', '192.168.0.0/16']
export... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 434b8c8f70dfce969406f663da104522b66d8785 | 1,157 | https://github.com/rs/pushd/blob/434b8c8f70dfce969406f663da104522b66d8785/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_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
tcp_port: 80
udp_port: 80
access_log: yes
acl:
# restrict publish access to private networks
publish: ['127.0.0.1',... | exports.server = {
redis_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
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.0.0/16']
}
};
exports['... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 434b8c8f70dfce969406f663da104522b66d8785 | 1,157 | https://github.com/rs/pushd/blob/434b8c8f70dfce969406f663da104522b66d8785/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_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
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... | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
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', '192.168.0.0/16']
export... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 434b8c8f70dfce969406f663da104522b66d8785 | 1,157 | https://github.com/rs/pushd/blob/434b8c8f70dfce969406f663da104522b66d8785/settings-sample.coffee | 1 | 39 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
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', '192.168.0.0/16']
export... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 1 | 41 | ||
rs/pushd:settings-sample.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
tcp_port: 80
udp_port: 80
access_log: yes
acl:
# restrict publish access to private networks
publish: ['127.0.0.1',... | exports.server = {
redis_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
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.0.0/16']
}
};
exports['... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 1 | 41 |
rs/pushd:settings-sample.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.server = {
redis_socket: '/var/run/redis/redis.sock',
// redis_port: 6379
// redis_host: 'localhost'
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... | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
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', '192.168.0.0/16']
export... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 1 | 41 |
rs/pushd:settings-sample.coffee:1:completion | completion | exports.server =
redis_socket: '/var/run/redis/redis.sock'
# redis_port: 6379
# redis_host: 'localhost'
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', '192.168.0.0/16']
export... | cert: 'apns-cert.pem'
key: 'apns-key.pem'
cacheLength: 100
# uncommant for dev env
#gateway: 'gateway.sandbox.push.apple.com'
#address: 'feedback.sandbox.push.apple.com'
# # Uncomment to use same host for prod and dev
# exports['apns-dev'] =
# enabled: yes
# class: require('./lib/pushservic... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 1 | 41 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy Android Push Service
# exports['c2dm'] =
# enabled: yes
# class: require('./lib/pushservices/c2dm').PushServiceC2DM
... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 43 | 86 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy Android Push Service
# exports['c2dm'] =
# enabled: yes
# c... | exports['mpns'] = {
enabled: false,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
};
// # Legacy Android Push Service
// exports['c2dm'] =
// enabled: yes
// class: require('./lib/pushservices/c2dm').PushServ... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 43 | 86 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports['mpns'] = {
enabled: false,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
};
// # Legacy Android Push Service
// exports['c2dm'] =
// enabled: yes
//... | exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy Android Push Service
# exports['c2dm'] =
# enabled: yes
# class: require('./lib/pushservices/c2dm').PushServiceC2DM
... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 43 | 86 |
rs/pushd:settings-sample.coffee:2:completion | completion | exports['mpns'] =
enabled: no
class: require('./lib/pushservices/mpns').PushServiceMPNS
endpoint: 'http://sn1.notify.live.net/throttledthirdparty/01.00/YOUR_ENDPOINT_HERE'
# # Legacy Android Push Service
# exports['c2dm'] =
# enabled: yes
# class: require('./lib/pushservices/c2dm').PushServiceC2DM
... | 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').PushServiceMPNS
type: 'tile'
# Mapping defines ... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 3978b5fe7491711060f6f8ddd808ada1af1a7ed9 | 1,157 | https://github.com/rs/pushd/blob/3978b5fe7491711060f6f8ddd808ada1af1a7ed9/settings-sample.coffee | 43 | 86 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
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', '192.168.0.0/16']
exports['event-source'] =
enabled: yes
exports['apns'] =
enabled: yes
class: require('./lib/... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/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 =
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', '192.168.0.0/16']
exports['event-source'] =
enabled: yes
expo... | exports.server = {
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.0.0/16']
}
};
exports['event-source'] = {
enabled: true
};
exports['apns'] = {
enabled: true,
class: require('./... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/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 = {
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.0.0/16']
}
};
exports['event-source'] = {
enabled: true
};
ex... | exports.server =
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', '192.168.0.0/16']
exports['event-source'] =
enabled: yes
exports['apns'] =
enabled: yes
class: require('./lib/... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/settings-sample.coffee | 1 | 43 |
rs/pushd:settings-sample.coffee:1:completion | completion | exports.server =
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', '192.168.0.0/16']
exports['event-source'] =
enabled: yes
exports['apns'] =
enabled: yes
class: require('./lib/... | #gateway: 'gateway.sandbox.push.apple.com'
#address: 'feedback.sandbox.push.apple.com'
# # 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... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/settings-sample.coffee | 1 | 43 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | # # 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'
# # How many concurrent request... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/settings-sample.coffee | 45 | 83 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# # 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.... | // # 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'
// # How many concurren... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/settings-sample.coffee | 45 | 83 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// # 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:... | # # 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'
# # How many concurrent request... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/settings-sample.coffee | 45 | 83 |
rs/pushd:settings-sample.coffee:2:completion | completion | # # 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'
# # How many concurrent request... | # 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').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get the value of each required properties
tileMa... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | a9304020e2959a2734599b31a9c4d67db2c76b66 | 1,157 | https://github.com/rs/pushd/blob/a9304020e2959a2734599b31a9c4d67db2c76b66/settings-sample.coffee | 45 | 83 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | # # 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'
# # How many concurrent request... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 6c5a5cae436e00831c43b9acc2de48063f50b102 | 1,157 | https://github.com/rs/pushd/blob/6c5a5cae436e00831c43b9acc2de48063f50b102/settings-sample.coffee | 45 | 82 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# # 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.... | // # 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'
// # How many concurren... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 6c5a5cae436e00831c43b9acc2de48063f50b102 | 1,157 | https://github.com/rs/pushd/blob/6c5a5cae436e00831c43b9acc2de48063f50b102/settings-sample.coffee | 45 | 82 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// # 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:... | # # 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'
# # How many concurrent request... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 6c5a5cae436e00831c43b9acc2de48063f50b102 | 1,157 | https://github.com/rs/pushd/blob/6c5a5cae436e00831c43b9acc2de48063f50b102/settings-sample.coffee | 45 | 82 |
rs/pushd:settings-sample.coffee:2:completion | completion | # # 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'
# # How many concurrent request... | # 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').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get the value of each required properties
tileMa... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 6c5a5cae436e00831c43b9acc2de48063f50b102 | 1,157 | https://github.com/rs/pushd/blob/6c5a5cae436e00831c43b9acc2de48063f50b102/settings-sample.coffee | 45 | 82 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
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', '192.168.0.0/16']
exports['apns'] =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Co... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 1 | 50 | ||
rs/pushd:settings-sample.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.server =
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', '192.168.0.0/16']
exports['apns'] =
enabled: yes
class: re... | exports.server = {
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.0.0/16']
}
};
exports['apns'] = {
enabled: true,
class: require('./lib/pushservices/apns').PushServiceAPNS,
// Co... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.server = {
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.0.0/16']
}
};
exports['apns'] = {
enabled: true,
class: requ... | exports.server =
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', '192.168.0.0/16']
exports['apns'] =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Co... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:completion | completion | exports.server =
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', '192.168.0.0/16']
exports['apns'] =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Co... | # # Your dev certificats
# cert: 'apns-cert.pem'
# key: 'apns-key.pem'
# cacheLength: 100
# gateway: 'gateway.sandbox.push.apple.com'
exports['gcm'] =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports['mpns'] =
enabled: no
clas... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | # concurrency: 10
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?ob... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 51 | 79 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# concurrency: 10
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+... | // concurrency: 10
exports['http'] = {
enabled: true,
class: require('./lib/pushservices/http').PushServiceHTTP
};
exports['mpns-toast'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'toast',
// Used for WP7.5+ to handle deep linking
paramTemplate: '/Page.xaml?ob... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 51 | 79 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// concurrency: 10
exports['http'] = {
enabled: true,
class: require('./lib/pushservices/http').PushServiceHTTP
};
exports['mpns-toast'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'toast',
// Used for WP7.5+... | # concurrency: 10
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?ob... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 51 | 79 |
rs/pushd:settings-sample.coffee:2:completion | completion | # concurrency: 10
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?ob... | 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:
title: "${data.title}"
backgroundImage: "${data.background_image_url}"
backBackgroundImage: "#0... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b2cb912be8dd0810ef917bad2fad5c21d1685114 | 1,157 | https://github.com/rs/pushd/blob/b2cb912be8dd0810ef917bad2fad5c21d1685114/settings-sample.coffee | 51 | 79 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | # concurrency: 10
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/pushser... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8ecb708e18fece5e484f0c667647fe401f3b7db4 | 1,157 | https://github.com/rs/pushd/blob/8ecb708e18fece5e484f0c667647fe401f3b7db4/settings-sample.coffee | 51 | 75 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# concurrency: 10
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-ti... | // concurrency: 10
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/pushser... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 8ecb708e18fece5e484f0c667647fe401f3b7db4 | 1,157 | https://github.com/rs/pushd/blob/8ecb708e18fece5e484f0c667647fe401f3b7db4/settings-sample.coffee | 51 | 75 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// concurrency: 10
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... | # concurrency: 10
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/pushser... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8ecb708e18fece5e484f0c667647fe401f3b7db4 | 1,157 | https://github.com/rs/pushd/blob/8ecb708e18fece5e484f0c667647fe401f3b7db4/settings-sample.coffee | 51 | 75 |
rs/pushd:settings-sample.coffee:2:completion | completion | # concurrency: 10
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/pushser... | type: 'tile'
# Mapping defines where - in the payload - to get the value of each required properties
tileMapping:
title: "${data.title}"
backgroundImage: "${data.background_image_url}"
backBackgroundImage: "#005e8a"
backTitle: "${data.back_title}"
backContent: "${data.mes... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 8ecb708e18fece5e484f0c667647fe401f3b7db4 | 1,157 | https://github.com/rs/pushd/blob/8ecb708e18fece5e484f0c667647fe401f3b7db4/settings-sample.coffee | 51 | 75 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | # concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get th... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | e06c0068c21e877e2f2e3b1e132159c21819f0ca | 1,157 | https://github.com/rs/pushd/blob/e06c0068c21e877e2f2e3b1e132159c21819f0ca/settings-sample.coffee | 51 | 73 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'... | // concurrency: 10
exports['mpns-toast'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'toast'
};
exports['mpns-tile'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'tile',
// Mapping defines where - in the payload - to get t... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | e06c0068c21e877e2f2e3b1e132159c21819f0ca | 1,157 | https://github.com/rs/pushd/blob/e06c0068c21e877e2f2e3b1e132159c21819f0ca/settings-sample.coffee | 51 | 73 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// concurrency: 10
exports['mpns-toast'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'toast'
};
exports['mpns-tile'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'tile',... | # concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get th... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | e06c0068c21e877e2f2e3b1e132159c21819f0ca | 1,157 | https://github.com/rs/pushd/blob/e06c0068c21e877e2f2e3b1e132159c21819f0ca/settings-sample.coffee | 51 | 73 |
rs/pushd:settings-sample.coffee:2:completion | completion | # concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
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:
title: "${data.title}"
backgroundImage: "${data.background_image_url}"
backBackgroundImage: "#005e8a"
backTitle: "${data.back_title}"
backContent: "${data.message}"
# ... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | e06c0068c21e877e2f2e3b1e132159c21819f0ca | 1,157 | https://github.com/rs/pushd/blob/e06c0068c21e877e2f2e3b1e132159c21819f0ca/settings-sample.coffee | 51 | 73 |
rs/pushd:settings-sample.coffee:2:raw_corpus | raw_corpus | # concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get th... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 2bafef27e4658d71a27d03307392dd35c6f3bfdd | 1,157 | https://github.com/rs/pushd/blob/2bafef27e4658d71a27d03307392dd35c6f3bfdd/settings-sample.coffee | 51 | 73 | ||
rs/pushd:settings-sample.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'... | // concurrency: 10
exports['mpns-toast'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'toast'
};
exports['mpns-tile'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'tile',
// Mapping defines where - in the payload - to get t... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 2bafef27e4658d71a27d03307392dd35c6f3bfdd | 1,157 | https://github.com/rs/pushd/blob/2bafef27e4658d71a27d03307392dd35c6f3bfdd/settings-sample.coffee | 51 | 73 |
rs/pushd:settings-sample.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// concurrency: 10
exports['mpns-toast'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'toast'
};
exports['mpns-tile'] = {
enabled: true,
class: require('./lib/pushservices/mpns').PushServiceMPNS,
type: 'tile',... | # concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
exports['mpns-tile'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'tile'
# Mapping defines where - in the payload - to get th... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 2bafef27e4658d71a27d03307392dd35c6f3bfdd | 1,157 | https://github.com/rs/pushd/blob/2bafef27e4658d71a27d03307392dd35c6f3bfdd/settings-sample.coffee | 51 | 73 |
rs/pushd:settings-sample.coffee:2:completion | completion | # concurrency: 10
exports['mpns-toast'] =
enabled: yes
class: require('./lib/pushservices/mpns').PushServiceMPNS
type: 'toast'
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:
title: "data.title"
backgroundImage: "data.background_image_url"
backBackgroundImage: "data.back_background_image_url"
backTitle: "data.back_title"
backContent: "data.message"... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 2bafef27e4658d71a27d03307392dd35c6f3bfdd | 1,157 | https://github.com/rs/pushd/blob/2bafef27e4658d71a27d03307392dd35c6f3bfdd/settings-sample.coffee | 51 | 73 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b64e08e725a9e57b9f014b97d6399a7f31c02654 | 1,157 | https://github.com/rs/pushd/blob/b64e08e725a9e57b9f014b97d6399a7f31c02654/settings-sample.coffee | 1 | 50 | ||
rs/pushd:settings-sample.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: requi... | exports.server = {
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.0.0/16']
}
};
exports.apns = {
enabled: true,
class: require('./lib/pushservices/apns').PushServiceAPNS,
// Conve... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | b64e08e725a9e57b9f014b97d6399a7f31c02654 | 1,157 | https://github.com/rs/pushd/blob/b64e08e725a9e57b9f014b97d6399a7f31c02654/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.server = {
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.0.0/16']
}
};
exports.apns = {
enabled: true,
class: require... | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b64e08e725a9e57b9f014b97d6399a7f31c02654 | 1,157 | https://github.com/rs/pushd/blob/b64e08e725a9e57b9f014b97d6399a7f31c02654/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:completion | completion | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | # # Your dev certificats
# cert: 'apns-cert.pem'
# key: 'apns-key.pem'
# cacheLength: 100
# gateway: 'gateway.sandbox.push.apple.com'
exports.gcm =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports.mpns =
enabled: no
class: req... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | b64e08e725a9e57b9f014b97d6399a7f31c02654 | 1,157 | https://github.com/rs/pushd/blob/b64e08e725a9e57b9f014b97d6399a7f31c02654/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 81e9e756f2d185083caf07a63734be493945f131 | 1,157 | https://github.com/rs/pushd/blob/81e9e756f2d185083caf07a63734be493945f131/settings-sample.coffee | 1 | 50 | ||
rs/pushd:settings-sample.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: requi... | exports.server = {
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.0.0/16']
}
};
exports.apns = {
enabled: true,
class: require('./lib/pushservices/apns').PushServiceAPNS,
// Conve... | CoffeeScript | JavaScript | rs/pushd | settings-sample.coffee | MIT | 81e9e756f2d185083caf07a63734be493945f131 | 1,157 | https://github.com/rs/pushd/blob/81e9e756f2d185083caf07a63734be493945f131/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
exports.server = {
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.0.0/16']
}
};
exports.apns = {
enabled: true,
class: require... | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | JavaScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 81e9e756f2d185083caf07a63734be493945f131 | 1,157 | https://github.com/rs/pushd/blob/81e9e756f2d185083caf07a63734be493945f131/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:completion | completion | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | # cert: 'apns-cert.pem'
# key: 'apns-key.pem'
# cacheLength: 100
# gateway: 'gateway.sandbox.push.apple.com'
exports.gcm =
enabled: yes
class: require('./lib/pushservices/gcm').PushServiceGCM
key: 'GCM API KEY HERE'
exports.mpns =
enabled: no
class: require('./lib/pushservices/mpns... | CoffeeScript | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 81e9e756f2d185083caf07a63734be493945f131 | 1,157 | https://github.com/rs/pushd/blob/81e9e756f2d185083caf07a63734be493945f131/settings-sample.coffee | 1 | 50 |
rs/pushd:settings-sample.coffee:1:raw_corpus | raw_corpus | exports.server =
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', '192.168.0.0/16']
exports.apns =
enabled: yes
class: require('./lib/pushservices/apns').PushServiceAPNS
# Conve... | CoffeeScript | rs/pushd | settings-sample.coffee | MIT | 6bb0b2ab8c704d96b04cfed45a0fc9c2bf10a58a | 1,157 | https://github.com/rs/pushd/blob/6bb0b2ab8c704d96b04cfed45a0fc9c2bf10a58a/settings-sample.coffee | 1 | 39 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.