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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
iizukanao/node-rtsp-rtmp-server:config.coffee:2:raw_corpus | raw_corpus | ##########################
## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderReportIntervalMs: 5000 # milliseconds
# RTMP ping timeo... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | dea3422f25194d63a02c199e7eb7c9eb8c1a5086 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/dea3422f25194d63a02c199e7eb7c9eb8c1a5086/config.coffee | 51 | 81 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
##########################
## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderRe... | //#########################
//# Advanced configurations
//#########################
// Period size of each audio frame. Use 1024 for picam.
({
audioPeriodSize: 1024,
// HTTP keepalive timeout
keepaliveTimeoutMs: 30000, // milliseconds
// RTSP
rtcpSenderReportIntervalMs: 5000, // milliseconds
// RTMP ping... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | dea3422f25194d63a02c199e7eb7c9eb8c1a5086 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/dea3422f25194d63a02c199e7eb7c9eb8c1a5086/config.coffee | 51 | 81 |
iizukanao/node-rtsp-rtmp-server:config.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//#########################
//# Advanced configurations
//#########################
// Period size of each audio frame. Use 1024 for picam.
({
audioPeriodSize: 1024,
// HTTP keepalive timeout
keepaliveTimeoutMs: 30000, // milliseconds
// RTSP
rtcpSender... | ##########################
## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderReportIntervalMs: 5000 # milliseconds
# RTMP ping timeo... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | dea3422f25194d63a02c199e7eb7c9eb8c1a5086 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/dea3422f25194d63a02c199e7eb7c9eb8c1a5086/config.coffee | 51 | 81 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.2.0'
# Average frame rate of video
videoFrameRate: 30
# Video bitrate in Kbps (inform... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.2.0'
# Average frame rate of vide... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.2.0',
// Average frame rate of video
videoFrameRate: 30,
// Video bitrate in Kbp... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.2.0',
// Average frame rate o... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.2.0'
# Average frame rate of video
videoFrameRate: 30
# Video bitrate in Kbps (inform... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.2.0'
# Average frame rate of video
videoFrameRate: 30
# Video bitrate in Kbps (inform... | # Server ports for RTP and RTCP
audioRTPServerPort : 7042 # even
audioRTCPServerPort: 7043 # odd and contiguous
videoRTPServerPort : 7044 # even
videoRTCPServerPort: 7045 # odd and contiguous
# RTMP stream name
rtmpApplicationName: 'live'
# Enable RTMPT and RTMPTE
enableRTMPT: true
flv:
# H... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:2:raw_corpus | raw_corpus | ## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderReportIntervalMs: 5000 # milliseconds
# RTMP ping timeout
rtmpPingTimeoutMs: 5000 ... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 51 | 80 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderReportIntervalMs: 5000 # milli... | //# Advanced configurations
//#########################
// Period size of each audio frame. Use 1024 for picam.
({
audioPeriodSize: 1024,
// HTTP keepalive timeout
keepaliveTimeoutMs: 30000, // milliseconds
// RTSP
rtcpSenderReportIntervalMs: 5000, // milliseconds
// RTMP ping timeout
rtmpPingTimeoutMs... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 51 | 80 |
iizukanao/node-rtsp-rtmp-server:config.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
//# Advanced configurations
//#########################
// Period size of each audio frame. Use 1024 for picam.
({
audioPeriodSize: 1024,
// HTTP keepalive timeout
keepaliveTimeoutMs: 30000, // milliseconds
// RTSP
rtcpSenderReportIntervalMs: 5000, // m... | ## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderReportIntervalMs: 5000 # milliseconds
# RTMP ping timeout
rtmpPingTimeoutMs: 5000 ... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 0e71e753d4fccc26db984471190254ab6604bda6 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/0e71e753d4fccc26db984471190254ab6604bda6/config.coffee | 51 | 80 |
iizukanao/node-rtsp-rtmp-server:config.coffee:2:raw_corpus | raw_corpus | avcprofile: 66 # Baseline profile
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp_rtmp_audioC... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | bb8f0333d23edcf58bb7e9d57fd3fdd004c3812b | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/bb8f0333d23edcf58bb7e9d57fd3fdd004c3812b/config.coffee | 51 | 100 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:2:completion | completion | avcprofile: 66 # Baseline profile
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp_rtmp_audioC... | # Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videoCodecId: 7 # H.264
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.2.1 AUDIODATA
audioCodecId: 10 # AAC
# HTTP keepa... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | bb8f0333d23edcf58bb7e9d57fd3fdd004c3812b | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/bb8f0333d23edcf58bb7e9d57fd3fdd004c3812b/config.coffee | 51 | 100 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width :... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
width: 1280,
height: 720,
// How many frames per sec... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
w... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | # Audio bitrate in Kbps
audioBitrateKbps: 40
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:2:raw_corpus | raw_corpus | # Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videoCodecId: 7 # H.264
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.2.1 AUDIODATA
audioCodecId: 10 # AAC
# HTTP keepa... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 51 | 83 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videoCodecId: 7 # H.264
# See: Adobe Flash Video File Format Specification Version 10.1 - E... | // Period size of each audio frame. Use 1024 for picam.
({
audioPeriodSize: 1024,
// See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videoCodecId: 7, // H.264
// See: Adobe Flash Video File Format Specification Version 10.1 - E.4.2.1 AUDIODATA
audioCodecId: 10, // AAC
// ... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 51 | 83 |
iizukanao/node-rtsp-rtmp-server:config.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
// Period size of each audio frame. Use 1024 for picam.
({
audioPeriodSize: 1024,
// See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videoCodecId: 7, // H.264
// See: Adobe Flash Video File Format Specification Version 10.... | # Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videoCodecId: 7 # H.264
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.2.1 AUDIODATA
audioCodecId: 10 # AAC
# HTTP keepa... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 1c6535eb348f28e11a0c365a72aa1c60757f3a6d | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/1c6535eb348f28e11a0c365a72aa1c60757f3a6d/config.coffee | 51 | 83 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 51019f996a7052f3a8d4d6d02b701247117a9c32 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/51019f996a7052f3a8d4d6d02b701247117a9c32/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width :... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
width: 1280,
height: 720,
// How many frames per sec... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 51019f996a7052f3a8d4d6d02b701247117a9c32 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/51019f996a7052f3a8d4d6d02b701247117a9c32/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
w... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 51019f996a7052f3a8d4d6d02b701247117a9c32 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/51019f996a7052f3a8d4d6d02b701247117a9c32/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | # Audio bitrate in Kbps
audioBitrateKbps: 40
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 51019f996a7052f3a8d4d6d02b701247117a9c32 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/51019f996a7052f3a8d4d6d02b701247117a9c32/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 9a7beb3bcb60f3d95ab9f231838513af954a9016 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/9a7beb3bcb60f3d95ab9f231838513af954a9016/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width :... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
width: 1280,
height: 720,
// How many frames per sec... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 9a7beb3bcb60f3d95ab9f231838513af954a9016 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/9a7beb3bcb60f3d95ab9f231838513af954a9016/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
w... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 9a7beb3bcb60f3d95ab9f231838513af954a9016 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/9a7beb3bcb60f3d95ab9f231838513af954a9016/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 1280
height: 720
# How many frames per second
vid... | # Audio bitrate in Kbps
audioBitrateKbps: 40
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 9a7beb3bcb60f3d95ab9f231838513af954a9016 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/9a7beb3bcb60f3d95ab9f231838513af954a9016/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | acd77ca72210aeb4d4c158f58cec986bb5738125 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/acd77ca72210aeb4d4c158f58cec986bb5738125/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width :... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
width: 480,
height: 360,
// How many frames per seco... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | acd77ca72210aeb4d4c158f58cec986bb5738125 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/acd77ca72210aeb4d4c158f58cec986bb5738125/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
w... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | acd77ca72210aeb4d4c158f58cec986bb5738125 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/acd77ca72210aeb4d4c158f58cec986bb5738125/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | # Audio bitrate in Kbps
audioBitrateKbps: 40
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | acd77ca72210aeb4d4c158f58cec986bb5738125 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/acd77ca72210aeb4d4c158f58cec986bb5738125/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | e7c7b158584d573b90329896b300fde177004481 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/e7c7b158584d573b90329896b300fde177004481/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width :... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
width: 480,
height: 360,
// How many frames per seco... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | e7c7b158584d573b90329896b300fde177004481 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/e7c7b158584d573b90329896b300fde177004481/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
w... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | e7c7b158584d573b90329896b300fde177004481 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/e7c7b158584d573b90329896b300fde177004481/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | audioBitrateKbps: 40
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp_rtmp_audioControl'
aud... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | e7c7b158584d573b90329896b300fde177004481 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/e7c7b158584d573b90329896b300fde177004481/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:raw_corpus | raw_corpus | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 65a311634fa05a3f8f3be89118eae5da94e1a4b5 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/65a311634fa05a3f8f3be89118eae5da94e1a4b5/config.coffee | 1 | 50 | ||
iizukanao/node-rtsp-rtmp-server:config.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width :... | module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
width: 480,
height: 360,
// How many frames per seco... | CoffeeScript | JavaScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 65a311634fa05a3f8f3be89118eae5da94e1a4b5 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/65a311634fa05a3f8f3be89118eae5da94e1a4b5/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
module.exports = {
//######################
//# Basic configurations
//######################
// Server listen port
serverPort: 80,
// Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0',
// Video frame size
w... | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | JavaScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 65a311634fa05a3f8f3be89118eae5da94e1a4b5 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/65a311634fa05a3f8f3be89118eae5da94e1a4b5/config.coffee | 1 | 50 |
iizukanao/node-rtsp-rtmp-server:config.coffee:1:completion | completion | module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name to be embedded in response headers
serverName: 'node-rtsp-rtmp-server/0.1.0'
# Video frame size
width : 480
height: 360
# How many frames per second
vide... | audioBitrateKbps: 40
# UNIX domain sockets used for receiving audio and video frames
videoReceiverPath: '/tmp/node_rtsp_rtmp_videoReceiver'
videoControlPath : '/tmp/node_rtsp_rtmp_videoControl'
audioReceiverPath: '/tmp/node_rtsp_rtmp_audioReceiver'
audioControlPath : '/tmp/node_rtsp_rtmp_audioControl'
aud... | CoffeeScript | CoffeeScript | iizukanao/node-rtsp-rtmp-server | config.coffee | MIT | 65a311634fa05a3f8f3be89118eae5da94e1a4b5 | 1,100 | https://github.com/iizukanao/node-rtsp-rtmp-server/blob/65a311634fa05a3f8f3be89118eae5da94e1a4b5/config.coffee | 1 | 50 |
soyjavi/QuoJS:source/quo.query.coffee:1:raw_corpus | raw_corpus | ###
QUERY Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.query.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
QUERY Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
... | /*
QUERY Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
var PARENT_NODE;
PARENT_NODE = "parentNode";
/*
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selec... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.query.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
QUERY Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
var PARENT_NODE;
PARENT_NODE = "parentNode";
/*
Get the descendants of each element in the current instance
@met... | ###
QUERY Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.query.coffee:1:completion | completion | ###
QUERY Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | else
result = @map -> Quo.query(@, selector)
$$ result
###
Get the parent of each element in the current instance
@method parent
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.parent = (selector) ->
ancestors = if selector then _findAncestors(... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.query.coffee:2:raw_corpus | raw_corpus | ###
Get the siblings of each element in the current instance
@method siblings
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.siblings = (selector) ->
elements = @map((index, element) ->
Array::slice.call(element.parentNode.children).filter (child) ->
... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 47 | 96 | ||
soyjavi/QuoJS:source/quo.query.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Get the siblings of each element in the current instance
@method siblings
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.siblings = (selector) ->
elements = @map((index, element) ->
Array::s... | /*
Get the siblings of each element in the current instance
@method siblings
@param {string} A string containing a selector expression to match elements against.
*/
$$.fn.siblings = function(selector) {
var elements;
elements = this.map(function(index, element) {
return Array.prototype.slice.call(element.paren... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.query.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Get the siblings of each element in the current instance
@method siblings
@param {string} A string containing a selector expression to match elements against.
*/
$$.fn.siblings = function(selector) {
var elements;
elements = this.map(function(index, element... | ###
Get the siblings of each element in the current instance
@method siblings
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.siblings = (selector) ->
elements = @map((index, element) ->
Array::slice.call(element.parentNode.children).filter (child) ->
... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.query.coffee:2:completion | completion | ###
Get the siblings of each element in the current instance
@method siblings
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.siblings = (selector) ->
elements = @map((index, element) ->
Array::slice.call(element.parentNode.children).filter (child) ->
... | ###
$$.fn.first = ->
$$ @[0]
###
Reduce the set of matched elements to the final one in the set.
@method last
###
$$.fn.last = ->
$$ @[@length - 1]
###
Reduce the set of matched elements to the final one in the set.
@method closest
@param {string} A string containing a selector expressi... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 47 | 96 |
soyjavi/QuoJS:source/quo.query.coffee:4:raw_corpus | raw_corpus | ###
Get the immediately following sibling of each element in the instance.
@method next
###
$$.fn.next = ->
_getSibling.call @, "nextSibling"
###
Get the immediately preceding sibling of each element in the instance.
@method prev
###
$$.fn.prev = ->
_getSibling.call @, "previousSibling"
... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 100 | 138 | ||
soyjavi/QuoJS:source/quo.query.coffee:4:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Get the immediately following sibling of each element in the instance.
@method next
###
$$.fn.next = ->
_getSibling.call @, "nextSibling"
###
Get the immediately preceding sibling of each element in the instance.
@method prev
###
$$.fn... | /*
Get the immediately following sibling of each element in the instance.
@method next
*/
var _filtered, _findAncestors;
$$.fn.next = function() {
return _getSibling.call(this, "nextSibling");
};
/*
Get the immediately preceding sibling of each element in the instance.
@method prev
*/
$$.fn.prev = function() {
re... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 100 | 138 |
soyjavi/QuoJS:source/quo.query.coffee:4:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Get the immediately following sibling of each element in the instance.
@method next
*/
var _filtered, _findAncestors;
$$.fn.next = function() {
return _getSibling.call(this, "nextSibling");
};
/*
Get the immediately preceding sibling of each element in the i... | ###
Get the immediately following sibling of each element in the instance.
@method next
###
$$.fn.next = ->
_getSibling.call @, "nextSibling"
###
Get the immediately preceding sibling of each element in the instance.
@method prev
###
$$.fn.prev = ->
_getSibling.call @, "previousSibling"
... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 100 | 138 |
soyjavi/QuoJS:source/quo.query.coffee:4:completion | completion | ###
Get the immediately following sibling of each element in the instance.
@method next
###
$$.fn.next = ->
_getSibling.call @, "nextSibling"
###
Get the immediately preceding sibling of each element in the instance.
@method prev
###
$$.fn.prev = ->
_getSibling.call @, "previousSibling"
... | $$.fn.map = (callback) ->
$$.map @, (el, i) -> callback.call el, i, el
# ---------------------------------------------------------------------------
# Private Methods
# ---------------------------------------------------------------------------
_findAncestors = (nodes) ->
ancestors = []
while nodes... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 100 | 138 |
soyjavi/QuoJS:source/quo.query.coffee:5:raw_corpus | raw_corpus | _getSibling = (command) ->
element = @[0][command]
element = element[command] while element and element.nodeType isnt 1
$$ element | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 141 | 144 | ||
soyjavi/QuoJS:source/quo.query.coffee:5:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
_getSibling = (command) ->
element = @[0][command]
element = element[command] while element and element.nodeType isnt 1
$$ element
``` | var _getSibling;
_getSibling = function(command) {
var element;
element = this[0][command];
while (element && element.nodeType !== 1) {
element = element[command];
}
return $$(element);
}; | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 141 | 144 |
soyjavi/QuoJS:source/quo.query.coffee:5:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var _getSibling;
_getSibling = function(command) {
var element;
element = this[0][command];
while (element && element.nodeType !== 1) {
element = element[command];
}
return $$(element);
};
``` | _getSibling = (command) ->
element = @[0][command]
element = element[command] while element and element.nodeType isnt 1
$$ element | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 141 | 144 |
soyjavi/QuoJS:source/quo.query.coffee:5:completion | completion | _getSibling = (command) ->
element = @[0][command] | element = element[command] while element and element.nodeType isnt 1
$$ element | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 7296aa6bc321370c1b92de005c9b55b9e1365596 | 2,055 | https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.query.coffee | 141 | 144 |
soyjavi/QuoJS:source/quo.query.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 726b536526878d0310215ad00633208f0776d833 | 2,055 | https://github.com/soyjavi/QuoJS/blob/726b536526878d0310215ad00633208f0776d833/source/quo.query.coffee | 1 | 45 | ||
soyjavi/QuoJS:source/quo.query.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
... | /*
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
var PARENT_NODE;
PARENT_NODE = "parentNode";
/*
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selec... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 726b536526878d0310215ad00633208f0776d833 | 2,055 | https://github.com/soyjavi/QuoJS/blob/726b536526878d0310215ad00633208f0776d833/source/quo.query.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.query.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
var PARENT_NODE;
PARENT_NODE = "parentNode";
/*
Get the descendants of each element in the current instance
@met... | ###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 726b536526878d0310215ad00633208f0776d833 | 2,055 | https://github.com/soyjavi/QuoJS/blob/726b536526878d0310215ad00633208f0776d833/source/quo.query.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.query.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | else
result = @map -> Quo.query(@, selector)
$$ result
###
Get the parent of each element in the current instance
@method parent
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.parent = (selector) ->
ancestors = if selector then _findAncestors(... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 726b536526878d0310215ad00633208f0776d833 | 2,055 | https://github.com/soyjavi/QuoJS/blob/726b536526878d0310215ad00633208f0776d833/source/quo.query.coffee | 1 | 45 |
soyjavi/QuoJS:source/quo.query.coffee:2:raw_corpus | raw_corpus | ###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to the first in the set.
@method first
###
$$.fn.first... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 2e3042a5ef709f4d645672f5e68aeed69691eb37 | 2,055 | https://github.com/soyjavi/QuoJS/blob/2e3042a5ef709f4d645672f5e68aeed69691eb37/source/quo.query.coffee | 47 | 84 | ||
soyjavi/QuoJS:source/quo.query.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to ... | /*
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
*/
$$.fn.get = function(index) {
return this[index] || null;
};
/*
Reduce the set of matched elements to the first in the set.
@method first
*/
$$.fn.first = fun... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 2e3042a5ef709f4d645672f5e68aeed69691eb37 | 2,055 | https://github.com/soyjavi/QuoJS/blob/2e3042a5ef709f4d645672f5e68aeed69691eb37/source/quo.query.coffee | 47 | 84 |
soyjavi/QuoJS:source/quo.query.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
*/
$$.fn.get = function(index) {
return this[index] || null;
};
/*
Reduce the set of matched elements to t... | ###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to the first in the set.
@method first
###
$$.fn.first... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 2e3042a5ef709f4d645672f5e68aeed69691eb37 | 2,055 | https://github.com/soyjavi/QuoJS/blob/2e3042a5ef709f4d645672f5e68aeed69691eb37/source/quo.query.coffee | 47 | 84 |
soyjavi/QuoJS:source/quo.query.coffee:2:completion | completion | ###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to the first in the set.
@method first
###
$$.fn.first... | @method last
###
$$.fn.last = ->
$$ @[@length - 1]
###
Reduce the set of matched elements to the final one in the set.
@method closest
@param {string} A string containing a selector expression to match elements against.
@param {instance} [OPTIONAL] A DOM element within which a matching element may... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | 2e3042a5ef709f4d645672f5e68aeed69691eb37 | 2,055 | https://github.com/soyjavi/QuoJS/blob/2e3042a5ef709f4d645672f5e68aeed69691eb37/source/quo.query.coffee | 47 | 84 |
soyjavi/QuoJS:source/quo.query.coffee:1:raw_corpus | raw_corpus | ###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 1 | 46 | ||
soyjavi/QuoJS:source/quo.query.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
... | /*
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
var PARENT_NODE;
PARENT_NODE = "parentNode";
/*
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selec... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 1 | 46 |
soyjavi/QuoJS:source/quo.query.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
"use strict";
(function($$) {
var PARENT_NODE;
PARENT_NODE = "parentNode";
/*
Get the descendants of each element in the current instance
@met... | ###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 1 | 46 |
soyjavi/QuoJS:source/quo.query.coffee:1:completion | completion | ###
Basic Quo Module
@namespace Quo
@class Query
@author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
###
"use strict"
do ($$ = Quo) ->
PARENT_NODE = "parentNode"
###
Get the descendants of each element in the current instance
@method find
@param {string} A string containing a selector express... | result = @map -> Quo.query(@, selector)
$$ result
###
Get the parent of each element in the current instance
@method parent
@param {string} A string containing a selector expression to match elements against.
###
$$.fn.parent = (selector) ->
ancestors = if selector then _findAncestors(@) else @in... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 1 | 46 |
soyjavi/QuoJS:source/quo.query.coffee:2:raw_corpus | raw_corpus | ###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to the first in the set.
@method first
###
$$.fn.first... | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 48 | 91 | ||
soyjavi/QuoJS:source/quo.query.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to ... | /*
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
*/
var _findAncestors;
$$.fn.get = function(index) {
return this[index] || null;
};
/*
Reduce the set of matched elements to the first in the set.
@method first... | CoffeeScript | JavaScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 48 | 91 |
soyjavi/QuoJS:source/quo.query.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
/*
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
*/
var _findAncestors;
$$.fn.get = function(index) {
return this[index] || null;
};
/*
Reduce the set of ... | ###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to the first in the set.
@method first
###
$$.fn.first... | JavaScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 48 | 91 |
soyjavi/QuoJS:source/quo.query.coffee:2:completion | completion | ###
Retrieve the DOM elements matched by the QuoJS object.
@method get
@param {number} [OPTIONAL] A zero-based integer indicating which element to retrieve
###
$$.fn.get = (index) ->
@[index] or null
###
Reduce the set of matched elements to the first in the set.
@method first
###
$$.fn.first... | $$ @[@length - 1]
$$.fn.instance = (property) ->
@map -> @[property]
$$.fn.map = (callback) ->
$$.map @, (el, i) -> callback.call el, i, el
# ---------------------------------------------------------------------------
# Private Methods
# ------------------------------------------------------------... | CoffeeScript | CoffeeScript | soyjavi/QuoJS | source/quo.query.coffee | MIT | a10944e3905ca69b824ecc9662681677bff8749c | 2,055 | https://github.com/soyjavi/QuoJS/blob/a10944e3905ca69b824ecc9662681677bff8749c/source/quo.query.coffee | 48 | 91 |
oozcitak/xmlbuilder-js:test/basic/doc.coffee:1:raw_corpus | raw_corpus | suite 'Navigation:', ->
test 'Doc', ->
eq(
xml('test7', {}, {}, { headless: true })
.ele('nodes')
.ele('node', '1').up()
.ele('node', '2').up()
.ele('node', '3')
.end()
'<test7><nodes><node>1</node><node>2</node><node>3</node></nodes></test7>'
) | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/doc.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/doc.coffee | 1 | 11 | ||
oozcitak/xmlbuilder-js:test/basic/doc.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
suite 'Navigation:', ->
test 'Doc', ->
eq(
xml('test7', {}, {}, { headless: true })
.ele('nodes')
.ele('node', '1').up()
.ele('node', '2').up()
.ele('node', '3')
.end()
'<test7><nodes><node>1</node><... | suite('Navigation:', function() {
return test('Doc', function() {
return eq(xml('test7', {}, {}, {
headless: true
}).ele('nodes').ele('node', '1').up().ele('node', '2').up().ele('node', '3').end(), '<test7><nodes><node>1</node><node>2</node><node>3</node></nodes></test7>');
});
}); | CoffeeScript | JavaScript | oozcitak/xmlbuilder-js | test/basic/doc.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/doc.coffee | 1 | 11 |
oozcitak/xmlbuilder-js:test/basic/doc.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
suite('Navigation:', function() {
return test('Doc', function() {
return eq(xml('test7', {}, {}, {
headless: true
}).ele('nodes').ele('node', '1').up().ele('node', '2').up().ele('node', '3').end(), '<test7><nodes><node>1</node><node>2</node><node>3<... | suite 'Navigation:', ->
test 'Doc', ->
eq(
xml('test7', {}, {}, { headless: true })
.ele('nodes')
.ele('node', '1').up()
.ele('node', '2').up()
.ele('node', '3')
.end()
'<test7><nodes><node>1</node><node>2</node><node>3</node></nodes></test7>'
) | JavaScript | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/doc.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/doc.coffee | 1 | 11 |
oozcitak/xmlbuilder-js:test/basic/doc.coffee:1:completion | completion | suite 'Navigation:', ->
test 'Doc', ->
eq(
xml('test7', {}, {}, { headless: true })
.ele('nodes') | .ele('node', '1').up()
.ele('node', '2').up()
.ele('node', '3')
.end()
'<test7><nodes><node>1</node><node>2</node><node>3</node></nodes></test7>'
) | CoffeeScript | CoffeeScript | oozcitak/xmlbuilder-js | test/basic/doc.coffee | MIT | ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1 | 926 | https://github.com/oozcitak/xmlbuilder-js/blob/ce625aeb9f52d1f75d5d94260794d3b5fd74a8b1/test/basic/doc.coffee | 1 | 11 |
Atraci/Atraci:coffee/_windowManager.coffee:1:raw_corpus | raw_corpus | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper = $('#ContentWrapper')
@bindEvents()
bindEvents:... | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 1 | 50 | ||
Atraci/Atraci:coffee/_windowManager.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper... | var WindowManager;
WindowManager = class WindowManager {
constructor() {
this.isMaximized = false;
this.expandBtn = $('#WindowButtons .Expand');
this.closeBtn = $('#WindowButtons .Close');
this.minimizeBtn = $('#WindowButtons .Minimize');
this.toolbarBtns = $('.trackListToolbar i');
this.cont... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 1 | 50 |
Atraci/Atraci:coffee/_windowManager.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var WindowManager;
WindowManager = class WindowManager {
constructor() {
this.isMaximized = false;
this.expandBtn = $('#WindowButtons .Expand');
this.closeBtn = $('#WindowButtons .Close');
this.minimizeBtn = $('#WindowButtons .Minimize');
thi... | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper = $('#ContentWrapper')
@bindEvents()
bindEvents:... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 1 | 50 |
Atraci/Atraci:coffee/_windowManager.coffee:1:completion | completion | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper = $('#ContentWrapper')
@bindEvents()
bindEvents:... | @minimizeBtn.on 'click', =>
@minimize()
@toolbarBtns.on 'click', ->
self.toolbarBtns.removeClass('active')
$(@).addClass('active')
if $(@).hasClass('fa-th')
self.contentWrapper.removeClass('smallRows')
else
self.contentWrapper.addClass('smallRows')
minimize: ->
... | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 1 | 50 |
Atraci/Atraci:coffee/_windowManager.coffee:2:raw_corpus | raw_corpus | Settings.set("windowLocationY", gui.Window.get().y)
setWindowLocationOnScreen: ->
gui.Window.get().x = Settings.get("windowLocationX")
gui.Window.get().y = Settings.get("windowLocationY") | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 51 | 55 | ||
Atraci/Atraci:coffee/_windowManager.coffee:2:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
Settings.set("windowLocationY", gui.Window.get().y)
setWindowLocationOnScreen: ->
gui.Window.get().x = Settings.get("windowLocationX")
gui.Window.get().y = Settings.get("windowLocationY")
``` | Settings.set("windowLocationY", gui.Window.get().y)({
setWindowLocationOnScreen: function() {
gui.Window.get().x = Settings.get("windowLocationX");
return gui.Window.get().y = Settings.get("windowLocationY");
}
}); | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 51 | 55 |
Atraci/Atraci:coffee/_windowManager.coffee:2:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
Settings.set("windowLocationY", gui.Window.get().y)({
setWindowLocationOnScreen: function() {
gui.Window.get().x = Settings.get("windowLocationX");
return gui.Window.get().y = Settings.get("windowLocationY");
}
});
``` | Settings.set("windowLocationY", gui.Window.get().y)
setWindowLocationOnScreen: ->
gui.Window.get().x = Settings.get("windowLocationX")
gui.Window.get().y = Settings.get("windowLocationY") | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 51 | 55 |
Atraci/Atraci:coffee/_windowManager.coffee:2:completion | completion | Settings.set("windowLocationY", gui.Window.get().y) | setWindowLocationOnScreen: ->
gui.Window.get().x = Settings.get("windowLocationX")
gui.Window.get().y = Settings.get("windowLocationY") | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca | 800 | https://github.com/Atraci/Atraci/blob/d3fd00622f5f2e6c5d402c7a1ef2cd693f35e9ca/coffee/_windowManager.coffee | 51 | 55 |
Atraci/Atraci:coffee/_windowManager.coffee:1:raw_corpus | raw_corpus | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper = $('#ContentWrapper')
@bindEvents()
bindEvents:... | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | c9e7bb599e5584d9698a79617de68843d30d3aed | 800 | https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/_windowManager.coffee | 1 | 46 | ||
Atraci/Atraci:coffee/_windowManager.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper... | var WindowManager;
WindowManager = class WindowManager {
constructor() {
this.isMaximized = false;
this.expandBtn = $('#WindowButtons .Expand');
this.closeBtn = $('#WindowButtons .Close');
this.minimizeBtn = $('#WindowButtons .Minimize');
this.toolbarBtns = $('.trackListToolbar i');
this.cont... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | c9e7bb599e5584d9698a79617de68843d30d3aed | 800 | https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/_windowManager.coffee | 1 | 46 |
Atraci/Atraci:coffee/_windowManager.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var WindowManager;
WindowManager = class WindowManager {
constructor() {
this.isMaximized = false;
this.expandBtn = $('#WindowButtons .Expand');
this.closeBtn = $('#WindowButtons .Close');
this.minimizeBtn = $('#WindowButtons .Minimize');
thi... | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper = $('#ContentWrapper')
@bindEvents()
bindEvents:... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | c9e7bb599e5584d9698a79617de68843d30d3aed | 800 | https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/_windowManager.coffee | 1 | 46 |
Atraci/Atraci:coffee/_windowManager.coffee:1:completion | completion | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@toolbarBtns = $('.trackListToolbar i')
@contentWrapper = $('#ContentWrapper')
@bindEvents()
bindEvents:... | @minimizeBtn.on 'click', =>
@minimize()
@toolbarBtns.on 'click', ->
self.toolbarBtns.removeClass('active')
$(@).addClass('active')
if $(@).hasClass('fa-th')
self.contentWrapper.removeClass('smallRows')
else
self.contentWrapper.addClass('smallRows')
minimize: ->
... | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | c9e7bb599e5584d9698a79617de68843d30d3aed | 800 | https://github.com/Atraci/Atraci/blob/c9e7bb599e5584d9698a79617de68843d30d3aed/coffee/_windowManager.coffee | 1 | 46 |
Atraci/Atraci:coffee/_windowManager.coffee:1:raw_corpus | raw_corpus | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@bindEvents()
bindEvents: ->
@expandBtn.on 'click', =>
if !@isMaximized
@isMaximized = true
... | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | 2b40dfcf76ee42724b777f0107ebc1cc30260c0f | 800 | https://github.com/Atraci/Atraci/blob/2b40dfcf76ee42724b777f0107ebc1cc30260c0f/coffee/_windowManager.coffee | 1 | 35 | ||
Atraci/Atraci:coffee/_windowManager.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@bindEvents()
bindEvents: ->
@expandBtn.on 'click',... | var WindowManager;
WindowManager = class WindowManager {
constructor() {
this.isMaximized = false;
this.expandBtn = $('#WindowButtons .Expand');
this.closeBtn = $('#WindowButtons .Close');
this.minimizeBtn = $('#WindowButtons .Minimize');
this.bindEvents();
}
bindEvents() {
this.expandBt... | CoffeeScript | JavaScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | 2b40dfcf76ee42724b777f0107ebc1cc30260c0f | 800 | https://github.com/Atraci/Atraci/blob/2b40dfcf76ee42724b777f0107ebc1cc30260c0f/coffee/_windowManager.coffee | 1 | 35 |
Atraci/Atraci:coffee/_windowManager.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var WindowManager;
WindowManager = class WindowManager {
constructor() {
this.isMaximized = false;
this.expandBtn = $('#WindowButtons .Expand');
this.closeBtn = $('#WindowButtons .Close');
this.minimizeBtn = $('#WindowButtons .Minimize');
thi... | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@bindEvents()
bindEvents: ->
@expandBtn.on 'click', =>
if !@isMaximized
@isMaximized = true
... | JavaScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | 2b40dfcf76ee42724b777f0107ebc1cc30260c0f | 800 | https://github.com/Atraci/Atraci/blob/2b40dfcf76ee42724b777f0107ebc1cc30260c0f/coffee/_windowManager.coffee | 1 | 35 |
Atraci/Atraci:coffee/_windowManager.coffee:1:completion | completion | class WindowManager
constructor: ->
@isMaximized = false
@expandBtn = $('#WindowButtons .Expand')
@closeBtn = $('#WindowButtons .Close')
@minimizeBtn = $('#WindowButtons .Minimize')
@bindEvents()
bindEvents: ->
@expandBtn.on 'click', =>
if !@isMaximized
@isMaximized = true
... | @closeBtn.on 'click', =>
@close()
@minimizeBtn.on 'click', =>
@minimize()
minimize: ->
win.minimize()
maximize: ->
win.maximize()
unmaximize: ->
win.unmaximize()
close: ->
win.close() | CoffeeScript | CoffeeScript | Atraci/Atraci | coffee/_windowManager.coffee | MIT | 2b40dfcf76ee42724b777f0107ebc1cc30260c0f | 800 | https://github.com/Atraci/Atraci/blob/2b40dfcf76ee42724b777f0107ebc1cc30260c0f/coffee/_windowManager.coffee | 1 | 35 |
cdglabs/apparatus:src/Util/Matrix.coffee:1:raw_corpus | raw_corpus | module.exports = class Matrix
constructor: (@a=1, @b=0, @c=0, @d=1, @e=0, @f=0) ->
translate: (x, y) ->
@transform(1, 0, 0, 1, x, y)
scale: (x, y) ->
@transform(x, 0, 0, y, 0, 0)
rotate: (angle) ->
c = Math.cos(angle)
s = Math.sin(angle)
@transform(c, s, -s, c, 0, 0)
transform: (a, b, ... | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Util/Matrix.coffee | 1 | 50 | ||
cdglabs/apparatus:src/Util/Matrix.coffee:1:coffee_to_js | coffee_to_js | Convert this CoffeeScript to JavaScript.
```coffeescript
module.exports = class Matrix
constructor: (@a=1, @b=0, @c=0, @d=1, @e=0, @f=0) ->
translate: (x, y) ->
@transform(1, 0, 0, 1, x, y)
scale: (x, y) ->
@transform(x, 0, 0, y, 0, 0)
rotate: (angle) ->
c = Math.cos(angle)
s = Math.sin(angle... | var Matrix;
module.exports = Matrix = class Matrix {
constructor(a1 = 1, b1 = 0, c1 = 0, d1 = 1, e1 = 0, f1 = 0) {
this.a = a1;
this.b = b1;
this.c = c1;
this.d = d1;
this.e = e1;
this.f = f1;
}
translate(x, y) {
return this.transform(1, 0, 0, 1, x, y);
}
scale(x, y) {
retur... | CoffeeScript | JavaScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Util/Matrix.coffee | 1 | 50 |
cdglabs/apparatus:src/Util/Matrix.coffee:1:js_to_coffee | js_to_coffee | Convert this JavaScript to CoffeeScript.
```javascript
var Matrix;
module.exports = Matrix = class Matrix {
constructor(a1 = 1, b1 = 0, c1 = 0, d1 = 1, e1 = 0, f1 = 0) {
this.a = a1;
this.b = b1;
this.c = c1;
this.d = d1;
this.e = e1;
this.f = f1;
}
translate(x, y) {
return this.tran... | module.exports = class Matrix
constructor: (@a=1, @b=0, @c=0, @d=1, @e=0, @f=0) ->
translate: (x, y) ->
@transform(1, 0, 0, 1, x, y)
scale: (x, y) ->
@transform(x, 0, 0, y, 0, 0)
rotate: (angle) ->
c = Math.cos(angle)
s = Math.sin(angle)
@transform(c, s, -s, c, 0, 0)
transform: (a, b, ... | JavaScript | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Util/Matrix.coffee | 1 | 50 |
cdglabs/apparatus:src/Util/Matrix.coffee:1:completion | completion | module.exports = class Matrix
constructor: (@a=1, @b=0, @c=0, @d=1, @e=0, @f=0) ->
translate: (x, y) ->
@transform(1, 0, 0, 1, x, y)
scale: (x, y) ->
@transform(x, 0, 0, y, 0, 0)
rotate: (angle) ->
c = Math.cos(angle)
s = Math.sin(angle)
@transform(c, s, -s, c, 0, 0)
transform: (a, b, ... | @transform(m.a, m.b, m.c, m.d, m.e, m.f)
inverse: ->
return @_inverse if @_inverse?
ad_minus_bc = @a * @d - @b * @c
bc_minus_ad = @b * @c - @a * @d
@_inverse = new Matrix(
@d / ad_minus_bc,
@b / bc_minus_ad,
@c / bc_minus_ad,
@a / ad_minus_bc,
(@d * @e - @c * @f) / bc_mi... | CoffeeScript | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Util/Matrix.coffee | 1 | 50 |
cdglabs/apparatus:src/Util/Matrix.coffee:2:raw_corpus | raw_corpus | [@e, @f]
toSvg: ->
"matrix(#{@a} #{@b} #{@c} #{@d} #{@e} #{@f})"
canvasSetTransform: (ctx) ->
ctx.setTransform(@a, @b, @c, @d, @e, @f)
canvasTransform: (ctx) ->
ctx.transform(@a, @b, @c, @d, @e, @f)
Matrix.naturalConstruct = (x, y, sx, sy, rotate) ->
c = Math.cos(rotate)
s = Math.sin(rotate)... | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Util/Matrix.coffee | 51 | 74 | ||
cdglabs/apparatus:src/Util/Matrix.coffee:2:completion | completion | [@e, @f]
toSvg: ->
"matrix(#{@a} #{@b} #{@c} #{@d} #{@e} #{@f})"
canvasSetTransform: (ctx) ->
ctx.setTransform(@a, @b, @c, @d, @e, @f)
canvasTransform: (ctx) ->
ctx.transform(@a, @b, @c, @d, @e, @f) | Matrix.naturalConstruct = (x, y, sx, sy, rotate) ->
c = Math.cos(rotate)
s = Math.sin(rotate)
return new Matrix(
c * sx
s * sx
-s * sy
c * sy
x
y
) | CoffeeScript | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | 107e0c2db5a0adf0f1c3b49f16f7625cff4e523b | 1,052 | https://github.com/cdglabs/apparatus/blob/107e0c2db5a0adf0f1c3b49f16f7625cff4e523b/src/Util/Matrix.coffee | 51 | 74 |
cdglabs/apparatus:src/Util/Matrix.coffee:2:raw_corpus | raw_corpus | [@e, @f]
toSVG: ->
"matrix(#{@m.join(" ")})"
canvasSetTransform: (ctx) ->
ctx.setTransform(@a, @b, @c, @d, @e, @f)
canvasTransform: (ctx) ->
ctx.transform(@a, @b, @c, @d, @e, @f)
Matrix.naturalConstruct = (x, y, sx, sy, rotate) ->
c = Math.cos(rotate)
s = Math.sin(rotate)
return new Matrix... | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | c9e0c322d971c19be2cf5d88ff6db3e9a7667601 | 1,052 | https://github.com/cdglabs/apparatus/blob/c9e0c322d971c19be2cf5d88ff6db3e9a7667601/src/Util/Matrix.coffee | 51 | 74 | ||
cdglabs/apparatus:src/Util/Matrix.coffee:2:completion | completion | [@e, @f]
toSVG: ->
"matrix(#{@m.join(" ")})"
canvasSetTransform: (ctx) ->
ctx.setTransform(@a, @b, @c, @d, @e, @f)
canvasTransform: (ctx) ->
ctx.transform(@a, @b, @c, @d, @e, @f) | Matrix.naturalConstruct = (x, y, sx, sy, rotate) ->
c = Math.cos(rotate)
s = Math.sin(rotate)
return new Matrix(
c * sx
s * sx
-s * sy
c * sy
x
y
) | CoffeeScript | CoffeeScript | cdglabs/apparatus | src/Util/Matrix.coffee | MIT | c9e0c322d971c19be2cf5d88ff6db3e9a7667601 | 1,052 | https://github.com/cdglabs/apparatus/blob/c9e0c322d971c19be2cf5d88ff6db3e9a7667601/src/Util/Matrix.coffee | 51 | 74 |
linemanjs/lineman:lib/file-utils.coffee:1:raw_corpus | raw_corpus | # Synchronous file helpers
grunt = require('./requires-grunt').require()
_ = require("lodash")
_str = require("underscore.string")
fs = require("fs")
module.exports = fileUtils =
copy: (src, dest) ->
file = fs.lstatSync(src)
if file.isDirectory()
fileUtils.copyDir(src, dest)
else
grunt.file.c... | CoffeeScript | linemanjs/lineman | lib/file-utils.coffee | MIT | 61d681532d9621e578d319c279006bbb728ece4b | 1,168 | https://github.com/linemanjs/lineman/blob/61d681532d9621e578d319c279006bbb728ece4b/lib/file-utils.coffee | 1 | 50 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.